差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
次のリビジョン | 前のリビジョン | ||
web:e-accelerator:start [2010/09/09 23:03] yuki 作成 |
web:e-accelerator:start [2021/09/04 20:18] yuki 削除 |
||
---|---|---|---|
ライン 8: | ライン 8: | ||
</note> | </note> | ||
- | * わかんなかったら | + | |
- | * <code> cat README</code> | + | * Quick Install |
- | - wget | + | - <code>wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2 |
- | - <code> wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2</code> | + | tar jxvf eaccelerator-0.9.6.1.tar.bz2 |
- | - 解凍 | + | cd eaccelerator-0.9.6.1 |
- | - <code> tar jxvf eaccelerator-0.9.6.1.tar.bz2 </code> | + | aptitude install php5-dev |
- | - php5-devのインストール | + | phpize |
- | - <code>aptitude install php5-dev</code> | + | ./configure --enable-eaccelerator=shared |
- | - phpize | + | make && make install |
- | - <code>phpize</code> | + | cp eaccelerator.ini /etc/php5/conf.d/ |
- | - ./configure | + | apache2ctl graceful</code> |
- | - <code>./configure --enable-eaccelerator=shared</code> | + | |
- | - make | + | <note important>phpのバージョンが上がると、再コンパイルの必要があるよ。というエラーメッセージが出ることがあるので、アップデート後はチェックしましょう。</note> |
- | - <code>make && make install</code> | + | * <code>[eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.3.2-1ubuntu4.2. |
- | - Configのコピー | + | Rebuild it for your PHP version (5.3.2-1ubuntu4.8) or download precompiled binaries.</code> |
- | - <code>cp eaccelerator.ini /etc/php5/conf.d/</code> | + | |
- | - 再起動 | + | ===== 比較測定値 ===== |
- | - <code>apache2ctl graceful</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> |