Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
toLowerCase() 8095687.5 Ops/sec
localeCompare() 160239.7 Ops/sec
toLowerCase() FAIL 7318709.0 Ops/sec
localeCompare() FAIL 162985.2 Ops/sec
toLocaleLowerCase() 7362152.5 Ops/sec
toLocaleLowerCase() FAIL 3644565.0 Ops/sec
Script Preparation code:
Tests:
  • toLowerCase()

  • localeCompare()

  • toLowerCase() FAIL

  • localeCompare() FAIL

  • toLocaleLowerCase()

  • toLocaleLowerCase() FAIL