Math.minmax

Jordan Harband ljharb at gmail.com
Wed Jul 5 01:34:56 UTC 2017


Thanks, that's helpful.

The results I get range from a 2x improvement for 2 numbers, to a 3x
improvement for 1000 numbers (both 100K number examples get me a RangeError
in Safari).

What concrete use cases are possible with the performance of minmax that
aren't possible with a separate min and max?

On Tue, Jul 4, 2017 at 4:13 PM, Xavier Stouder <xavier at stouder.io> wrote:

> You can run three tests here : https://esbench.com/bench/
> 595c1b1899634800a03488b9
>
> Running minMax polyfill and min max with two instructions on 2, 1000 or
> 100000 numbers.
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170704/dd1cbc46/attachment.html>


More information about the es-discuss mailing list