Sign in
webkit
/
WebKit
/
576a979610e4022489e162a6cf99857a249b2267
/
.
/
JSTests
/
microbenchmarks
/
number-to-string-with-add.js
blob: d2868227fb3ec1b8e74a054c07da5ae3333d5e76 [
file
] [
log
] [
blame
]
function
toStringLeft
(
num
)
{
return
num
+
'Cocoa'
;
}
noInline
(
toStringLeft
);
function
toStringRight
(
num
)
{
return
'Cocoa'
+
num
;
}
noInline
(
toStringRight
);
for
(
var
i
=
0
;
i
<
1e5
;
++
i
)
{
toStringLeft
(
i
);
toStringRight
(
i
);
}