Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
array[0 vs array.at(0)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 133
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
array[0]
42.4M/s
array.at(0)
37.4M/s
View exact numbers
Test name
Executions per second
✓
array[0]
42,370,588 Ops/sec
array.at(0)
37,407,308 Ops/sec
Script Preparation code:
var array = [1,2,3,4,5,6];
Tests:
array[0]
const d = array[0];
array.at(0)
const z = array.at(0);