Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Mac OS X 10.15
Desktop
2 years ago
Benchmark.js
function call
10.6M/s
object with regexp and replace
3.2M/s
View exact numbers
Test name Executions per second
function call 10,578,787 Ops/sec
object with regexp and replace 3,183,396 Ops/sec
Script Preparation code:
Tests: