Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
lowercase, trim, indexof 5508000.0 Ops/sec
trim, lowercase, indexof 5567171.5 Ops/sec
regex 34947504.0 Ops/sec
lowercase, replace, indexof 4137473.0 Ops/sec
RegExp 10582468.0 Ops/sec
Script Preparation code:
Tests:
  • lowercase, trim, indexof

  • trim, lowercase, indexof

  • regex

  • lowercase, replace, indexof

  • RegExp


;