Script Preparation code:
Tests:
  • phi = Math.pow(5, 0.5) * 0.5 + 0.5;

  • phi = Math.phi

  • phi = (Math.sqrt(5) + 1) / 2;

  • phi = (Math.sqrt(5) + 1) * 0.5

  • phi = 5 ** 0.5 * 0.5 + 0.5

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    phi = Math.pow(5, 0.5) * 0.5 + 0.5;
    phi = Math.phi
    phi = (Math.sqrt(5) + 1) / 2;
    phi = (Math.sqrt(5) + 1) * 0.5
    phi = 5 ** 0.5 * 0.5 + 0.5

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
phi = Math.pow(5, 0.5) * 0.5 + 0.5; 497093800.0 Ops/sec
phi = Math.phi 528125000.0 Ops/sec
phi = (Math.sqrt(5) + 1) / 2; 524022700.0 Ops/sec
phi = (Math.sqrt(5) + 1) * 0.5 516926800.0 Ops/sec
phi = 5 ** 0.5 * 0.5 + 0.5 522192500.0 Ops/sec