Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136
Linux
Desktop
9 months ago
Test name Executions per second
String.split 7003765.5 Ops/sec
String.match 9585995.0 Ops/sec
RegEx.exec 13078203.0 Ops/sec
String.replace 10934309.0 Ops/sec
String.slice 775321408.0 Ops/sec
Script Preparation code:
Tests:
  • String.split

  • String.match

  • RegEx.exec

  • String.replace

  • String.slice