Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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:
one year ago
Benchmark engine:
Benchmark.js
bracket notation
1856.2M/s
at
1265.8M/s
View exact numbers
Test name
Executions per second
✓
bracket notation
1,856,198,528 Ops/sec
at
1,265,767,808 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];