Benchmarking is always fun.
Using ab on localhost, asking for 50_000 requests of the Tux served front page: 27.924 secs. 1790.57 requests per second.
Ditto but for the mod_perl real pages (yes, it's not really fair to compare them, but I'm going to): [twiddles thumbs, waiting for it]
Tell you what, I'll post tomorrow.
Re:Plain httpd benchmarking...
koschei on 2002-06-02T14:45:53
The machine doesn't have the world's best setup. Nowhere near it. Partly due to it being my experimental machine before it was unceremoniously put into production due to the production server dying (motherboard; managed to salvage the rest but it was good to see it go anyway). Still no new backup, hence Tux being tried on the production =) Don't try this at work, kids.
Half the problem is that a lot of the content isn't static. Everything is done using Mason (well, almost everything). I'm not entirely sure whether I should be trying to make it static or not. I suspect I'll move some of the more esoteric dynamic features out. Make things more static, and more appropriate for Tux serving. Some bits, like the Alumni and AFL sections - definite dynamicism there. No choice about that. Need to use $m->cache a bit more, but it's no real worry.
Nothing really is much of a worry. The machine copes with what it's meant to do - it's not a high hitter. Tux will probably end up just serving images and the (main) external site - simply because the external site is 97% static. Any of the 'dynamic' part of the static site is mostly there to save writing the damn HTML =)
I just like having a machine perform better than it has to =)
A simple wget -Ekr <host> with a --exclude-dir options suffices to create the Tuxable image. I like the idea of Tux better than the usual recommendation - having a proxy Apache, simply because it's so gosh darn simple to set up and I don't end up with two Apaches to look after.
Main problem will be with the guy who nominally looks after the pages. Have to train him =) Or cron it as well.
That all said - Tux probably won't be used until I get everything kitted with Apache 2, mod_perl 2 and the new Mason. And perl 5.8.[01] =)