Y
Hacker News
new
|
ask
|
show
|
jobs
by
drawfloat
1430 days ago
I actually thought Math.max was faster in modern Chrome than a ternary.
1 comments
hajile
1429 days ago
You can try for yourself (this uses an if..else, but they compile to the same thing)
https://www.measurethat.net/Benchmarks/Show/6528/0/mathmin-v...
link
https://www.measurethat.net/Benchmarks/Show/6528/0/mathmin-v...