Sign in
webkit
/
WebKit
/
1f18bfe1d675d641e5195ccba1e744a16360cc5b
/
.
/
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
)