summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2014-03-17 16:29:02 -0400
committerSpencer T Brody <spencer@mongodb.com>2014-03-17 17:30:06 -0400
commitc7fc38edc356944df1cafe5a5c68fa8112e03136 (patch)
treed8cde292af71e355cf17849191f2456ce39fd629
parentd4ef06166f8249d9b4f97c621b4a0336f8f1c828 (diff)
downloadmongo-c7fc38edc356944df1cafe5a5c68fa8112e03136.tar.gz
Increase benchRun time to improve reliability of bench_test3.js
(cherry picked from commit 689e23eace05079e4db58ea92caff2aafb1c75db)
-rw-r--r--jstests/bench_test3.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/bench_test3.js b/jstests/bench_test3.js
index 4bc21ed2505..34e033fe52a 100644
--- a/jstests/bench_test3.js
+++ b/jstests/bench_test3.js
@@ -8,7 +8,7 @@ benchArgs = { ops : [ { ns : t.getFullName() ,
query : { _id : { "#RAND_INT" : [ 0 , 5 , 4 ] } } ,
update : { $inc : { x : 1 } } } ] ,
parallel : 2 ,
- seconds : 1 ,
+ seconds : 5 ,
totals : true ,
host : db.getMongo().host }
@@ -24,4 +24,5 @@ printjson( res );
var keys = []
var totals = {}
db.bench_test3.find().sort( { _id : 1 } ).forEach( function(z){ keys.push( z._id ); totals[z._id] = z.x } );
+printjson(totals);
assert.eq( [ 0 , 4 , 8 , 12 , 16 ] , keys )