The Computer Language
Benchmarks Game

Hack programs versus PHP

by benchmark task performance

binary-trees
source secs KB gz cpu cpu load
Hack 35.00 652,736 480 34.96 1% 0% 1% 100%
PHP 175.09 1,550,168 483 174.93 98% 4% 1% 0%
spectral-norm
source secs KB gz cpu cpu load
Hack 14.09 132,300 1195 54.15 96% 96% 95% 98%
PHP 41.23 17,104 1135 163.58 99% 99% 100% 99%
fasta
source secs KB gz cpu cpu load
Hack 27.16 130,828 1109 27.14 1% 50% 51% 0%
PHP 59.28 7,936 1030 59.26 1% 0% 1% 100%
k-nucleotide
source secs KB gz cpu cpu load
Hack 40.90 352,272 1061 134.38 89% 74% 87% 81%
PHP 44.55 135,472 1060 152.16 81% 92% 76% 93%
regex-dna
source secs KB gz cpu cpu load
Hack 2.51 232,320 832 6.06 54% 67% 44% 78%
PHP 2.23 106,284 832 5.09 62% 78% 49% 42%
n-body
source secs KB gz cpu cpu load
Hack 579.52 132,964 1432 579.35 29% 56% 0% 17%
PHP 432.48 7,928 1082 432.36 0% 100% 0% 1%
reverse-complement
source secs KB gz cpu cpu load
Hack 6.33 504,728 261 6.32 0% 2% 100% 0%
PHP 4.02 336,164 297 4.01 2% 0% 100% 0%
mandelbrot
source secs KB gz cpu cpu load
Hack 248.45 130,620 441 248.37 38% 18% 15% 31%
PHP 134.34 132,880 863 536.04 100% 100% 100% 100%
fannkuch-redux
source secs KB gz cpu cpu load
Hack 1,234.48 130,568 440 1,234.11 17% 35% 18% 31%
PHP 321.58 29,140 1150 1,280.13 100% 100% 99% 100%
pidigits
source secs KB gz cpu cpu load
Hack 478.97 135,728 735 478.80 29% 1% 1% 72%
PHP 2.19 8,852 394 2.18 100% 1% 0% 2%
fasta-redux
source secs KB gz cpu cpu load
  No program contribute your program
PHP 0.45 7,872 1110 0.45 0% 2% 0% 100%
Hack

HipHop VM 3.12.1 (rel)
Compiler: tags/HHVM-3.12.1-0-gf516f1bb9046218f89885a220354c19dda6d8f4d
Repo schema: f2e5f39b2ad4a08bcbd90b5d8bcb580f40fba6c8

PHP

PHP 7.0.6 (cli) (built: May 4 2016 16:00:18) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies