News for hackers. Stuff that matters.
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.
Re:Comparing Rust and JavaScript by hajile on Friday July 15, 2022 @05:12PM (#32112868)
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...