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/139.0.0.0 Safari/537.36 Edg/139.0.0.0
Browser:
Chrome 139
Operating system:
Windows
Device Platform:
Desktop
Date tested:
11 months ago
array.at(0)
80.1M/s
array[0]
43.4M/s
View exact numbers
Test name
Executions per second
✓
array.at(0)
80,050,528 Ops/sec
array[0]
43,389,528 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)