Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Chrome 52
Windows
Other
7 years ago
Test name Executions per second
IF Logic 1534451.0 Ops/sec
Ternary Logic 1528877.0 Ops/sec
AND Logic 1532617.0 Ops/sec
IF Logic with sloppy variable handling 1538366.0 Ops/sec
Ternary Logic with sloppy variable handling 1547151.0 Ops/sec
AND Logic with sloppy variable handling 1553117.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