Sign in
webkit
/
WebKit
/
4a12667b4cecb17e84375f8db50c9b2d39b06fe4
/
.
/
JSTests
/
microbenchmarks
/
get_by_val-Int32Array.js
blob: 4145cd89dd7424a51bd61be5dd7b1f20b3421b18 [
file
] [
log
] [
blame
]
(
function
()
{
var
array
=
new
Int32Array
(
42
);
for
(
var
i
=
0
;
i
<
42
;
++
i
)
array
[
i
]
=
i
;
var
result
=
0
;
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
result
+=
array
[
i
%
array
.
length
];
if
(
result
!=
2049960
)
throw
"Error: bad result: "
+
result
;
})();