Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
arr.at(index) vs arr[index]
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0
Browser:
Firefox 139
Operating system:
Linux
Device Platform:
Desktop
Date tested:
11 months ago
Test name
Executions per second
at
1265767808.0 Ops/sec
bracket notation
1856198528.0 Ops/sec
Script Preparation code:
const LENGTH = 10000; var arr = new Array(LENGTH); for (let i = 0; i < LENGTH; i++) { arr[i] = i * 5; }
Tests:
at
arr.at(753);
bracket notation
arr[753];