diff options
author | Dan Pasette <dan@10gen.com> | 2015-07-22 18:00:52 -0400 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2015-07-22 18:00:52 -0400 |
commit | f6c529d817ad98fe64854cbd8771b0b097cd985d (patch) | |
tree | 462ec7e13d4c0fdd8fa234fac8a91f9f71ce08a1 /jstests | |
parent | 03baf82ed2068d3d03d399443867fd446068dcd8 (diff) | |
download | mongo-f6c529d817ad98fe64854cbd8771b0b097cd985d.tar.gz |
SERVER-19052 warm the cache before perf test
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/noPassthroughWithMongod/getmore_performance.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/getmore_performance.js b/jstests/noPassthroughWithMongod/getmore_performance.js index b0138213c19..810727fba4d 100644 --- a/jstests/noPassthroughWithMongod/getmore_performance.js +++ b/jstests/noPassthroughWithMongod/getmore_performance.js @@ -47,6 +47,7 @@ var doTest = function() { mongod = startMongodNoReset( '--port', port, '--dbpath', dbpath ); sleep(50); testDB = new Mongo('localhost:' + port).getDB(baseName); + func(testDB); var firstPass = time(func, testDB); var secondPass = time(func, testDB); stopMongod(port, 15); |