Benchmark::Itarete patch
| From: | yavor shahpasov | Date: | Wed, 25 Jul 2001 10:49:06 +0000 |
| Subject: | Benchmark::Itarete patch | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-1044@lists.php.net to get a copy of this message | ||
I made some modifications to the Iterate class in benchmark,
previous syntax
require_once "Benchmark/Iterate.php";
$benchmark = new Benchmark_Iterate;
$benchmark->run(100, 'foo', 'test');
$result = $benchmark->get();
new syntax
it's now possible to also call
$benchmark->run(100, "DB::connect",
"mysql://user:pass@10.10.10.10/SomeDB");
or
$benchmark->run(100, "db->connect",
"mysql://user:pass@10.10.10.10/SomeDB");
is db is an instance of some class which has a method called connect.
Can some one test & commit :)
yavor shahpasov
The difference between a good man and a bad one is the choice of cause -
William James