The Computer Language
Benchmarks Game

Hack programs versus PHP

by benchmark task performance

binary-trees
secs KB gz cpu cpu load
Hack 35.00 652,736 480 34.96 1% 0% 1% 100%
PHP 168.15 1,549,916 483 168.01 38% 30% 1% 34%
spectral-norm
secs KB gz cpu cpu load
Hack 14.09 132,300 1195 54.15 96% 96% 95% 98%
PHP 44.45 21,584 1135 177.28 100% 100% 100% 100%
fasta
secs KB gz cpu cpu load
Hack 27.16 130,828 1109 27.14 1% 50% 51% 0%
PHP 61.40 7,840 1030 61.38 0% 100% 0% 1%
regex-dna
secs KB gz cpu cpu load
Hack 2.51 232,320 832 6.06 54% 67% 44% 78%
PHP 2.22 107,036 832 5.10 47% 33% 100% 53%
n-body
secs KB gz cpu cpu load
Hack 579.52 132,964 1432 579.35 29% 56% 0% 17%
PHP 413.16 7,776 1082 413.04 49% 5% 42% 6%
reverse-complement
secs KB gz cpu cpu load
Hack 6.33 504,728 261 6.32 0% 2% 100% 0%
PHP 4.23 368,916 297 4.22 100% 1% 0% 0%
mandelbrot
secs KB gz cpu cpu load
Hack 248.45 130,620 441 248.37 38% 18% 15% 31%
PHP 141.60 131,984 863 563.41 100% 100% 100% 100%
k-nucleotide
secs KB gz cpu cpu load
Hack 40.90 352,272 1061 134.38 89% 74% 87% 81%
PHP 21.76 230,448 1036 24.34 4% 91% 3% 15%
fannkuch-redux
secs KB gz cpu cpu load
Hack 1,234.48 130,568 440 1,234.11 17% 35% 18% 31%
PHP 300.80 29,196 1150 1,198.95 100% 100% 100% 100%
pidigits
secs KB gz cpu cpu load
Hack 478.97 135,728 735 478.80 29% 1% 1% 72%
PHP 2.18 8,780 394 2.18 0% 3% 100% 0%
fasta-redux
secs KB gz cpu cpu load
  No program contribute your program
PHP 0.48 7,756 1110 0.48 0% 0% 100% 2%
Hack

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

PHP

PHP 7.0.0 (cli) (built: Dec 3 2015 12:50:26) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies