Sign in
webkit
/
WebKit
/
fd5c89692160ad7a4478776d3a7e8f4df224d2ad
/
.
/
JSTests
/
microbenchmarks
/
make-rope-cse.js
blob: 0f5397bb53ae35a87ebdbd1eacf6b6dd509cfc3c [
file
] [
log
] [
blame
]
function
foo
(
a
,
b
)
{
var
result
=
""
;
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
{
result
+=
a
+
b
;
result
+=
a
+
b
;
result
+=
a
+
b
;
}
return
result
;
}
var
result
=
foo
(
"foo"
,
"bar"
);
if
(
result
.
length
!=
1800000
)
throw
"Bad result: "
+
result
.
length
;