An open API service indexing awesome lists of open source software.

https://github.com/adhocore/php-env-bench

Benchmarking env loaders/parsers for PHP.
https://github.com/adhocore/php-env-bench

benchmark benchmarking-env-loaders parse parsers php php7 retrieval

Last synced: 9 months ago
JSON representation

Benchmarking env loaders/parsers for PHP.

Awesome Lists containing this project

README

          

## adhocore/env-bench

Benchmarking env loaders/parsers for PHP.

Candidates: `adhocore/env`, `vlucas/dotenv`, `symfony/dotenv`.

## Usage

```bash
git clone git@github.com/adhocore/env-bench.git

cd env-bench

composer install -o

vendor/bin/phpbench run src --report aggregate
```

### Preview

| Property | Value |
| ----------|:---------------:|
| Machine | XPS9360 |
| RAM | 16G |
| Processor | i7 7550U |
| SSD | 512G |
| OS | Ubuntu18.04 WSL |
| PHP | 7.2.7 |
| PHP Ext | Opcache+Xdebug |

[![Bench Preview](./bench.png "Bench Preview")](./bench.png)

### Travis Preview

[![Travis Bench Preview](https://i.imgur.com/1ZAq5A1.gif "Travis Bench Preview")](https://travis-ci.com/adhocore/php-env-bench/builds/79019720)

#### Caveat

Retrieving has not been benchmarked because none of the other except `adhocore/env` provide a factory way of retrieval. And this **definitely** is not benchmark for native `getenv()`!