diff options
author | agirbal <antoine@10gen.com> | 2011-10-17 18:12:17 -0700 |
---|---|---|
committer | agirbal <antoine@10gen.com> | 2011-10-17 18:12:17 -0700 |
commit | 23c33b2f8f6da5f498b06d191cde6916d3f07025 (patch) | |
tree | 62c04a7a4d4b1a37ce9077b95c4e2a4811421813 /jstests/profile2.js | |
parent | 125103fc008b48be497f0418151b852e273e9b65 (diff) | |
download | mongo-23c33b2f8f6da5f498b06d191cde6916d3f07025.tar.gz |
make some tests more v8 friendly
Diffstat (limited to 'jstests/profile2.js')
-rw-r--r-- | jstests/profile2.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/profile2.js b/jstests/profile2.js index 929b463ca3d..46392549296 100644 --- a/jstests/profile2.js +++ b/jstests/profile2.js @@ -4,9 +4,10 @@ try { assert.commandWorked( db.runCommand( {profile:2} ) ); - huge = 'huge'; + var str = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + huge = str; while (huge.length < 2*1024*1024){ - huge += huge; + huge += str; } db.profile2.count({huge:huge}) // would make a huge entry in db.system.profile |