差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
web:e-accelerator:start [2011/05/06 15:53] yuki |
— (現在) | ||
---|---|---|---|
ライン 1: | ライン 1: | ||
- | ====== e-accelerator ====== | ||
- | phpの中間コードをメモリ上に生成して、アクセラレートする。 | ||
- | <note> | ||
- | 条件\\ | ||
- | PHP : PHP Version 5.3.2-1ubuntu4.2\\ | ||
- | e-accelerator : 0.9.6.1 | ||
- | </note> | ||
- | |||
- | |||
- | * Quick Install | ||
- | - <code>wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2 | ||
- | tar jxvf eaccelerator-0.9.6.1.tar.bz2 | ||
- | cd eaccelerator-0.9.6.1 | ||
- | aptitude install php5-dev | ||
- | phpize | ||
- | ./configure --enable-eaccelerator=shared | ||
- | make && make install | ||
- | cp eaccelerator.ini /etc/php5/conf.d/ | ||
- | apache2ctl graceful</code> | ||
- | |||
- | <note important>phpのバージョンが上がると、再コンパイルの必要があるよ。というエラーメッセージが出ることがあるので、アップデート後はチェックしましょう。</note> | ||
- | <code>[eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.3.2-1ubuntu4.2. Rebuild it for your PHP version (5.3.2-1ubuntu4.8) or download precompiled binaries.</code> | ||
- | |||
- | ===== 比較測定値 ===== | ||
- | * インストール前<code> | ||
- | # ab -n 1000 -c 10 http://www.ainoniwa.net/doku/ | ||
- | This is ApacheBench, Version 2.3 <$Revision: 655654 $> | ||
- | Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | ||
- | Licensed to The Apache Software Foundation, http://www.apache.org/ | ||
- | |||
- | Benchmarking www.ainoniwa.net (be patient) | ||
- | Completed 100 requests | ||
- | Completed 200 requests | ||
- | Completed 300 requests | ||
- | Completed 400 requests | ||
- | Completed 500 requests | ||
- | Completed 600 requests | ||
- | Completed 700 requests | ||
- | Completed 800 requests | ||
- | Completed 900 requests | ||
- | Completed 1000 requests | ||
- | Finished 1000 requests | ||
- | |||
- | |||
- | Server Software: Apache/2.2.14 | ||
- | Server Hostname: www.ainoniwa.net | ||
- | Server Port: 80 | ||
- | |||
- | Document Path: /doku/ | ||
- | Document Length: 10540 bytes | ||
- | |||
- | Concurrency Level: 10 | ||
- | Time taken for tests: 71.831 seconds | ||
- | Complete requests: 1000 | ||
- | Failed requests: 460 | ||
- | (Connect: 0, Receive: 0, Length: 460, Exceptions: 0) | ||
- | Write errors: 0 | ||
- | Total transferred: 11071982 bytes | ||
- | HTML transferred: 10538982 bytes | ||
- | Requests per second: 13.92 [#/sec] (mean) | ||
- | Time per request: 718.311 [ms] (mean) | ||
- | Time per request: 71.831 [ms] (mean, across all concurrent requests) | ||
- | Transfer rate: 150.53 [Kbytes/sec] received | ||
- | |||
- | Connection Times (ms) | ||
- | min mean[+/-sd] median max | ||
- | Connect: 0 0 0.2 0 2 | ||
- | Processing: 351 717 103.9 702 1850 | ||
- | Waiting: 259 361 117.6 346 1567 | ||
- | Total: 352 717 103.9 702 1850 | ||
- | |||
- | Percentage of the requests served within a certain time (ms) | ||
- | 50% 702 | ||
- | 66% 710 | ||
- | 75% 716 | ||
- | 80% 720 | ||
- | 90% 733 | ||
- | 95% 780 | ||
- | 98% 924 | ||
- | 99% 1310 | ||
- | 100% 1850 (longest request)</code> | ||
- | |||
- | * インストール後<code> | ||
- | # ab -n 1000 -c 10 http://www.ainoniwa.net/doku/ | ||
- | This is ApacheBench, Version 2.3 <$Revision: 655654 $> | ||
- | Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | ||
- | Licensed to The Apache Software Foundation, http://www.apache.org/ | ||
- | |||
- | Benchmarking www.ainoniwa.net (be patient) | ||
- | Completed 100 requests | ||
- | Completed 200 requests | ||
- | Completed 300 requests | ||
- | Completed 400 requests | ||
- | Completed 500 requests | ||
- | Completed 600 requests | ||
- | Completed 700 requests | ||
- | Completed 800 requests | ||
- | Completed 900 requests | ||
- | Completed 1000 requests | ||
- | Finished 1000 requests | ||
- | |||
- | |||
- | Server Software: Apache/2.2.14 | ||
- | Server Hostname: www.ainoniwa.net | ||
- | Server Port: 80 | ||
- | |||
- | Document Path: /doku/ | ||
- | Document Length: 10538 bytes | ||
- | |||
- | Concurrency Level: 10 | ||
- | Time taken for tests: 22.416 seconds | ||
- | Complete requests: 1000 | ||
- | Failed requests: 593 | ||
- | (Connect: 0, Receive: 0, Length: 593, Exceptions: 0) | ||
- | Write errors: 0 | ||
- | Total transferred: 11071982 bytes | ||
- | HTML transferred: 10538982 bytes | ||
- | Requests per second: 44.61 [#/sec] (mean) | ||
- | Time per request: 224.160 [ms] (mean) | ||
- | Time per request: 22.416 [ms] (mean, across all concurrent requests) | ||
- | Transfer rate: 482.36 [Kbytes/sec] received | ||
- | |||
- | Connection Times (ms) | ||
- | min mean[+/-sd] median max | ||
- | Connect: 0 0 2.6 0 37 | ||
- | Processing: 73 224 22.5 221 377 | ||
- | Waiting: 7 27 31.9 8 243 | ||
- | Total: 73 224 22.7 221 377 | ||
- | |||
- | Percentage of the requests served within a certain time (ms) | ||
- | 50% 221 | ||
- | 66% 227 | ||
- | 75% 230 | ||
- | 80% 232 | ||
- | 90% 240 | ||
- | 95% 253 | ||
- | 98% 297 | ||
- | 99% 324 | ||
- | 100% 377 (longest request)</code> |