Array

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Float32Array
const array = new Float32Array(16);
array[0] = 1;
array[5] = 1;
array[10] = 1;
array[15] = 1;
ready
Array Object
const array = new Array(16);
array[1]=0;
array[2]=0;
array[3]=0;
array[4]=0;
array[6]=0;
array[7]=0;
array[8]=0;
array[9]=0;
array[11]=0;
array[12]=0;
array[13]=0;
array[14]=0;
array[0]=1;
array[5]=1;
array[10]=1;
array[15]=1;
ready
Array literal
const array = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
ready

Revisions

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