Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
one month ago
Test name Executions per second
regex 720311.9 Ops/sec
split 3245172.5 Ops/sec
indexOf1 1459711.2 Ops/sec
indexOf2 1503799.6 Ops/sec
singleChar 535844.1 Ops/sec
Script Preparation code:
Tests:
  • regex

  • split

  • indexOf1

  • indexOf2

  • singleChar


;