Commit 8ab25e8
authored
Update benchmark.php
Stripped out the pi maths function.
It doesn't really do any maths, just returns a constant float M_PI which doesn't really benchmark PHP mathematical performance.
(See: /ext/standard/php_math.h:#define M_PI 3.14159265358979323846 /* pi */)
Also as of PHP 8.0 it will throw a PHP Fatal error if you pass an argument to the pi function:
PHP Fatal error: Uncaught ArgumentCountError: pi() expects exactly 0 arguments, 1 given in /var/www/html/benchmark.php:1821 parent 9cfb46b commit 8ab25e8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments