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

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

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();
}
}
```