Array access

Benchmark created on


Setup

const array = [0,1,2,3,4,5,6]

const array2 = [0,1,2,3,4,5,6]

Test runner

Ready to run.

Testing in
TestOps/sec
number access
array[0] = 1
array[1] = 2
array[2] = 3
array[3] = 4
array[4] = 5
array[5] = 6
ready
string access
array2["0"] = 1
array2["1"] = 2
array2["2"] = 3
array2["3"] = 4
array2["4"] = 5
array2["5"] = 6
ready

Revisions

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