The Computer Language
Benchmarks Game

PHP programs versus Hack

by benchmark task performance

n-body
source secs mem gz cpu cpu load
PHP 358.21 8,668 1082 358.12 17% 0% 1% 83%
Hack 619.58 118,504 1432 619.38 1% 33% 68% 1%
k-nucleotide
source secs mem gz cpu cpu load
PHP 43.96 235,632 1060 142.28 87% 100% 71% 72%
Hack 53.87 286,948 1061 185.60 91% 99% 76% 80%
regex-redux
source secs mem gz cpu cpu load
PHP 3.34 158,792 786 3.30 25% 26% 22% 92%
Hack 3.92 271,128 786 3.83 30% 24% 76% 27%
spectral-norm
source secs mem gz cpu cpu load
PHP 37.94 19,420 1135 150.67 99% 99% 100% 99%
Hack 31.46 115,488 1195 122.93 99% 98% 97% 98%
fannkuch-redux
source secs mem gz cpu cpu load
PHP 280.04 33,588 1150 1,117.48 100% 100% 100% 100%
Hack 216.95 118,448 1150 850.94 98% 99% 96% 100%
fasta
source secs mem gz cpu cpu load
PHP 59.37 8,896 1030 59.36 5% 2% 3% 100%
Hack 40.88 116,344 1109 40.85 1% 48% 53% 1%
mandelbrot
source secs mem gz cpu cpu load
PHP 125.17 136,776 863 499.16 100% 100% 100% 100%
Hack 31.24 125,920 864 122.48 98% 98% 98% 99%
binary-trees
source secs mem gz cpu cpu load
PHP 88.07 736,372 1027 247.49 92% 77% 23% 91%
Hack 10.87 508,460 736 36.47 87% 98% 74% 79%
pidigits
source secs mem gz cpu cpu load
PHP 0.12 ? 394 0.11 100% 7% 0% 0%
Hack   Bad Output
reverse-complement
source secs mem gz cpu cpu load
PHP 0.08 ? 426 ? 13% 78% 14% 100%
Hack   Bad Output
PHP

PHP 7.1.4 (cli) (built: Apr 16 2017 16:17:54) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

Hack

HipHop VM 3.18.0 (rel)
Compiler: tags/HHVM-3.18.0-0-g9b285191feb2bb1558bb6682da135263bd2a9e60
Repo schema: cc987335f4691fa6ed98336c2378d8e71a751b22