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