Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
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
Test name
Executions per second
Array.pop()
18523698.0 Ops/sec
Array[Array.length - 1]
21079108.0 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]