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