in reply to Benchmarking A DB-Intensive Script
to see where exactly it is slow.use Time::HiRes qw(gettimeofday); my $start=gettimeofday; next part of code... my $next=gettimeofday; printf "time spended %.4f" ,($next-$start); next part of code... my $next_1=gettimeofday; printf "time spended %.4f" ,($next_1-$next);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Benchmarking A DB-Intensive Script
by bernanke01 (Beadle) on Mar 14, 2006 at 20:02 UTC | |
by BrowserUk (Patriarch) on Mar 14, 2006 at 21:03 UTC |