Contenu connexe
Similaire à Craft CMSに最適なサーバはどんな環境? (20)
Craft CMSに最適なサーバはどんな環境?
- 6. すべてのエンジニアとクライアントに安心を
PHPはWordPress等を基準にチューニングされている事実
Results for project PHP master, build date 2017-09-10 19:24:00-07:00
(snip…)
previous commit: c5dfbcf
revision date: 2017-09-10 18:51:41+02:00
environment: Haswell-EP
cpu: Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB
mem: 128 GB
os: CentOS 7.1
kernel: Linux 3.10.0-229.4.2.el7.x86_64
Baseline results were generated using release php-7.0.0, with hash 60fffd2 from
2015-12-01 04:16:47+00:00-------------------------------------------------------------------------------------------
:-| Wordpress 4.2.2 cgi -T10000 0.23% 0.48% 4.12% ¥
8.79% :-| Drupal 7.36 cgi -T10000 0.17% 0.49% 3.73% ¥
6.42% :-| MediaWiki 1.23.9 cgi -T5000 0.17% 0.12% 4.28% ¥
(Snip…)
-------------------------------------------------------------------------------------------
https://marc.info/?l=php-internals&m=150517848828918&w=2
- 10. すべてのエンジニアとクライアントに安心を
Craft CMSは中間言語を予測可能
# grep -nr 'eval' ./craft/app/*.php
(none…)
# grep -nr 'require' ./craft/app/*.php
./craft/app/Craft.php:352:
require_once $file;
$rootPath = CRAFT_APP_PATH;
$rootPath = CRAFT_PLUGINS_PATH;
$path = $rootPath.implode('/', $segs);
$file = $path.'.php’;
./craft/app/index.php:61:$app
= require 'bootstrap.php';
- 14. すべてのエンジニアとクライアントに安心を
検証環境の紹介
• CentOS7
• nginx
• HHVM + PHP7 (FastCGI) + PHP5.6(FastCGI)
• MariaDB(InnoDB)
• Let’s Encrypt
• GMO Internet ConoHa TokyoRegion
• CPU : Xeon(R) CPU E5-2650 v3 @ 2.30GHz 24Cores
20M キャッシュ、2.00 GHz、8.00 GT/s インテル® QPI
• Memory : 512MB, 1GB, 2GB, 4GB, 8GB, 16GB, 32GB
Configure Kernel Parameter
• Shared 10GBase Shared Local Network