Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 YaBrowser/21.8.0.1716 Yowser/2.5 Safari/537.36
Yandex Browser 21
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
lowercase, trim, indexof 4873794.0 Ops/sec
trim, lowercase, indexof 5512439.5 Ops/sec
regex 9188939.0 Ops/sec
lowercase, replace, indexof 2577540.5 Ops/sec
RegExp 2284931.0 Ops/sec
Script Preparation code:
Tests:
  • lowercase, trim, indexof

  • trim, lowercase, indexof

  • regex

  • lowercase, replace, indexof

  • RegExp


;