mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
19 lines
405 B
JavaScript
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();
|