Tests:
  • 1-1

    AخA
     
    const x = 'y';
    x === 'true' || x === 'y';
  • 1-2

     
    const x = 'y';
    x === 'y' || x === 'true'
  • 2-1

     
    const x = 'true';
    x === 'true' || x === 'y';
  • 2-2

     
    const x = 'true';
    x === 'y' || x === 'true'
  • 3-1

     
    const x = 'anything else';
    x === 'true' || x === 'y';
  • 3-2

     
    const x = 'anything else';
    x === 'y' || x === 'true'
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    1-1
    1-2
    2-1
    2-2
    3-1
    3-2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Safari 15 on Mac OS X 10.15.6
View result in a separate tab
Test name Executions per second
1-1 387171200.0 Ops/sec
1-2 351714368.0 Ops/sec
2-1 380323808.0 Ops/sec
2-2 379471360.0 Ops/sec
3-1 385652096.0 Ops/sec
3-2 358934112.0 Ops/sec