Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36
Chrome 50
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
Ternary with Concat 797590.1 Ops/sec
Traditional If/Else with Concat 817442.8 Ops/sec
Script Preparation code:
Tests:
  • Ternary with Concat

  • Traditional If/Else with Concat


;