Sign in
webkit
/
WebKit
/
3ee83bd7079b5d32a56631e7e3c8cee2e6830703
/
.
/
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
)