Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Chrome 144
Linux
Desktop
3 months ago
Test name Executions per second
String.split 14071916.0 Ops/sec
String.match 10362406.0 Ops/sec
RegEx.exec 13286132.0 Ops/sec
String.replace 13550334.0 Ops/sec
String.slice 95775480.0 Ops/sec
Script Preparation code:
Tests:
  • String.split

  • String.match

  • RegEx.exec

  • String.replace

  • String.slice