Hi. I need to time my perl script to see how long it takes. How can I do this?
eltreno
9:49 am on Dec 3, 2004 (gmt 0)
In php I set the time in a variable at the top of the script then again at the bottom of it and print the difference of the 2 vars to the page
you'll obviously need time in microseconds
Hope this helps Trent
adni18
3:29 am on Dec 4, 2004 (gmt 0)
How can that be done?
Brett_Tabke
4:36 am on Dec 4, 2004 (gmt 0)
Use the Benchmark.pm perl module.
DrDoc
1:36 am on Dec 5, 2004 (gmt 0)
The benchmark module is awesome! It's really good for comparing functions (since perl = there's more than one way to do it) to see which is faster and takes less memory...
adni18
7:19 pm on Dec 5, 2004 (gmt 0)
Thanks.
volatilegx
3:26 am on Dec 7, 2004 (gmt 0)
So how long does Benchmark.pm take to load/interpret? ;)