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

Latest run results:
Run details: (Test run date: one year 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; 497093824.0 Ops/sec
phi = Math.phi 528124992.0 Ops/sec
phi = (Math.sqrt(5) + 1) / 2; 524022688.0 Ops/sec
phi = (Math.sqrt(5) + 1) * 0.5 516926752.0 Ops/sec
phi = 5 ** 0.5 * 0.5 + 0.5 522192512.0 Ops/sec