mirror of https://github.com/lukechilds/node.git
isaacs
12 years ago
2 changed files with 16 additions and 6 deletions
@ -0,0 +1,16 @@ |
|||
|
|||
var common = require('../common.js'); |
|||
var bench = common.createBenchmark(main, { |
|||
millions: [100] |
|||
}) |
|||
|
|||
function main(conf) { |
|||
var n = +conf.millions * 1e6; |
|||
bench.start(); |
|||
var s; |
|||
for (var i = 0; i < n; i++) { |
|||
s = '01234567890'; |
|||
s[1] = "a"; |
|||
} |
|||
bench.end(n / 1e6); |
|||
} |
@ -1,6 +0,0 @@ |
|||
|
|||
|
|||
for (var i = 0; i < 9e7; i++) { |
|||
s = '01234567890'; |
|||
s[1] = "a"; |
|||
} |
Loading…
Reference in new issue