Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36
Chrome 91
Linux
Desktop
3 years ago
Test name Executions per second
lowercase, trim, indexof 5870821.0 Ops/sec
trim, lowercase, indexof 6285802.0 Ops/sec
regex 9934407.0 Ops/sec
lowercase, replace, indexof 3030824.5 Ops/sec
RegExp 2757049.2 Ops/sec
Script Preparation code:
Tests:
  • lowercase, trim, indexof

  • trim, lowercase, indexof

  • regex

  • lowercase, replace, indexof

  • RegExp


;