Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Chrome 102
Windows
Desktop
2 years ago
Test name Executions per second
toLowerCase() 6803955.0 Ops/sec
localeCompare() 173328.6 Ops/sec
toLowerCase() FAIL 6294017.5 Ops/sec
localeCompare() FAIL 175246.1 Ops/sec
toLocaleLowerCase() 2113026.8 Ops/sec
toLocaleLowerCase() FAIL 2101296.8 Ops/sec
Script Preparation code:
Tests:
  • toLowerCase()

  • localeCompare()

  • toLowerCase() FAIL

  • localeCompare() FAIL

  • toLocaleLowerCase()

  • toLocaleLowerCase() FAIL