Sign in
webkit
/
WebKit
/
3171213d84ddc1cb3289622b38ea4b8b7d089653
/
.
/
JSTests
/
microbenchmarks
/
number-to-string-with-add-in-loop.js
blob: 9bc654318ae715f84482e51d3e81dcd870488629 [
file
] [
log
] [
blame
]
function
toStringLeft
(
num
)
{
return
num
+
'Cocoa'
;
}
function
toStringRight
(
num
)
{
return
'Cocoa'
+
num
;
}
(
function
()
{
// Hoisting.
for
(
var
i
=
0
;
i
<
1e6
;
++
i
)
{
toStringLeft
(
i
);
toStringRight
(
i
);
}
}());