Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
one year ago
Benchmark.js
splice()
1.4M/s
copyWithin()
662K/s
View exact numbers
Test name Executions per second
splice() 1,413,995 Ops/sec
copyWithin() 661,695 Ops/sec
Script Preparation code:
Tests: