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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Browser:
Chrome 140
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
at
280.3M/s
bracket notation
257.1M/s
View exact numbers
Test name
Executions per second
✓
at
280,331,872 Ops/sec
bracket notation
257,133,712 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];