https://github.com/stekel/laravel-bench
Php wrapper for Apache-Bench with Laravel integration
https://github.com/stekel/laravel-bench
Last synced: 7 months ago
JSON representation
Php wrapper for Apache-Bench with Laravel integration
- Host: GitHub
- URL: https://github.com/stekel/laravel-bench
- Owner: stekel
- License: mit
- Created: 2018-07-31T18:53:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-08T21:50:14.000Z (about 4 years ago)
- Last Synced: 2025-05-16T09:49:18.037Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel-Bench
Php wrapper for Apache-Bench with Laravel integration
----
## Requirements
- PHP >= 7.0
- ApacheBench `$ ab`
## Installation
### Laravel
Require it with Composer:
```bash
composer require stekel/laravel-bench --dev
```
Publish the package configuration file
```bash
artisan vendor:publish --provider=stekel\LaravelBench\Laravel\Providers\LaravelBenchServiceProvider
```
## Usage
Run the following command from the root of a Laravel application
```bash
php artisan stekel:bench {test}
```
The following tests are available:
- homepage - Sends 100 requests to `/`
## Custom Tests
Create a new test somewhere in your repository and add the c
The following test will execute 100 requests (10 at a time) against the homepage ('/')
```php
get();
}
}
```