The Computer Language
Benchmarks Game

Hack programs versus PHP

by benchmark task performance

binary-trees
secs KB gz cpu cpu load
Hack 34.94 397,428 480 34.90 0% 0% 1% 100%
PHP 612.27 1,021,788 472 611.49 1% 1% 0% 100%
mandelbrot
secs KB gz cpu cpu load
Hack 81.00 118,092 458 80.97 1% 0% 0% 100%
PHP 1,219.42 4,256 443 1,219.07 1% 1% 1% 100%
spectral-norm
secs KB gz cpu cpu load
Hack 53.98 117,884 398 53.96 1% 0% 0% 100%
PHP 471.36 7,284 397 471.23 1% 0% 0% 100%
regex-dna
secs KB gz cpu cpu load
Hack 5.33 286,192 456 5.31 0% 1% 1% 100%
PHP 27.36 217,384 459 27.35 1% 1% 0% 100%
fasta
secs KB gz cpu cpu load
Hack 26.07 118,012 1109 26.05 1% 1% 1% 100%
PHP 116.38 3,364 1030 116.35 0% 0% 1% 100%
fannkuch-redux
secs KB gz cpu cpu load
Hack 1,182.32 113,820 532 1,182.06 0% 1% 0% 100%
PHP 2,611.99 3,296 441 2,611.29 1% 1% 0% 100%
n-body
secs KB gz cpu cpu load
Hack 549.04 115,932 1432 548.90 0% 0% 1% 100%
PHP 657.95 3,364 1082 657.77 1% 0% 0% 100%
reverse-complement
secs KB gz cpu cpu load
Hack 6.61 490,368 261 6.59 0% 1% 1% 100%
PHP 5.83 444,352 262 5.82 1% 1% 1% 100%
k-nucleotide
secs KB gz cpu cpu load
Hack 141.07 352,484 1061 140.55 0% 1% 1% 100%
PHP 41.35 247,852 1036 41.33 1% 0% 0% 100%
pidigits
secs KB gz cpu cpu load
Hack 490.29 121,332 735 490.11 0% 1% 1% 100%
PHP 2.23 4,100 394 2.23 1% 0% 0% 100%
fasta-redux
secs KB gz cpu cpu load
  No program contribute your program
PHP 0.65 3,372 1110 0.64 0% 2% 0% 100%
Hack

HipHop VM 3.9.0 (rel)
Compiler: tags/HHVM-3.9.0-0-ga047a8f8fca8c5a0dd9021867836373ec3e40372
Repo schema: fafdc6abbd9526735214b1d74b58289707518e4f

PHP

PHP 5.6.7 (cli) (built: Mar 25 2015 15:05:06)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies