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
165.2M/s
at -1
155.7M/s
arr length
147.9M/s
slice
55.2M/s
View exact numbers
Test name
Executions per second
✓
arr 0
165,246,672 Ops/sec
at -1
155,684,288 Ops/sec
arr length
147,884,656 Ops/sec
slice
55,230,900 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]