Re: [PEPr] Comment on Benchmarking::Benchmark_Resources
| From: | bertrand Gugger | Date: | Tue, 14 Jun 2005 15:46:41 +0000 |
| Subject: | Re: [PEPr] Comment on Benchmarking::Benchmark_Resources | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38115@lists.php.net to get a copy of this message | ||
hey mfonda !
Matthew Fonda wrote:
Looks good! I have not studied the sources, Merci, please notes that the clonCla.php protoptype is unachieved ans uncommented, it should be turned in a tool to implement easily the watch points.
but perhaps this could be merged into existing Benchmark package? I should ask the maintainer :)True, the mechanisms are common: start(), stop() watch points, evaluate() the consumtions and prepare() some output. But then, Benchmark_Resource is designed to watch all available resources mesurements and also can make the monitoring in a "tree view" where the sections can be subdivided and forth. Practically, Benchmark as it is, is a first quick approach (only microtime), it's light and give already a lot of info on how to save CPU (what often means save the rest too). It's quite on a unit level (as "unit tests"). Benchmark_Resource intends more to handle application or classes as a whole, I would see it more in the integration direction. A feature should be also the possibility to monitor several scripts/instances at a time, eventually only for given class[es]. But naturally, you may also use Benchmark_Resource on a simple way if you're concentrated on other resources as time (e.g. memory). So, I'm really unsure there should be a merge between both, finally Benchmark_Resources interfaces are somewhat more complexes. They would be in the same category that's all.
Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=189 Thanks for your comment,à+ -- bertrand "toggg" Gugger