Sign in
webkit
/
WebKit
/
f208291ebb5233b8d92ab682a30d20b4b4d23e1e
/
.
/
JSTests
/
microbenchmarks
/
string-repeat-resolving-fixed.js
blob: 68469a13561e737365e0bb36f5107c891251673f [
file
] [
log
] [
blame
]
function
test
(
str
,
count
)
{
var
repeated
=
str
.
repeat
(
count
);
// Expand the rope.
return
repeated
[
0
]
+
repeated
[
count
>>
1
]
+
repeated
[
repeated
.
length
-
1
];
}
for
(
var
i
=
0
;
i
<
1e4
;
++
i
)
test
(
i
.
toString
(),
100
);