PHPBench will try and record as much information about the current environment
as it can. This is facilitated by “environment provider” classes which
PhpBench\\Environment\\ProviderInterface and are registered
environment_provider tag in the DI container.
This information is recorded in the XML document:
<env> <uname os="Linux" host="dtlt410" release="4.2.0-1-amd64" version="#1 SMP Debian 4.2.6-1 (2015-11-10)" machine="x86_64"/> <php version="5.6.15-1"/> <unix-sysload l1="1.04" l5="0.63" l15="0.55"/> <vcs system="git" branch="env_info" version="edde9dc7542cfa8e3ef4da459f0aaa5dfb095109"/> </env>
Available: When PHPBench is run in the root directory of a GIT
The GIT provider will provide VCS information, including the branch and
vesion (i.e. the
Provides the PHP version.
Provides information about the operating system obtained through the php_uname command.
Available: On non-windows systems.
Provides the CPU load for the following time periods: 1 minute, 5 minutes and 15 minutes.
Provides baseline measurements, by default it will provide mean times for executing the following micro-benchmarks (1000 revolutions):
nothing: An empty method.
md5: Calculation of an MD5 hash.
file_rw: File read and write.
These measurements can help determine the relative speed of the system under test compared to other systems.