ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Victor Forsyuk <force@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: litespeed performance
Date: Wed, 14 Sep 2005 17:56:54 +0300
Message-ID: <20050914145654.GA21300@mail.gu.net> (raw)
In-Reply-To: <43270C09.8000806@freesource.info>

On Tue, Sep 13, 2005 at 09:27:37PM +0400, Denis Smirnov wrote:
> Michael Shigorin wrote:
> 
> >>Думаю всё гораздо проще. mod_php подразумевает чтение с диска и
> >>парсинг скрипта при каждом обращении, fastcgi это не нужно.
> >>
> >Чуточку сложнее ввижу mmcache & co, правды ради.
> >
> Там где он установлен и настоен. А разница на треть в бенчмарке, 
> думается мне, именно этим объясняется.

Этим - это чем? Влиянием парсинга? Ok, потестируем еще.

В одном углу ринга:

apache-1.3.33rusPL30.20-alt1.M24 +
mod_php-4.3.10-alt0.M24.2 +
php-mmcache-2.4.6-alt4.M24.2

В другом углу
LiteSpeed Web Server V2.1RC3 Standard Edition +
php 4.4.0 (Server API: LiteSpeed) +
eAccelerator v0.9.3

Акселераторы включены, проверено. Результаты:

LiteSpeed:

$ ab -n 100000 -c 100 http://10.0.3.14:8088/phpinfo.php

Requests per second:    449.23 [#/sec] (mean)
Time per request:       222.60 [ms] (mean)
Time per request:       2.23 [ms] (mean, across all concurrent requests)

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    50  166.0     42  3056
Processing:    39   172   38.3    176  3259
Waiting:        9   171   38.3    175  3258
Total:         39   222  170.4    220  3376


Apache:

$ ab -n 100000 -c 100 http://10.0.3.14/phpinfo.php

Requests per second:    329.25 [#/sec] (mean)
Time per request:       303.72 [ms] (mean)
Time per request:       3.04 [ms] (mean, across all concurrent requests)

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    64  241.4     46  3125
Processing:    14   239   71.2    245  3517
Waiting:       12   239   71.2    244  3517
Total:         14   303  252.0    293  6408


> Плюс ещё чтение php.ini (не помню, оно на каждый hit делается?).

Для mod_php - только раз при старте сервера.
 
> Плюс, как я понимаю, разобрать FCGI-данные куда быстрее, чем лазить по 
> внутренним структурам apache, собирая требуемую информацию о соединении. 
> Ну и у apache, из-за его расширяемости, сложная мнгоуровневая структура.

Вот об этом-то на лайтспидовском форуме и писали.



  reply	other threads:[~2005-09-14 14:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-11 20:00 [devel] I: lighttpd Konstantin A. Lepikhov
2005-09-11 21:10 ` [devel] " Michael Shigorin
2005-09-11 21:28   ` Konstantin A. Lepikhov
2005-09-12 14:52     ` Michael Shigorin
2005-09-12 15:05       ` Konstantin A. Lepikhov
2005-09-12 14:28   ` Victor Forsyuk
2005-09-12 14:45     ` Sergey Pinaev
2005-09-12 15:12       ` Victor Forsyuk
2005-09-13  7:18         ` Sergey Pinaev
2005-09-13  9:28           ` [devel] litespeed performance Victor Forsyuk
2005-09-13 12:53             ` Денис Смирнов
2005-09-13 14:28               ` [devel] " Michael Shigorin
2005-09-13 17:27                 ` Denis Smirnov
2005-09-14 14:56                   ` Victor Forsyuk [this message]
2005-09-13 15:33               ` [devel] " Victor Forsyuk
2005-09-12 11:14 ` [devel] Re: lighttpd Vitaly Ostanin
2005-09-12 14:49   ` [devel] [JT] " Michael Shigorin
2005-09-12 20:39   ` [devel] " Денис Смирнов
2005-09-13  9:17     ` Vitaly Ostanin
2005-09-13 12:51       ` Денис Смирнов

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050914145654.GA21300@mail.gu.net \
    --to=force@altlinux.org \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git