Script Preparation code:
Tests:
  • IF Logic

  • Ternary Logic

  • AND Logic

  • IF Logic with sloppy variable handling

  • Ternary Logic with sloppy variable handling

  • AND Logic with sloppy variable handling

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    IF Logic
    Ternary Logic
    AND Logic
    IF Logic with sloppy variable handling
    Ternary Logic with sloppy variable handling
    AND Logic with sloppy variable handling

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Chrome 90 on Windows
View result in a separate tab
Test name Executions per second
IF Logic 521288.2 Ops/sec
Ternary Logic 528410.6 Ops/sec
AND Logic 521915.6 Ops/sec
IF Logic with sloppy variable handling 537050.6 Ops/sec
Ternary Logic with sloppy variable handling 523517.4 Ops/sec
AND Logic with sloppy variable handling 537216.0 Ops/sec