0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/evalc.js
2010-09-23 15:42:24 -07:00

19 lines
405 B
JavaScript

t = db.jstests_evalc;
t.drop();
for( i = 0; i < 10; ++i ) {
t.save( {i:i} );
}
// SERVER-1610
s = startParallelShell( "print( 'starting forked:' + Date() ); for ( i=0; i<500000; i++ ){ db.currentOp(); } print( 'ending forked:' + Date() ); " )
print( "starting eval: " + Date() )
for ( i=0; i<20000; i++ ){
db.eval( "db.jstests_evalc.count( {i:10} );" );
}
print( "end eval: " + Date() )
s();