Leser: 1
|< 1 2 3 4 >| | 35 Einträge, 4 Seiten |
QuoteThe Benchmark module encapsulates a number of routines to help you figure out how long it takes to execute some code.
timethis - run a chunk of code several times
timethese - run several chunks of code several times
cmpthese - print results of timethese as a comparison chart
timeit - run a chunk of code and see how long it goes
countit - see how many times a chunk of code runs in a given time
1
2
3
4
5
6
7
8
9
10
11
12
13
# extract new E. messages out of array
$firstnewmess=$newcount-($newcount-$oldcount)+1;
$match=0;
while ( $match ne $firstnewmess ){
$line = pop @errlist or last;
if ($line =~ /^--\s(\d+)\s-*/){ $match = $1};
unshift @difflist, $line;
}
$output=join ("\n",@difflist);
|< 1 2 3 4 >| | 35 Einträge, 4 Seiten |