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/128.0.0.0 Safari/537.36
Browser:
Chrome 128
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
at -1
10.2M/s
arr 0
10.1M/s
slice
8.1M/s
arr length
5.4M/s
View exact numbers
Test name
Executions per second
✓
at -1
10,157,747 Ops/sec
arr 0
10,083,272 Ops/sec
slice
8,136,072 Ops/sec
arr length
5,351,184 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]