Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
pop() vs array.length - 1
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 11; M2103K19G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 114
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Array[Array.length - 1]
21.1M/s
Array.pop()
18.5M/s
View exact numbers
Test name
Executions per second
✓
Array[Array.length - 1]
21,079,108 Ops/sec
Array.pop()
18,523,698 Ops/sec
Tests:
Array.pop()
let array = new Array(25) const arrayLastItem = array.pop()
Array[Array.length - 1]
let array = new Array(25) const arrayLastItem = array[array.length - 1]