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 1347012.5 Ops/sec
Ternary Logic 1185015.6 Ops/sec
AND Logic 1311344.2 Ops/sec
IF Logic with sloppy variable handling 1358978.5 Ops/sec
Ternary Logic with sloppy variable handling 1386733.6 Ops/sec
AND Logic with sloppy variable handling 1280365.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


;