The Computer Language
Benchmarks Game

Hack programs versus PHP

by benchmark task performance

spectral-norm
secs KB gz cpu cpu load
Hack 15.57 117,644 1195 54.82 86% 93% 87% 88%
PHP 44.45 21,584 1135 177.28 100% 100% 100% 100%
fasta
secs KB gz cpu cpu load
Hack 26.10 117,764 1109 26.08 100% 0% 0% 1%
PHP 61.40 7,840 1030 61.38 0% 100% 0% 1%
mandelbrot
secs KB gz cpu cpu load
Hack 81.00 117,520 458 80.98 0% 69% 31% 0%
PHP 141.60 131,984 863 563.41 100% 100% 100% 100%
regex-dna
secs KB gz cpu cpu load
Hack 2.61 202,280 832 6.04 76% 54% 38% 68%
PHP 2.22 107,036 832 5.10 47% 33% 100% 53%
n-body
secs KB gz cpu cpu load
Hack 550.83 105,968 1432 550.69 55% 45% 1% 0%
PHP 413.16 7,776 1082 413.04 49% 5% 42% 6%
reverse-complement
secs KB gz cpu cpu load
Hack 6.82 488,556 261 6.80 0% 1% 97% 4%
PHP 4.23 368,916 297 4.22 100% 1% 0% 0%
k-nucleotide
secs KB gz cpu cpu load
Hack 42.43 331,504 1061 136.73 68% 88% 73% 96%
PHP 21.76 230,448 1036 24.34 4% 91% 3% 15%
fannkuch-redux
secs KB gz cpu cpu load
Hack 1,183.63 113,336 532 1,183.37 100% 0% 0% 1%
PHP 300.80 29,196 1150 1,198.95 100% 100% 100% 100%
pidigits
secs KB gz cpu cpu load
Hack 488.40 117,868 735 488.23 44% 1% 1% 57%
PHP 2.18 8,780 394 2.18 0% 3% 100% 0%
binary-trees
secs KB gz cpu cpu load
Hack   Make Error
PHP 0.25 1,288 483 0.25 0% 4% 96% 8%
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.9.0 (rel)
Compiler: tags/HHVM-3.9.0-0-ga047a8f8fca8c5a0dd9021867836373ec3e40372
Repo schema: fafdc6abbd9526735214b1d74b58289707518e4f

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