Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Chrome 84
Mac OS X 10.14.1
Desktop
4 years ago
Test name Executions per second
With triple replace 2150549.0 Ops/sec
With regex 4500848.5 Ops/sec
Tests:
  • With triple replace

  • With regex