Created
February 18, 2013 08:18
-
-
Save mklymyshyn/4975844 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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