node/benchmark/fast_buffer_creation.js

5 lines
68 B
JavaScript

for (var i = 0; i < 1e6; i++) {
b = new Buffer(10);
b[1] = 2;
}