This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 9th, 2010  |  syntax: JavaScript  |  size: 0.42 KB  |  views: 172  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. bigAssString = ""
  2. while ( bigAssString.length < 50000 )
  3.     bigAssString += "bigAssString";
  4.  
  5. n = 0;
  6. while ( true ){
  7.     db.my32bittest.insert( { x : n++ , bigAssString : bigAssString } );
  8.     if ( ( n % 250 ) == 0 ){
  9.         e = db.getLastError();
  10.         if ( e ){
  11.             print( e );
  12.             break;
  13.         }
  14.         print( n + "\t" + Math.floor( db.my32bittest.stats().size / 1000000 ) + " mb" );
  15.     }
  16. }
clone this paste RAW Paste Data