Skip to content

Commit

Permalink
change large string creation in test otherwise v8 slow
Browse files Browse the repository at this point in the history
  • Loading branch information
agirbal committed Oct 17, 2011
1 parent 4b26a9b commit 8e7706e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions jstests/big_object1.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ t.drop();

if ( db.adminCommand( "buildinfo" ).bits == 64 ){

s = ""
var large = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
var s = large;
while ( s.length < 850 * 1024 ){
s += "x";
s += large;
}

x = 0;
while ( true ){
n = { _id : x , a : [] }
Expand Down
6 changes: 4 additions & 2 deletions jstests/mr_bigobject.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
t = db.mr_bigobject
t.drop()

s = "";
// v8 requires large start string, otherwise UTF16
var large = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
var s = large;
while ( s.length < ( 6 * 1024 * 1024 ) ){
s += "asdasdasd";
s += large;
}

for ( i=0; i<5; i++ )
Expand Down

0 comments on commit 8e7706e

Please sign in to comment.