Sign in
webkit
/
WebKit
/
ecbcd311b05ac239b92fcb2f58299787a062a338
/
.
/
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
);
}
}());