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

From: Date: Sun, 21 Jun 2009 19:42:16 +0000
Subject: Re: cvs: phpruntests /code-samples arrayTest.php
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-44396@lists.php.net to get a copy of this message
Hi Georg, Thanks for the quick reply. On Sun, Jun 21, 2009 at 8:22 PM, Georg Gradwohl<georg.gradwohl@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. Thanks, Paul > 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 > > > > -- Paul Biggar paul.biggar@gmail.com

« previous php.internals (#44396) next »