0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/benchmark/fast_buffer_creation.js
2010-09-09 11:03:50 -07:00

5 lines
68 B
JavaScript

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