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 (iPhone; CPU iPhone OS 17_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.7 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 17
Operating system:
iOS 17.7
Device Platform:
Mobile
Date tested:
one year ago
array[0]
270.0M/s
array.at(0)
74.0M/s
View exact numbers
Test name
Executions per second
✓
array[0]
270,048,512 Ops/sec
array.at(0)
73,958,696 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)