Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
IF Logic 2220863.2 Ops/sec
Ternary Logic 2219469.0 Ops/sec
AND Logic 2240839.0 Ops/sec
IF Logic with sloppy variable handling 2228600.2 Ops/sec
Ternary Logic with sloppy variable handling 2172400.0 Ops/sec
AND Logic with sloppy variable handling 2129827.2 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