On Sunday 13 March 2005 00:43, Mark Stosberg wrote: > > There is also a benchmarking module cunningly named "Benchmark" which you > > should have a look at. > Now now, I mentioned in the message I looked at 'Benchmark' first and it > didn't work. I got the sense it might have only been timing the Perl > parts of the code, which makes sense if you are using it to optimize > Perl rather than system calls. > For what I need, I think simply calling 'time' will do.
I've checked the Benchmark module docs, and it's not too clear ( for me ), but I think they measure user/system time of your proccess. If you are executing external code via system/backticks etc.. this is normally done in a child process, a fork away, and not normally counted. I fear Benchmark is oriented to count code in modules/libraries. As someone sugested time/Time::Hires maybe the way to go for your tests. F.O.S.