|
I think your test case is DB bounded.
Even though, lsws should be slightly faster than Apache, you may want to try tuning the concurrent level of lsws fcgi. In your test, Apache made 50 concurrent queries to MySQL, but lsws fcgi only made 10, according to your configuration posted in previous post. Change the "instances" to match "max connections", try different value between 10-50.
The C fastCGI could be optimized a little bit:
To use prepared SQL statement if you are using MySQL 4.1.X
To combime multiple printf to one, or buffer the result in a buffer with snprintf.
To cache the result if it does not change very often.
All in all, the faster you make the FCGI run, the bigger difference you will see between lsws and Apache.
|