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; rv:139.0) Gecko/20100101 Firefox/139.0
Browser:
Firefox 139
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
array[0]
462.0M/s
array.at(0)
369.9M/s
View exact numbers
Test name
Executions per second
✓
array[0]
461,991,520 Ops/sec
array.at(0)
369,915,328 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)