Skip to content

Instantly share code, notes, and snippets.

@kazupon
Created September 12, 2012 16:34
Show Gist options
  • Save kazupon/3707940 to your computer and use it in GitHub Desktop.
Save kazupon/3707940 to your computer and use it in GitHub Desktop.
for (var i = 0; i < 1e6; i++) {
b = new Buffer('hello world');
b[0] = 2;
}
local lev = require('lev')
for i = 1, 1e6 do
b = lev.buffer:new('hello world')
b[1] = 2;
end
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