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 1179231616.0 Ops/sec
Object-plain 1188267776.0 Ops/sec
If-Else 1185762816.0 Ops/sec
Ternary 1189482752.0 Ops/sec
Switch 1176557696.0 Ops/sec
Tests:
  • Object-Function

  • Object-plain

  • If-Else

  • Ternary

  • Switch

  • Object-Get