Object Literal x Switch - Rocketseat
https://blog.rocketseat.com.br/substituindo-a-instrucao-switch-por-object-literal/
2 years ago
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36
Test name |
Executions per second |
Switch |
64366.5 Ops/sec |
Object Literal |
64151.7 Ops/sec |
Open this result on MeasureThat.net