PHPackages                             myaghobi/f3-benchmark - 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. myaghobi/f3-benchmark

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

myaghobi/f3-benchmark
=====================

A benchmark helper plugin for Fat-Free framework.

v1.6.0(2y ago)810.2k↓45.2%2GPL-3.0PHP

Since Oct 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/myaaghubi/f3-benchmark)[ Packagist](https://packagist.org/packages/myaghobi/f3-benchmark)[ Docs](https://github.com/myaghobi/f3-benchmark)[ RSS](/packages/myaghobi-f3-benchmark/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

F3-Benchmark
============

[](#f3-benchmark)

A benchmark &amp; debug helper plugin for Fat-Free framework.

[![screenshot](screenshots/shot1.jpg?raw=true "F3 Benchmark Screentshot")](screenshots/shot1.jpg?raw=true)

### Install

[](#install)

Just run the below code:

```
composer require myaghobi/f3-benchmark

```

### Usage

[](#usage)

The plugin works if `DEBUG>=3`, otherwise, it goes disable to prevent security issues and with no resource usage. Initiate `Benchmark` after your config file:

```
$f3->config('config.ini');
\Benchmark::instance();
...
```

or

```
// $f3->set('UI', 'ui/');
$f3->set('UI', YOUR_UI_PATH);
// $f3->set('DEBUG', 3);
$f3->set('DEBUG', YOUR_DEBUG_LEVEL);

\Benchmark::instance();
```

The plugin reserve `benchmark` in `f3`, after initiate, you can make your checkpoints:

```
$f3->get('benchmark')->checkPoint('myTag');
...
```

For `DEBUG
