mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
Apply fix to bench_test3.js to jsCore version
This commit is contained in:
parent
bfebf44034
commit
9d359723b3
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user