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
8 years ago
Test name Executions per second
IF Logic 1552900.6 Ops/sec
Ternary Logic 1516594.2 Ops/sec
AND Logic 1546445.8 Ops/sec
IF Logic with sloppy variable handling 1582912.0 Ops/sec
Ternary Logic with sloppy variable handling 1590228.2 Ops/sec
AND Logic with sloppy variable handling 1587217.5 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