Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Chrome 145
Mac OS X 10.15.7
Desktop
one month ago
Test name Executions per second
String.split 46364876.0 Ops/sec
String.match 29358038.0 Ops/sec
RegEx.exec 31171600.0 Ops/sec
String.replace 38906684.0 Ops/sec
String.slice 186574928.0 Ops/sec
Script Preparation code:
Tests:
  • String.split

  • String.match

  • RegEx.exec

  • String.replace

  • String.slice