Sign in
webkit
/
WebKit
/
ed2f911158342d574839e821f89b5479112fb659
/
.
/
JSTests
/
microbenchmarks
/
typed-array-sum.js
blob: cab6f20dc26811a4287464b9641946eea25270ef [
file
] [
log
] [
blame
]
function
doTest
(
arr1
)
{
let sum
=
0
for
(
let i
=
0
;
i
<
arr1
.
length
;
++
i
)
{
sum
+=
arr1
[
i
]
}
return
sum
}
noInline
(
doTest
);
let arr1
=
new
Int32Array
(
1000
)
for
(
let i
=
0
;
i
<
1000
;
++
i
)
doTest
(
arr1
)