Re: Benchmark Suite
| From: | Antony Dovgal | Date: | Mon, 04 Jun 2007 15:31:25 +0000 |
| Subject: | Re: Benchmark Suite | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30048@lists.php.net to get a copy of this message | ||
Hello Sebastian.
What's the status of this?
Do you have anything working?
On 27.02.2007 13:23, Sebastian Bergmann wrote:
Hi, I invested about half an hour this morning to refactor bench.php. It now starts a new PHP process for each benchmark and uses microtime(true) and memory_get_peak_usage() to measure benchmark data. Have a look at - http://phpfi.com/208939-- Wbr, Antony DovgalThis is the main script.- http://phpfi.com/208937These are the iterators used by the main script.- http://phpfi.com/208935This code is shared between the benchmark scripts.- http://phpfi.com/208941This is an example of a benchmark script.Here is an example output: sb@vmware benchmark % php run.phpBenchmark Time Peak Memory Usage ackermann 3.067452 715080 mandel 2.242472 127840 mandel2 2.185040 123448 simple 1.031363 117184 simplecall 3.849651 115528 simpleucall 4.226199 116968 simpleudcall 4.394062 117176Note that I have not yet ported all benchmarks from bench.php. At this point I would like to know whether or not people are interested in this. No point in working on this if nobody cares, right? :-) Best, Sebastian