Created
May 7, 2014 07:23
-
-
Save metanest/827742e949278269ed56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
// output to pipe | |
// $ node --expose_gc --always_compact sample.js | cat > /dev/null | |
// | |
// output to fs | |
// $ node --expose_gc --always_compact sample.js > /dev/null | |
function sample() { | |
var i0, i1, i2, i3, i4, i5, i6, i7 | |
var i8, i9, i10, i11, i12, i13, i14, i15 | |
for (i0 = 0; i0 < 2; ++i0) { | |
for (i1 = 0; i1 < 2; ++i1) { | |
for (i2 = 0; i2 < 2; ++i2) { | |
for (i3 = 0; i3 < 2; ++i3) { | |
for (i4 = 0; i4 < 2; ++i4) { | |
for (i5 = 0; i5 < 2; ++i5) { | |
for (i6 = 0; i6 < 2; ++i6) { | |
for (i7 = 0; i7 < 2; ++i7) { | |
for (i8 = 0; i8 < 2; ++i8) { | |
for (i9 = 0; i9 < 2; ++i9) { | |
for (i10 = 0; i10 < 2; ++i10) { | |
for (i11 = 0; i11 < 2; ++i11) { | |
for (i12 = 0; i12 < 2; ++i12) { | |
for (i13 = 0; i13 < 2; ++i13) { | |
for (i14 = 0; i14 < 2; ++i14) { | |
for (i15 = 0; i15 < 2; ++i15) { | |
process.stdout.write("012345678901234567890123456789012345678901234567890123456789\n") | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
process.stderr.write(process.stdout._type.toString() + "\n") | |
for (;;) { | |
sample() | |
process.stderr.write("gc\n") | |
global.gc() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment