Run details:
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
Windows
Desktop
3 years ago
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
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