Download the PHP package hyperized/benchmark without Composer

On this page you can find all versions of the php package hyperized/benchmark. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package benchmark

PHP benchmark

CI

Comprehensive PHP server benchmarking utility. Tests your hosting environment across 15 benchmark modules and reports results in milliseconds.

Auto-detects CLI vs web and renders with the appropriate output mode:

Each run saves a JSON report with a timestamp to reports/.

Benchmark Modules

Category Module What it measures
Environment PHP Version, ini settings, memory limits, loaded extensions
I/O Disk I/O File creation across 8 block sizes (512B–64KB)
File Read Sequential reads across file sizes (1KB–4MB)
Network DNS resolution and TCP connection latency
Compute CPU Math functions, string operations, loops, conditionals
Memory Allocation speed and peak memory per operation
Regex preg_match and preg_replace across 10 pattern types
JSON Encode/decode with small, medium, and large payloads
Serialization serialize vs json_encode vs var_export (+ igbinary/msgpack if available)
Hashing md5, sha1, sha256, sha512, xxh3, crc32, hmac-sha256, bcrypt, argon2id
Encryption AES-128/256-CBC/GCM, ChaCha20-Poly1305 encrypt and decrypt
Compression gzip, zlib, deflate (+ brotli/lzf if available) with compression ratios
Runtime Function Overhead Named function, closure, first-class callable, static/instance method, arrow function
Type Casting int/string/float/bool conversions
Object Instantiation stdClass, DateTime, SplStack, SplPriorityQueue, ArrayObject
Database MySQL Query performance (requires ext-mysqli)

All modules can be individually enabled/disabled and configured in config/config.yml.

Requirements

Installation

Adjust config/config.yml to your preferences. Set module toggles, cycle counts, MySQL credentials, and optionally override the output format.

Usage

CLI

Example output:

Web

Open http://localhost:8000 for a styled HTML dashboard with cards for each module.

Remote

Install on the server via Composer and visit /benchmark.php in the browser.

Reports

JSON reports are saved to reports/ with timestamped filenames (e.g. 2026-04-11_143022.json). Disable via benchmark.output.report: false in config.

Configuration

All modules support enabled: true/false and configurable cycle counts:

Security

If deploying to a web server, ensure config.yml is not publicly accessible. For Apache with mod_rewrite:

Development

Contribution

I'm open to improvements and new benchmarks via pull requests.

Issues can be reported through Issues. Please include the full output of the script and your config file without the password.

License

MIT


All versions of benchmark with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
roave/security-advisories Version dev-master
symfony/config Version ^7.0
symfony/yaml Version ^7.0
php-di/php-di Version ^7.0
adbario/php-dot-notation Version ^3.0
ext-mysqli Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hyperized/benchmark contains the following files

Loading the files please wait ...