Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Linux
Desktop
10 months ago
Test name Executions per second
Use regex 5834467.5 Ops/sec
Use split 7188058.5 Ops/sec
Use indexOf 8244290.5 Ops/sec
Script Preparation code:
Tests:
  • Use regex

  • Use split

  • Use indexOf


;