Skip to content

Instantly share code, notes, and snippets.

@icambridge
Last active September 3, 2015 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icambridge/7204f478dfcb8c5e4811 to your computer and use it in GitHub Desktop.
Save icambridge/7204f478dfcb8c5e4811 to your computer and use it in GitHub Desktop.
bench
vagrant@php7dev:/vagrant$ php benchmark.php
time: 1.4532651901245
memory usage: 6291456
JMS - PHP 7
---
vagrant@php7dev:/vagrant$ nano benchmark.php
vagrant@php7dev:/vagrant$ php benchmark.php
time: 0.29000401496887
memory usage: 4194304
RAW - PHP 7
---
vagrant@php7dev:/vagrant$ nano benchmark.php
vagrant@php7dev:/vagrant$ php benchmark.php
time: 0.90826797485352
memory usage: 6291456
WEASEL PHP 7
----
vagrant@php7dev:/vagrant$ php benchmark.php
time: 0.67757391929626
memory usage: 5242880
WEASEL - PHP 5.6
---
vagrant@php7dev:/vagrant$ php benchmark.php
time: 0.26822900772095
memory usage: 4456448
RAW - PHP 5.6
---
vagrant@php7dev:/vagrant$ php benchmark.php
time: 1.2048461437225
memory usage: 5242880
JMS - PHP 5.7
vagrant@php7dev:/vagrant$ php benchmark.php
time: 13.966179132462
memory usage: 5242880
vagrant@php7dev:/vagrant$ newphp 7
Activating PHP 7.0.0-dev (cli) (built: Sep 3 2015 08:55:38) and restarting php-fpm
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
vagrant@php7dev:/vagrant$ php benchmark.php
time: 5.1317358016968
memory usage: 4194304
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment