Script Preparation code:
AخA
 
var a = "John Doe"
var b = "john doe"
var c = "john smith"
var d = "joHn Smith"
var e = "JoHn SmiTh"
Tests:
  • TLC fail 1

     
    a.toLowerCase() == b.toLowerCase()
  • TLC pass 1

     
    d.toLowerCase() == b.toLowerCase()
  • TLC pass 2

     
    e.toLowerCase() == d.toLowerCase()
  • TLC fail 2

     
    a.toLowerCase() == e.toLowerCase()
  • LC fail 1

     
    a.localeCompare(b, 'en', {'sensitivity': 'base'});
  • LC pass 1

     
    d.localeCompare(b, 'en', {'sensitivity': 'base'});
  • LC pass 2

     
    e.localeCompare(d, 'en', {'sensitivity': 'base'});
  • LC fail 2

     
    a.localeCompare(e, 'en', {'sensitivity': 'base'});
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    TLC fail 1
    TLC pass 1
    TLC pass 2
    TLC fail 2
    LC fail 1
    LC pass 1
    LC pass 2
    LC fail 2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (iPad; CPU OS 14_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.53 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 96 on iOS 14.8
View result in a separate tab
Test name Executions per second
TLC fail 1 4713558.0 Ops/sec
TLC pass 1 5397815.0 Ops/sec
TLC pass 2 4529903.0 Ops/sec
TLC fail 2 4506215.5 Ops/sec
LC fail 1 192890.5 Ops/sec
LC pass 1 192248.6 Ops/sec
LC pass 2 192690.7 Ops/sec
LC fail 2 189233.0 Ops/sec