Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Firefox 5 runs
x*x
23K/s
sqrt with Math.pow
11K/s

Fastest: x*x (2.0x faster)

View exact numbers
  • x*x: 22,637 ops/sec
  • sqrt with Math.pow: 11,408 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
    x*x
    sqrt with Math.pow

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0
Firefox 151 on Linux
View result in a separate tab
x*x
21K/s
sqrt with Math.pow
8K/s
View exact numbers
Test name Executions per second
x*x 21,230 Ops/sec
sqrt with Math.pow 8,249 Ops/sec