Run details:
Mozilla/5.0 (Linux; Android 10; SM-G970U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
4 years ago
Test name Executions per second
Object-Function 4622240.0 Ops/sec
Object-plain 4667287.0 Ops/sec
If-Else 1153740.8 Ops/sec
Ternary 1154755.9 Ops/sec
Switch 4606224.5 Ops/sec
Tests:
  • Object-Function

  • Object-plain

  • If-Else

  • Ternary

  • Switch

  • Object-Get