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