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