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/133.0.0.0 Safari/537.36
Browser:
Chrome 133
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
arr length
100.7M/s
arr 0
97.4M/s
at -1
91.9M/s
slice
29.3M/s
View exact numbers
Test name
Executions per second
✓
arr length
100,721,480 Ops/sec
arr 0
97,350,008 Ops/sec
at -1
91,877,168 Ops/sec
slice
29,341,980 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]