“いきなり1000倍高速”WordPress仮想マシン「KUSANAGI」は、実際にどれだけ速いのかとにかく速いWordPress(12)(3/4 ページ)

» 2016年08月25日 05時00分 公開
[中村けん牛プライム・ストラテジー]

KUSANAGIのベンチマークを測定する

 では、KUSANAGIは本当に速いのか。KUSANAGIのベンチマーク結果と、以前実施したWordPressチューニング環境のパフォーマンスを比べてみましょう。

 まず、Webサーバの2種類「Nginx 1.11」と「Apache 2.4」、PHP処理系の2種類「HHVM 3.13」と「PHP 7.0」を組み合わせた、ページキャッシュを用いない4パターンのパフォーマンスを、1秒当たりの同時アクセス数を測定できるabコマンドで確認します。

(1)KUSANAGIベンチマーク:Apache+PHP 7環境

 KUSANAGI環境のミドルウェアの組み合わせを「Apache」+「PHP 7」に切り替えます。

kusanagi httpd
kusanagi php7
ミドルウェアの組み合わせを「Apache」+「PHP 7」に切り替えるKUSANAGIコマンド

 abコマンドを実行します。次のコマンドを10秒間隔で5回実行します。間隔を空けて複数回実行するのは、ウォームアップを行い、測定の精度を高めるためです。

ab -n 300 -c 30 http://ec2-xxx.xxx.compute.amazonaws.com/
(“xxx”はユーザー固有の文字列、以下同)

 筆者の環境では、5回目の実行で次のような結果が返ってきました。

  1. [root@ip ~]# ab -n 300 -c 30 http://ec2-xxx.xxx.compute.amazonaws.com/
  2. This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
  3. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  4. Licensed to The Apache Software Foundation, http://www.apache.org/
  5. Benchmarking ec2- xxx.xxx.compute.amazonaws.com (be patient)
  6. Completed 100 requests
  7. Completed 200 requests
  8. Completed 300 requests
  9. Finished 300 requests
  10. Server Software: Apache
  11. Server Hostname: ec2-xxx.xxx.compute.amazonaws.com
  12. Server Port: 80
  13. Document Path: /
  14. Document Length: 11679 bytes
  15. Concurrency Level: 30
  16. Time taken for tests: 1.924 seconds
  17. Complete requests: 300
  18. Failed requests: 0
  19. Total transferred: 3594300 bytes
  20. HTML transferred: 3503700 bytes
  21. Requests per second: 155.95 [#/sec] (mean)
  22. Time per request: 192.366 [ms] (mean)
  23. Time per request: 6.412 [ms] (mean, across all concurrent requests)
  24. Transfer rate: 1824.68 [Kbytes/sec] received
  25. Connection Times (ms)
  26. min mean[+/-sd] median max
  27. Connect: 0 0 0.1 0 1
  28. Processing: 80 187 32.0 198 285
  29. Waiting: 80 187 32.0 197 285
  30. Total: 81 187 32.0 198 285
  31. Percentage of the requests served within a certain time (ms)
  32. 50% 198
  33. 66% 201
  34. 75% 204
  35. 80% 206
  36. 90% 215
  37. 95% 219
  38. 98% 226
  39. 99% 260
  40. 100% 285 (longest request)
ベンチマーク結果

 1秒当たりの同時アクセス数は「155.95」となりました

Copyright © ITmedia, Inc. All Rights Reserved.

スポンサーからのお知らせPR

Linux �� OSS 險倅コ九Λ繝ウ繧ュ繝ウ繧ー

譛ャ譌・譛磯俣

注目のテーマ

4AI by @IT - AIを作り、動かし、守り、生かす
Microsoft & Windows最前線2025
AI for エンジニアリング
ローコード/ノーコード セントラル by @IT - ITエンジニアがビジネスの中心で活躍する組織へ
Cloud Native Central by @IT - スケーラブルな能力を組織に
システム開発ノウハウ 【発注ナビ】PR
あなたにおすすめの記事PR

RSSについて

アイティメディアIDについて

メールマガジン登録

@ITのメールマガジンは、 もちろん、すべて無料です。ぜひメールマガジンをご購読ください。