summaryrefslogtreecommitdiff
path: root/jstests/eval1.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-08-05 16:02:26 -0400
committerEliot Horowitz <eliot@10gen.com>2009-08-05 16:02:26 -0400
commit42fd57b9a8f71cde345b2805b91f69fb1bd02040 (patch)
tree2130ccf8898aef759701d81e3e22d350a421147c /jstests/eval1.js
parent0b62b3f996a0c4329babd68b7bbc771c3bcb9df9 (diff)
downloadmongo-42fd57b9a8f71cde345b2805b91f69fb1bd02040.tar.gz
simple test for db.eval sanity speed
Diffstat (limited to 'jstests/eval1.js')
-rw-r--r--jstests/eval1.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/eval1.js b/jstests/eval1.js
index 5e49b2d9750..497ffa0761e 100644
--- a/jstests/eval1.js
+++ b/jstests/eval1.js
@@ -14,3 +14,5 @@ assert.eq( "eliot" , f( 1 ) , "A" );
assert.eq( "sara" , f( 2 ) , "B" );
assert.eq( "eliot" , db.eval( f , 1 ) , "C" );
assert.eq( "sara" , db.eval( f , 2 ) , "D" );
+
+assert.gt( 5 , Date.timeFunc( function(){ db.eval( f , 2 ) } ) , "simple db.eval should be less than 5ms on good connection " );