projects
/
platform
/
upstream
/
nodejs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
benchmark: remove extra spacing in http options
[platform/upstream/nodejs.git]
/
benchmark
/
misc
/
string-creation.js
1
2
var common = require('../common.js');
3
var bench = common.createBenchmark(main, {
4
millions: [100]
5
})
6
7
function main(conf) {
8
var n = +conf.millions * 1e6;
9
bench.start();
10
var s;
11
for (var i = 0; i < n; i++) {
12
s = '01234567890';
13
s[1] = "a";
14
}
15
bench.end(n / 1e6);
16
}