xecon2015 :: [3-1] 용영환 - hhvm 서비스 적용기
TRANSCRIPT
공식 Prebuild Package 가아직은 적다 .
Ubuntu 14.04 / 14.10 / 15.04Debian 7 / 8
https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-for-HHVM
그래서 , 이 외의 OS 에서 구동하려면직접 컴파일을 해야 한다 .
https://github.com/facebook/hhvm/wiki/Building%20and%20Installing%20HHVM
PHP HHVM
math 1.274 sec. 0.403 sec.
stringmanipulation 1.311 sec. 0.747 sec.
loops 0.813 sec. 0.045 sec.
ifelse 0.639 sec. 0.093 sec.
PHP vs. HHVM 성능 테스트
스크립트 출처 : http://www.php-benchmark-script.com/
php.ini
; php options;session.save_handler = files;session.save_path = /var/lib/php5;session.gc_maxlifetime = 1440session.save_handler = redissession.save_path = “xxx.xxx.xxx.xxx:6379"session.gc_maxlifetime = 1440
; hhvm specifichhvm.log.level = Warninghhvm.log.always_log_unhandled_exceptions = truehhvm.log.runtime_error_reporting_level = 8191hhvm.mysql.typed_results = false
server.ini
; php options
pid = /var/run/hhvm/pid
; hhvm specific
hhvm.server.port = 9000hhvm.server.type = fastcgihhvm.server.default_document = index.phphhvm.log.use_log_file = truehhvm.log.file = /var/log/hhvm/error.loghhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc