Skip to content

Instantly share code, notes, and snippets.

@xk
Created April 6, 2011 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xk/905315 to your computer and use it in GitHub Desktop.
Save xk/905315 to your computer and use it in GitHub Desktop.
test #2 for socket.write()
var a= 'a';
var kMaxLength= 8192;
do a= [a,a].join(''); while (a.length < kMaxLength);
var i= 1e4;
while (i--) console.log(a);
a= null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment