repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
number-to-string-with-add-in-loop.js
blob
9bc654318ae715f84482e51d3e81dcd870488629
1
function toStringLeft(num)
2
{
3
return num + 'Cocoa';
4
}
5
6
function toStringRight(num)
7
{
8
return 'Cocoa' + num;
9
}
10
(function () {
11
// Hoisting.
12
for (var i = 0; i < 1e6; ++i) {
13
toStringLeft(i);
14
toStringRight(i);
15
}
16
}());