Permalink
Browse files

Adjust times on geo_near_random tests

  • Loading branch information...
1 parent b5e57ba commit fe341ea9e06d7103cf4efbdaf30844582b02bcb5 @RedBeard0531 RedBeard0531 committed Sep 3, 2010
@@ -3,7 +3,7 @@ load("jstests/libs/geo_near_random.js");
var test = new GeoNearRandomTest("geo_near_random1");
-test.insertPts(100);
+test.insertPts(50);
test.testPt([0,0]);
test.testPt(test.mkPt());
@@ -3,7 +3,7 @@ load("jstests/libs/geo_near_random.js");
var test = new GeoNearRandomTest("nightly.geo_near_random1");
-test.insertPts(1000);
+test.insertPts(200);
test.testPt([0,0]);
test.testPt(test.mkPt());
@@ -3,7 +3,7 @@ load("jstests/libs/geo_near_random.js");
var test = new GeoNearRandomTest("nightly.geo_near_random2");
-test.insertPts(100000);
+test.insertPts(10000);
opts = {sphere:0, nToTest:test.nPts*0.01};
test.testPt([0,0], opts);
@@ -0,0 +1,13 @@
+// this tests all points using $near
+load("jstests/libs/geo_near_random.js");
+
+var test = new GeoNearRandomTest("weekly.geo_near_random1");
+
+test.insertPts(1000);
+
+test.testPt([0,0]);
+test.testPt(test.mkPt());
+test.testPt(test.mkPt());
+test.testPt(test.mkPt());
+test.testPt(test.mkPt());
+
@@ -0,0 +1,21 @@
+// this tests 1% of all points using $near and $nearSphere
+load("jstests/libs/geo_near_random.js");
+
+var test = new GeoNearRandomTest("weekly.geo_near_random2");
+
+test.insertPts(50000);
+
+opts = {sphere:0, nToTest:test.nPts*0.01};
+test.testPt([0,0], opts);
+test.testPt(test.mkPt(), opts);
+test.testPt(test.mkPt(), opts);
+test.testPt(test.mkPt(), opts);
+test.testPt(test.mkPt(), opts);
+
+opts.sphere = 1
+test.testPt([0,0], opts);
+test.testPt(test.mkPt(0.8), opts);
+test.testPt(test.mkPt(0.8), opts);
+test.testPt(test.mkPt(0.8), opts);
+test.testPt(test.mkPt(0.8), opts);
+

0 comments on commit fe341ea

Please sign in to comment.