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