On Sun, Jun 21, 2009 at 9:42 PM, Paul Biggar <paul.big...@gmail.com> wrote:
> Hi Georg, > > Thanks for the quick reply. > > On Sun, Jun 21, 2009 at 8:22 PM, Georg Gradwohl<georg.gradw...@gmail.com> > wrote: > > 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. > > Ah ok, I can see that. Thanks. > > FWIW, I consider the benchmarks to be a subproject of the run-tests > framework, at least in the long run. > > > > 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 > > > That is interesting. Alexander is making a place for microbenchmarks, > so we might copy this at some point. Indeed, it looks good and I think this might fit well in the micro bench. I think I'll add it > > > > Thanks, > Paul > > > > Am 21.06.09 20:49 schrieb "Paul Biggar" unter <paul.big...@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 > > > > > > > > > > > > -- > Paul Biggar > paul.big...@gmail.com > Out of curiosity, do you know if there any more micro-benchs in the runtests that we might take a look at as well? Best regards Alexander