Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
.at vs bracket notation
.at vs bracket notation
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/129.0.0.0 Safari/537.36
Browser:
Chrome 129
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
.at
468.8 Ops/sec
bracket
477.3 Ops/sec
Script Preparation code:
let f;
Tests:
.at
for (let i = 30000; --i;) f=[1,2,3].at(3)
bracket
for (let i = 30000; --i;) f=[1,2,3][2]