Permalink
Browse files

new test

  • Loading branch information...
1 parent e1636f4 commit 79b45181243a69b42beb936e067f9a06a8260c4b @dwight dwight committed Feb 16, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 jstests/misc/biginsert.js
View
@@ -0,0 +1,18 @@
+o = "xxxxxxxxxxxxxxxxxxx";
+o = o + o;
+o + o;
+o = o + o;
+o = o + o;
+o = o + o;
+
+var B = 40000;
+var last = new Date();
+for (i = 0; i < 30000000; i++) {
+ db.foo.insert({ o: o });
+ if (i % B == 0) {
+ var n = new Date();
+ print(i);
+ print("per sec: " + B*1000 / (n - last));
+ last = n;
+ }
+}

0 comments on commit 79b4518

Please sign in to comment.