Re:Why You Should Always Use === and Other Bad Practices
by inglor on Sunday February 09, 2014 @07:23PM
(#7208240)
Here, it's within 20% of the performance. Definitely not n vs 2n http://jsperf.com/oh-look-branches
[ Parent
| on HN ]
Re:Why You Should Always Use === and Other Bad Practices
by mraleph on Monday February 10, 2014 @09:38AM
(#7211255)
The actual percentage depends on the CPU. On mobile the cost would likely be higher (e.g. on my phone it's around 33%), on old CPU can be even higher, but people don't usually care about them these days.