February 25th, 2008
Posted by Fred Wu
So I had a play with LiteSpeed just recently. Let’s have a look at what the benchmark says.
Tool used: ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Benchmark object: My WordPress blog (homepage), of course I made an exact copy of the current blog you’re seeing to my VPS box (which has both Apache and LiteSpeed installed).
Both Apache and LiteSpeed use default configuration parameters. Since the benchmark was done on the same server, hardware is the same, however there are some software differences.
测一下nginx吧
nginx配置起来有些麻烦,最近肯定是没时间了…… :(
nginx 很容易配置,我感觉比apache还容易配置。。
同上 nginx真的很简单的 速度又快
Dear Fred,
think its a rather useless comparison.
1. you should test against
ab -n50 http://url/to/my/vps/wordpress/
not against
ab -n50 http://url/to/my/vps/wordpress
2. test against really static content .html, if caching opens php process, its of course very differnt.
3. ahmm, sorry -xcache enabled as you already said…
have you tried
pecl install apc
for apache, or eaccelerator? I got different mixupped results on different machines – very interestig stuff.
Hope you will do more of it, e.g. let us know both benchs with / wothout opcode caching on bot servers…
greetings from the other end of da world,
chris
BTW – “Requests per second: 1.08 [#/sec] (mean)”
think that says one thing: for fast PHP, you need much CPU Power.
Chris,
Thanks for your comments. Would you please clarify the URL difference in your first suggestion? AFAIK it makes no difference with or without the trailing slash.
The benchmark, as I have mentioned in the post, was not done scientifically in the sense of using equal software environment. I hope in the future I am able to conduct a more thorough benchmark. As of right now I am busy with some other stuff…
Thanks again for your comments I will definitely take them into account for the next benchmark (whenever that will be).
Cheers,
Fred
I can clarify the trailing slash bit, if you don’t include it the webserver should return a Location: redirect with a new URL including the trailing slash, which means a round trip for nothing. So things will be quicker if you include it.
I am writing a simple little webserver which is outperforming litespeed and other fast servers (by a small margin at the moment).
Nginx is much faster:
NginX vs LiteSpeed: Magento Benchmark Tests
http://turnkeye.com/blog/2010/.....t-magento/
Very interesting, i want apply Litespeed for my site that use Kloxo, but still having trouble trouble for combine with my server that use Kloxo :(
I am interisting but still having trouble trouble Litespeed for mys site that use Kloxo :(
I usually do not drop a comment, but I browsed a few of the responses here Benchmark: LiteSpeed
vs Apache (PHP and Plain HTML) | Beyond Coding.
I actually do have 2 questions for you if you tend not to
mind. Is it simply me or do a few of the responses look like
they are left by brain dead individuals? :-P And, if you are writing on additional online social sites,
I would like to keep up with you. Could you make a list of
all of all your social community sites like your
twitter feed, Facebook page or linkedin profile?