node/benchmark/fast_buffer2_creation.js

7 lines
124 B
JavaScript
Raw Normal View History

2010-09-08 07:30:17 +08:00
FastBuffer = require('./fast_buffer2').FastBuffer;
for (var i = 0; i < 1e6; i++) {
b = new FastBuffer(10);
b[1] = 2;
}