at method vs bracket notation

Benchmark created on


Setup

const numbers = [1, 2, 3, 4, 5];

Test runner

Ready to run.

Testing in
TestOps/sec
at
numbers.at(0)
numbers.at(1)
numbers.at(2)
numbers.at(3)
numbers.at(4)
ready
bracket notation
numbers[0]
numbers[1]
numbers[2]
numbers[3]
numbers[4]
ready

Revisions

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