PHPackages                             stekel/laravel-bench - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. stekel/laravel-bench

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stekel/laravel-bench
====================

Php wrapper for Apache-Bench with Laravel integration.

v2.0.7(4y ago)119.7k—8.3%MITPHPPHP &gt;7.4

Since Jul 31Pushed 4y agoCompare

[ Source](https://github.com/stekel/laravel-bench)[ Packagist](https://packagist.org/packages/stekel/laravel-bench)[ RSS](/packages/stekel-laravel-bench/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (12)Used By (0)

Laravel-Bench
=============

[](#laravel-bench)

Php wrapper for Apache-Bench with Laravel integration

---

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0
- ApacheBench `$ ab`

Installation
------------

[](#installation)

### Laravel

[](#laravel)

Require it with Composer:

```
composer require stekel/laravel-bench --dev
```

Publish the package configuration file

```
artisan vendor:publish --provider=stekel\LaravelBench\Laravel\Providers\LaravelBenchServiceProvider
```

Usage
-----

[](#usage)

Run the following command from the root of a Laravel application

```
php artisan stekel:bench {test}
```

The following tests are available:

- homepage - Sends 100 requests to `/`

Custom Tests
------------

[](#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 ('/')

```
