mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
244 B
19 lines
244 B
11 years ago
|
/*
|
||
|
* Basic array write performance
|
||
|
*/
|
||
|
|
||
|
function test() {
|
||
|
var arr = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
|
||
|
var i;
|
||
|
|
||
|
for (i = 0; i < 1e8; i++) {
|
||
|
arr[7] = 234;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
try {
|
||
|
test();
|
||
|
} catch (e) {
|
||
|
print(e.stack || e);
|
||
|
}
|