Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Chrome 95
Linux
Desktop
one year ago
Test name Executions per second
lowercase, trim, indexof 3805299.0 Ops/sec
trim, lowercase, indexof 4181385.5 Ops/sec
regex 6944954.5 Ops/sec
lowercase, replace, indexof 1531712.8 Ops/sec
RegExp 1850528.4 Ops/sec
Script Preparation code:
Tests:
  • lowercase, trim, indexof

  • trim, lowercase, indexof

  • regex

  • lowercase, replace, indexof

  • RegExp


;