in reply to Re: Benchmarks for module compilation time
in thread Benchmarks for module compilation time
The part that computes "all" and "none" is left as an exercise to the reader. ;-)#!/bin/bash modules="Archive::Tar Archive::Zip CGI Class::DBI DBI Data::Dumper Lin +gua::EN::Inflect Math::Trig POSIX Template XML::SAX XML::Simple YAML +diagnostics strict warnings" export TIMEFORMAT="%R" rm -f table for m in $modules; do time perl -M$m -e1; for i in `seq 1 10`; do time perl -M$m -e1; done &> $m echo -ne "$m\t" >> table awk '{t+=$1} END{print t/10}' $m >> table done sort -k2 -rn table > table.sorted
I hope I won't be downvoted for using shell instead of Perl! ;-) Sadly, this makes the test less portable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Perl port?
by radiantmatrix (Parson) on Jul 25, 2005 at 18:40 UTC | |
by itub (Priest) on Jul 25, 2005 at 20:09 UTC |