Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
array[] vs array.at()
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
array[0]
191283760.0 Ops/sec
array.at(0)
180627408.0 Ops/sec
Script Preparation code:
var array = [0, 1, 2, 3]
Tests:
array[0]
const a = array[0]
array.at(0)
const b = array.at(0)