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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser:
Chrome 131
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
arr 0
240.9M/s
arr length
228.9M/s
at -1
228.5M/s
slice
87.2M/s
View exact numbers
Test name
Executions per second
✓
arr 0
240,880,704 Ops/sec
arr length
228,887,952 Ops/sec
at -1
228,475,232 Ops/sec
slice
87,180,136 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]