Script Preparation code:
Tests:

Historical Performance Data aggregated from 33 community runs

Desktop Results:
Chrome 20 runs
Math.sqrt
246/s
Math.hypot
90/s

Fastest: Math.sqrt (2.7x faster)

View exact numbers
  • Math.sqrt: 246 ops/sec
  • Math.hypot: 90 ops/sec
Firefox 13 runs
Math.hypot
2K/s
Math.sqrt
2K/s
View exact numbers
  • Math.hypot: 2,033 ops/sec
  • Math.sqrt: 2,003 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.hypot
    Math.sqrt

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 27 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
Math.sqrt
667/s
Math.hypot
81/s
View exact numbers
Test name Executions per second
Math.sqrt 667 Ops/sec
Math.hypot 81 Ops/sec