Script Preparation code:
Tests:

Historical Performance Data aggregated from 96 community runs

Desktop Results:
Chrome 87 runs
toLowerCase()
14.0M/s
toLowerCase() FAIL
12.4M/s
localeCompare()
254K/s
localeCompare() FAIL
250K/s

Fastest: toLowerCase() (56.1x faster)

View exact numbers
  • toLowerCase(): 14,003,934 ops/sec
  • toLowerCase() FAIL: 12,447,962 ops/sec
  • localeCompare(): 253,863 ops/sec
  • localeCompare() FAIL: 249,508 ops/sec
Firefox 9 runs
toLowerCase() FAIL
1366.1M/s
toLowerCase()
1356.3M/s
localeCompare() FAIL
337K/s
localeCompare()
310K/s

Fastest: toLowerCase() FAIL (4404.0x faster)

View exact numbers
  • toLowerCase() FAIL: 1,366,059,008 ops/sec
  • toLowerCase(): 1,356,336,768 ops/sec
  • localeCompare() FAIL: 337,272 ops/sec
  • localeCompare(): 310,187 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    toLowerCase()
    localeCompare()
    toLowerCase() FAIL
    localeCompare() FAIL

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3 Mobile/15E148 Safari/604.1
Mobile Safari 26 on iOS 18.7
View result in a separate tab
toLowerCase()
284.5M/s
toLowerCase() FAIL
252.3M/s
localeCompare()
199K/s
localeCompare() FAIL
176K/s
View exact numbers
Test name Executions per second
toLowerCase() 284,492,544 Ops/sec
toLowerCase() FAIL 252,288,192 Ops/sec
localeCompare() 198,610 Ops/sec
localeCompare() FAIL 176,212 Ops/sec