in reply to performance questions regarding cgi & fastcgi with Perl and C++

Is language really irrelevant to CGI performance on a typical webserver?
  1. Hello World.
  2. Print a list of 500 random numbers.
  3. Read in and reverse a file.
Just a side-note: I would stop for a moment and think of how relevant those tasks (and hence benchmarks) are for the overall performance of a typical webserver. nferraz writes in The problem with premature optimization...:
you could make it instantaneously-fast, or even remove it, and it wouldn't have a significant impact on the global performance at all.
I'm not saying the choice of language is irrelevant to CGI performance. I'm just saying that unless CGI performance is a bottleneck on a webserver, there are few (if any) reasons to optimize it. It all comes down to profiling where your application spends most of its time, and work on those specific areas.
--
Andreas
  • Comment on Re: performance questions regarding cgi & fastcgi with Perl and C++

Replies are listed 'Best First'.
Re^2: performance questions regarding cgi & fastcgi with Perl and C++
by Anonymous Monk on Feb 01, 2011 at 18:39 UTC
    Hi, probably my comment comes a bit late. I consider the study should drop completely Apache server which is less performant as lightppd and you should focus on comparing remote application running on lightppd. It is obvious an interpreted language as Python will never do as well as C++ did, does and will do forewer... ;-)