repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
string-repeat-resolving-fixed.js
blob
68469a13561e737365e0bb36f5107c891251673f
1
function test(str, count)
2
{
3
var repeated = str.repeat(count);
4
// Expand the rope.
5
return repeated[0] + repeated[count >> 1] + repeated[repeated.length - 1];
6
}
7
8
for (var i = 0; i < 1e4; ++i)
9
test(i.toString(), 100);