Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30048 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99257 invoked by uid 1010); 4 Jun 2007 15:31:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99242 invoked from network); 4 Jun 2007 15:31:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2007 15:31:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:26895] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/D5-57078-55034664 for ; Mon, 04 Jun 2007 11:31:35 -0400 Received: (qmail 22033 invoked from network); 4 Jun 2007 15:31:29 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 4 Jun 2007 15:31:29 -0000 Message-ID: <4664304D.5010609@zend.com> Date: Mon, 04 Jun 2007 19:31:25 +0400 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Sebastian Bergmann CC: php-dev References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Benchmark Suite From: antony@zend.com (Antony Dovgal) 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 > > This is the main script. > > - http://phpfi.com/208937 > > These are the iterators used by the main script. > > - http://phpfi.com/208935 > > This code is shared between the benchmark scripts. > > - http://phpfi.com/208941 > > This is an example of a benchmark script. > > Here is an example output: > > sb@vmware benchmark % php run.php > Benchmark 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 117176 > > Note 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 > -- Wbr, Antony Dovgal