Sign in
webkit
/
WebKit
/
fd5c89692160ad7a4478776d3a7e8f4df224d2ad
/
.
/
JSTests
/
microbenchmarks
/
abc-simple-forward-loop.js
blob: 01d41ce083af0d061c4b88675b2da9eb1afc8700 [
file
] [
log
] [
blame
]
function
foo
(
array
)
{
var
result
=
0
;
for
(
var
i
=
0
;
i
<
array
.
length
;
++
i
)
result
+=
array
[
i
];
return
result
;
}
noInline
(
foo
);
var
array
=
[];
for
(
var
i
=
0
;
i
<
1000
;
++
i
)
array
.
push
(
i
);
for
(
var
i
=
0
;
i
<
50000
;
++
i
)
foo
(
array
);