green-elephpant / code-bench-laravel
A package to conveniently use CodeBench in your Laravel project
Requires
- php: >=7.4
- green-elephpant/code-bench: ^v0.1.0
README
Green ElePHPant - CodeBench Laravel
The Green ElePHPant wants to help you to reduce the carbon emissions of your software.
One way of doing so is to optimize the performance. Less CPU, RAM and Storage means reduced energy consumption, fewer carbon emissions, and less hardware to be produced. And, last but not least, the users of your software will benefit from a faster application.
GreenElephpant\CodeBenchLarvel
is a tiny package to conveniently include CodeBench into your Laravel project.
Key concept
GreenElephpant\CodeBench
is a simple helper to compare the performance of code blocks.
This package configures GreenElephpant\CodeBench
to directly use Log::debug()
.
Installation
composer require green-elephpant/code-bench-laravel --dev
Note: we use require-dev
here, since GreenElephpant\CodeBench
should not be used in production code.
Usage
See the CodeBench documentation on how to use it.