Created
September 12, 2012 16:34
-
-
Save kazupon/3707940 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
for (var i = 0; i < 1e6; i++) { | |
b = new Buffer('hello world'); | |
b[0] = 2; | |
} |
This file contains hidden or 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
local lev = require('lev') | |
for i = 1, 1e6 do | |
b = lev.buffer:new('hello world') | |
b[1] = 2; | |
end |
This file contains hidden or 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
local Buffer = require('buffer').Buffer | |
for i = 1, 1e6 do | |
b = Buffer:new('hello world') | |
b[1] = 2; | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment