Test name | Executions per second |
---|---|
phi = Math.pow(5, 0.5) * 0.5 + 0.5; | 2480512.0 Ops/sec |
phi = Math.phi | 2423255.8 Ops/sec |
phi = (Math.sqrt(5) + 1) / 2; | 2409008.0 Ops/sec |
phi = (Math.sqrt(5) + 1) * 0.5 | 2364923.0 Ops/sec |
phi = 5 ** 0.5 * 0.5 + 0.5 | 5060345.5 Ops/sec |