Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Moto G (5S) Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36 OPR/59.1.2926.54067
Opera Mobile 59
Android 8.1.0
Mobile
4 years ago
Test name Executions per second
lowercase, trim, indexof 581201.2 Ops/sec
trim, lowercase, indexof 631025.5 Ops/sec
regex 1094909.9 Ops/sec
lowercase, replace, indexof 331106.3 Ops/sec
RegExp 276493.5 Ops/sec
Script Preparation code:
Tests:
  • lowercase, trim, indexof

  • trim, lowercase, indexof

  • regex

  • lowercase, replace, indexof

  • RegExp


;