Test name | Executions per second |
---|---|
slice | 82.5 Ops/sec |
splice | 1331.7 Ops/sec |
shift | 27207.1 Ops/sec |
var list = [];
for (var i = 0; i < 1000 * 1000; i++) {
list.push(i);
}
var list = [];
for (var i = 0; i < 1000 * 100; i++) {
list.push(i);
}
var list = [];
for (var i = 0; i < 1000 * 10; i++) {
list.push(i);
}