Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HHVM Makes Everything Stupid Fast

HHVM Makes Everything Stupid Fast

Kristopher Wilson

February 11, 2014
Tweet

More Decks by Kristopher Wilson

Other Decks in Technology

Transcript

  1. HHVM is a new open-source virtual machine designed for executing

    programs written in PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the flexibility that PHP developers are accustomed to. What is HHVM?
  2. HHVM is a new open-source virtual machine designed for executing

    programs written in PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the flexibility that PHP developers are accustomed to. What is HHVM?
  3. $ time php composer.phar install --dev Loading composer repositories with

    package information Installing dependencies (including require-dev) ... Writing lock file Generating autoload files 14.022 seconds HHVM vs PHP $ time hhvm composer.phar install --dev Loading composer repositories with package information Installing dependencies (including require-dev) ... Writing lock file Generating autoload files 6.583 seconds
  4. $ php ../vendor/bin/phpunit PHPUnit 3.7.27 by Sebastian Bergmann. … Time:

    17.24 minutes, Memory: 144.00Mb HHVM vs PHP $ hhvm ../vendor/bin/phpunit PHPUnit 3.7.27 by Sebastian Bergmann. … Time: 6.44 seconds, Memory: 72.29Mb
  5. Installation • Linux: Use Provided Binary Packages • Linux: Or

    compile from source… • Mac: Use homebrew • Windows: