PHPackages                             metallizzer/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. [Testing &amp; Quality](/categories/testing)
4. /
5. metallizzer/laravel-bench

ActiveLibrary[Testing &amp; Quality](/categories/testing)

metallizzer/laravel-bench
=========================

Benchmark tool for Laravel

v1.1.0(6y ago)012MITPHPPHP &gt;=7.0CI failing

Since Oct 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Metallizzer/laravel-bench)[ Packagist](https://packagist.org/packages/metallizzer/laravel-bench)[ Docs](https://github.com/Metallizzer/laravel-bench)[ RSS](/packages/metallizzer-laravel-bench/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Benchmark tool inside your Laravel app
======================================

[](#benchmark-tool-inside-your-laravel-app)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c9940df7abdc4ab818becb57c2bb6fc295bd6c84d074bcee9bbad6c5335abd00/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6574616c6c697a7a65722f6c61726176656c2d62656e63682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/metallizzer/laravel-bench)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/bf908be10ec713285844443de45d47b496899304699650184e43a7a45c6b57bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6574616c6c697a7a65722f6c61726176656c2d62656e63682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/metallizzer/laravel-bench)

The metallizzer/laravel-bench package provides tool to compare different functions inside your Laravel app.

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

[](#installation)

You can install the package via composer:

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

Next, you must publish the assets from this package.

```
php artisan vendor:publish --provider="Metallizzer\Bench\BenchServiceProvider" --tag="bench-assets"
```

Optionally, you can publish the config file of the package.

```
php artisan vendor:publish --provider="Metallizzer\Bench\BenchServiceProvider" --tag="config"
```

This is the content that will be published to `config/bench.php`

```
return [
    /*
     * The benchmark page will be available on this path.
     */
    'path' => '/bench',

    /*
     * By default this package will only run in local development.
     * Do not change this, unless you know what your are doing.
     */
    'enabled' => env('APP_ENV') === 'local',

    /*
     * The maximum execution time, in seconds. If set to zero, no time limit is imposed.
     */
    'max_execution_time' => 0,
];
```

Usage
-----

[](#usage)

By default this package will only run in a local environment.

Visit `/bench` in your local environment of your app to view the benchmark page.

You can also run benchmarks as artisan command

```
php artisan bench:run
```

Use with passing benchmark class name

```
php artisan bench:run --benchmark="Benchmark\Class"
```

To run all available benchmarks just issue

```
php artisan bench:run --all
```

To create a new command, use the bench:make Artisan command.

```
php artisan bench:make
```

This command will create a new benchmark class in the app/Benchmarks directory.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Oleg Petrov](https://github.com/Metallizzer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

2401d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb3d95437da01c856395cf58a46b05fd923eb710fcf8848012363e8fd525274d?d=identicon)[Metallizzer](/maintainers/Metallizzer)

---

Top Contributors

[![Metallizzer](https://avatars.githubusercontent.com/u/691719?v=4)](https://github.com/Metallizzer "Metallizzer (12 commits)")

---

Tags

laravelbenchmark

### Embed Badge

![Health badge](/badges/metallizzer-laravel-bench/health.svg)

```
[![Health](https://phpackages.com/badges/metallizzer-laravel-bench/health.svg)](https://phpackages.com/packages/metallizzer-laravel-bench)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[mpociot/laravel-test-factory-helper

Generate Laravel test factories from your existing models

933635.2k2](/packages/mpociot-laravel-test-factory-helper)[christophrumpel/missing-livewire-assertions

This package adds missing livewire test assertions.

149336.0k9](/packages/christophrumpel-missing-livewire-assertions)[davestewart/sketchpad

An innovative front-end environment for interactive Laravel development

29512.9k1](/packages/davestewart-sketchpad)[encodia/laravel-health-env-vars

Custom check for Spatie's Laravel Health - Ensure every .env variable you need has been set

20143.5k](/packages/encodia-laravel-health-env-vars)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
