paulmillr / es6-shim

ECMAScript 6 compatibility shims for legacy JS engines
http://paulmillr.com
MIT License
3.11k stars 387 forks source link

performance of `Math.hypot` #346

Closed Yaffle closed 9 years ago

Yaffle commented 9 years ago

http://jsperf.com/math-hypot/8

ljharb commented 9 years ago

Thanks for the jsperf. The browserscope results seem to be erroring out for me - do you have a screenshot of them?

Yaffle commented 9 years ago

The browserscope results seem to be erroring out for me

for me too

ljharb commented 9 years ago

Either way, our implementation is super slow, and Math.hypotX seems to be the fastest, it passes all tests, and it's not as unreadable as some of the others - I'll update to use it, thanks.

Yaffle commented 9 years ago

fine