Re: MOPS Benchmark
| From: | August Zajonc | Date: | Mon, 31 Dec 2001 16:01:15 +0000 |
| Subject: | Re: MOPS Benchmark | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-75437@lists.php.net to get a copy of this message | ||
Mmmm,
since this is -dev I'm just going to
#include usual extensive benchmark disclaimers
case in point, the php and perl version are not written "same way" aka same
logic and data structures. Rewriting the perl version with a while contruct
actually speeds it up (and re-inforces the fact that these are sensitive to
small things among other issues).
My results are very close to Andrew Sitnikov's.
2x1Ghz 2.4.7-10smp
Iterations: 100000000
Estimated ops: 200000000
perl 5.6.0 w/ while
Elapsed time: 53
M op/s: 3.77
perl 5.6.0 default
Elapsed time: 69
M op/s: 2.89
php 4.1.0 (and 4.0.6)
Elapsed time: 215
M op/s: 0.93
python 1.5.2
Elapsed time: 92
M op/s: 2.15
python -OO 1.5.2
Elapsed time: 81
M op/s: 2.45
Would be interesting to profile these and see where the time goes.
- August