PHPackages                             ohansyah/laravelbenchmark - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. ohansyah/laravelbenchmark

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

ohansyah/laravelbenchmark
=========================

Measure the number of milliseconds it takes for the given callbacks to complete. This code is from the laravel 9.x helper benchmarking (https://laravel.com/docs/9.x/helpers#benchmarking) PR by by Nuno Maduro https://github.com/laravel/framework/pull/44252. Rewrite intend to run it on old php and laravel legacy project

v0.1.2(2y ago)31.0k1MITPHP

Since Dec 2Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel Benchmark
=================

[](#laravel-benchmark)

[![Latest Version](https://camo.githubusercontent.com/3aac6a545a445d04e3e6669266a8fbf91119012d128f6f3f5c6a192e283e800e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f68616e737961682f6c61726176656c62656e63686d61726b2e737667)](https://packagist.org/packages/ohansyah/laravelbenchmark) [![Total Downloads](https://camo.githubusercontent.com/2a1d176ecdf9e4d33e2036e67a96717ea25fdd8141df73f10cdc5235fa330381/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f68616e737961682f6c61726176656c62656e63686d61726b2e737667)](https://packagist.org/packages/ohansyah/laravelbenchmark) [![License](https://camo.githubusercontent.com/016a38e94821700d4d1677adb298edabb66e1e0773e9484d6227c7bbc5e660e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f68616e737961682f6c61726176656c62656e63686d61726b2e737667)](https://packagist.org/packages/ohansyah/laravelbenchmark)

Introduction
------------

[](#introduction)

The Laravel Benchmark package provides a simple and convenient way to benchmark certain parts of your Laravel application. This can be useful when you need to measure the performance of specific code snippets or functions.

This package is inspired by the Laravel 9.x helper benchmarking feature, as discussed in [Laravel Documentation](https://laravel.com/docs/9.x/helpers#benchmarking) and contributed by [Nuno Maduro](https://github.com/laravel/framework/pull/44252). However, this package is specifically designed to be compatible with older PHP versions and Laravel legacy projects.

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

[](#installation)

You can install the package via Composer:

```
composer require ohansyah/laravelbenchmark

```

Usage
-----

[](#usage)

```
