ArrayCopy

Benchmark created on


Setup

let arr = new Int32Array(32);

Test runner

Ready to run.

Testing in
TestOps/sec
CopyWithSlice
let arrCopy = arr.slice(0, 8);
ready
CopyInLoop
let copy = new Int32Array(8);
for (var i = 0; i < 8; i+=1) {
	copy[i] = arr[i];
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.