Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Chrome 70
Windows
Desktop
5 years ago
Test name Executions per second
IF Logic 1258820.8 Ops/sec
Ternary Logic 1364584.5 Ops/sec
AND Logic 1307106.6 Ops/sec
IF Logic with sloppy variable handling 1372099.5 Ops/sec
Ternary Logic with sloppy variable handling 1295260.8 Ops/sec
AND Logic with sloppy variable handling 1302995.9 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