Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133
Linux
Desktop
one year ago
Benchmark.js
.push() + reverse()
1.1M/s
.unshift()
122K/s
View exact numbers
Test name Executions per second
.push() + reverse() 1,110,882 Ops/sec
.unshift() 122,153 Ops/sec
Script Preparation code:
Tests: