Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Linux
Desktop
2 years ago
Test name Executions per second
lowercase, trim, indexof 4830680.5 Ops/sec
trim, lowercase, indexof 5145594.5 Ops/sec
regex 8615391.0 Ops/sec
lowercase, replace, indexof 1991447.1 Ops/sec
RegExp 2065608.0 Ops/sec
Script Preparation code:
Tests:
  • lowercase, trim, indexof

  • trim, lowercase, indexof

  • regex

  • lowercase, replace, indexof

  • RegExp


;