Re:Comparing Rust and JavaScript
by drawfloat on Friday July 15, 2022 @01:38PM
(#32110768)
I actually thought Math.max was faster in modern Chrome than a ternary.
[ Parent
| on HN ]
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...