repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
get_by_val-Int32Array.js
blob
4145cd89dd7424a51bd61be5dd7b1f20b3421b18
1
(function() {
2
var array = new Int32Array(42);
3
for (var i = 0; i < 42; ++i)
4
array[i] = i;
5
var result = 0;
6
for (var i = 0; i < 100000; ++i)
7
result += array[i % array.length];
8
if (result != 2049960)
9
throw "Error: bad result: " + result;
10
})();