But benchmark the right thing.
We are talking about a cgi-script where you can assume that it will serve clients that are on another machine (probably even on another network).
Even finding out that a bash-version is twice as fast as a perl-version it means nothing when the network-overhead is a thousend times bigger.
So if you want to benchmark, benchmark not the scripts but the impact it has on clients receiving responses from your script.
Using Perl gives you easy access to query-parameters (CGI.pm), a debugger and endless ways to make your cgi-script talk to other systems (a database maybe?).
If you are doing cgi use Perl.
If cgi is too slow use mod_perl.
Don't ever use a shell-script for that sort of stuff - unless maybe as an excercise in software archeology to see how previous generations used to do things. |