Skip to content

Instantly share code, notes, and snippets.

@mklymyshyn
Created February 18, 2013 08:18
Show Gist options
  • Save mklymyshyn/4975844 to your computer and use it in GitHub Desktop.
Save mklymyshyn/4975844 to your computer and use it in GitHub Desktop.
var n = 1000, cn = "testdocs_js";
db._drop(cn); db._create(cn); var c = db._collection(cn);
var t = new Date(); for (var i = 0; i < n; ++i) { c.save({ "value" : "test_" + i }); }; var e = new Date();
e.getMilliseconds() - t.getMilliseconds();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment