Re: cvs: phpruntests /code-samples arrayTest.php

From: Date: Sun, 21 Jun 2009 19:22:56 +0000
Subject: Re: cvs: phpruntests /code-samples arrayTest.php
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-44395@lists.php.net to get a copy of this message
Hi Paul, thanks for the notice. To cut a long story short: we've discussed the use of the SPL-File-Iterator in the runtests-project. So I created a very simple test which passes through an array to compare the performance of the spl-iterator to a for-loop. So I think this is no overlap with the benchmark-project, it's just a small helper to alleviate our decision. Zoe, Stefan - as always - please feel free to correct my in any way. ;) But you're might interested in the results: PHP 5.3.0RC2 (cli) g2-mbp:code-samples g2$ php arrayTest.php 9999 size: 9999 loop: 0.00361 sec (100%) spl: 0.02502 sec (693%) DIFF: 0.02141 sec PHP 5.2.8 (cli) g2-mbp:code-samples g2$ php arrayTest.php 9999 size: 9999 loop: 0.00489 sec (100%) spl: 0.76226 sec (15588%) DIFF: 0.75737 sec best regards, georg Am 21.06.09 20:49 schrieb "Paul Biggar" unter <paul.biggar@gmail.com>: > Hi Georg, > > I notice this commit that looks like a benchmark. I'm trying to figure > out if the new run-tests rewrite overlaps with the benchmarks GSoC > project (you might not have been aware since we have the discussions > on php-qa). I wouldn't mind hearing your thoughts so that we avoid > duplicated effort. > > Thanks, > Paul

« previous php.internals (#44395) next »