Basically, I timed how long does it take to run this program 11 times and took the average, discarding the first point because it usually takes longer than the other 10 due to caching:
perl -M$module -e1
The average times, in seconds (on a 2.8 GHz Pentium 4 with Linux), were:
diagnostics 0.100 Archive::Zip 0.092 Class::DBI 0.070 Archive::Tar 0.060 Template 0.036 YAML 0.034 DBI 0.034 Lingua::EN::Inflect 0.030 Math::Trig 0.023 CGI 0.023 XML::SAX 0.020 XML::Simple 0.020 POSIX 0.017 Data::Dumper 0.016 warnings 0.007 strict 0.004 all of the above 0.390 none 0.003
Note that the times are not additive: the sum for all the individual modules is 0.586 s, which is much larger than using all of them at the same time (0.390 s). I think this is partly due to the overhead of starting perl each time (which could account for about 0.045 s), but mostly because of common module dependencies.
To summarize:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Benchmarks for module compilation time
by szabgab (Priest) on Jul 20, 2005 at 11:41 UTC | |
by itub (Priest) on Jul 20, 2005 at 12:56 UTC | |
by szabgab (Priest) on Jul 20, 2005 at 14:03 UTC | |
|
Re: Benchmarks for module compilation time
by simonm (Vicar) on Jul 20, 2005 at 01:40 UTC | |
by itub (Priest) on Jul 20, 2005 at 02:32 UTC | |
by radiantmatrix (Parson) on Jul 25, 2005 at 18:40 UTC | |
by itub (Priest) on Jul 25, 2005 at 20:09 UTC | |
|
Re: Benchmarks for module compilation time
by Anonymous Monk on Jul 20, 2005 at 09:51 UTC | |
by itub (Priest) on Jul 20, 2005 at 12:48 UTC | |
by ikegami (Patriarch) on Jul 21, 2005 at 17:17 UTC |