node/benchmark/buffer_creation.js

7 lines
115 B
JavaScript
Raw Normal View History

2010-09-08 07:30:17 +08:00
SlowBuffer = require('buffer').SlowBuffer;
2010-08-19 16:40:28 +08:00
2010-09-08 07:30:17 +08:00
for (var i = 0; i < 1e6; i++) {
b = new SlowBuffer(10);
2010-08-19 16:40:28 +08:00
b[1] = 2
}