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.
- Host: GitHub
- URL: https://github.com/adhocore/php-env-bench
- Owner: adhocore
- License: mit
- Created: 2018-07-15T08:58:56.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-05-21T14:28:26.000Z (about 3 years ago)
- Last Synced: 2025-06-28T07:43:19.603Z (about 1 year ago)
- Topics: benchmark, benchmarking-env-loaders, parse, parsers, php, php7, retrieval
- Language: PHP
- Homepage:
- Size: 129 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.png)
### Travis 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()`!