Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
slice vs at vs pop
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/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
arr 0
154.3M/s
arr length
152.5M/s
at -1
152.2M/s
slice
49.2M/s
View exact numbers
Test name
Executions per second
✓
arr 0
154,286,912 Ops/sec
arr length
152,472,688 Ops/sec
at -1
152,150,176 Ops/sec
slice
49,221,828 Ops/sec
Script Preparation code:
arr = Array.from(Array(10).keys())
Tests:
arr 0
arr[0]
arr length
arr[arr.length - 1]
at -1
arr.at(-1)
slice
arr.slice(-1)[0]