The Computer Language
Benchmarks Game

PHP programs versus Hack

by benchmark task performance

n-body
source secs mem gz cpu cpu load
PHP 387.92 8,708 1082 387.84 0% 34% 68% 0%
Hack 666.77 88,744 1439 666.62 9% 1% 1% 91%
k-nucleotide
source secs mem gz cpu cpu load
PHP 43.83 235,524 1079 146.88 80% 89% 73% 95%
Hack 59.22 293,544 1081 201.51 90% 89% 77% 88%
regex-redux
source secs mem gz cpu cpu load
PHP 3.32 158,820 816 3.25 78% 27% 18% 39%
Hack 3.44 238,608 815 3.18 34% 31% 44% 73%
fannkuch-redux
source secs mem gz cpu cpu load
PHP 244.56 33,692 1160 976.04 100% 100% 100% 100%
Hack 226.71 86,800 1160 894.82 100% 99% 99% 99%
spectral-norm
source secs mem gz cpu cpu load
PHP 43.26 19,436 1152 172.15 100% 100% 100% 99%
Hack 31.83 88,408 1212 124.68 98% 98% 98% 99%
fasta
source secs mem gz cpu cpu load
PHP 60.62 8,952 1062 60.61 0% 66% 35% 0%
Hack 41.54 86,892 1147 41.52 69% 4% 4% 32%
mandelbrot
source secs mem gz cpu cpu load
PHP 142.21 135,060 875 564.00 100% 100% 100% 100%
Hack 42.45 99,020 877 166.87 98% 99% 99% 99%
binary-trees
source secs mem gz cpu cpu load
PHP 91.40 736,224 1040 258.87 76% 88% 61% 59%
Hack 10.90 351,656 742 34.16 86% 87% 81% 63%
pidigits
source secs mem gz cpu cpu load
PHP 0.14 ? 399 0.10 93% 0% 7% 0%
Hack   Bad Output
reverse-complement
source secs mem gz cpu cpu load
PHP 0.04 ? 438 0.03 50% 25% 25% 50%
Hack   Bad Output
PHP

PHP 7.1.11 (cli) (built: Nov 16 2017 15:22:17) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

Hack

HipHop VM 3.21.0 (rel)
Compiler: 3.21.0+dfsg-2
Repo schema: 1c159cf2047dca5f4a3363b2138a33e14a1e99fa