PHPackages                             awilum/craft-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. [Templating &amp; Views](/categories/templating)
4. /
5. awilum/craft-benchmark

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

awilum/craft-benchmark
======================

Simple benchmark plugin with basic benchmark functionality for Craft CMS.

1.1.0(3y ago)3101MITPHP

Since Nov 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Awilum/craft-benchmark)[ Packagist](https://packagist.org/packages/awilum/craft-benchmark)[ Fund](https://awilum.github.io/donate)[ RSS](/packages/awilum-craft-benchmark/feed)WikiDiscussions 1.x Synced 1mo ago

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

Benchmark plugin for [Craft CMS](https://github.com/craftcms)
=============================================================

[](#benchmark-plugin-for-craft-cms)

[![License MIT](https://camo.githubusercontent.com/17330ae6dd024e9e53cb81394db7208fe224d218d58ffe321564ca52a38e0a92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f6c6162656c3d4c6963656e7365)](https://camo.githubusercontent.com/17330ae6dd024e9e53cb81394db7208fe224d218d58ffe321564ca52a38e0a92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f6c6162656c3d4c6963656e7365) [![GitHub Repo stars](https://camo.githubusercontent.com/4c7a41884acfe034c0b2f1a64fb447c58975f6a1ef9e5fb414988fc032c91b1a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6177696c756d2f63726166742d62656e63686d61726b3f6c6162656c3d5374617273)](https://camo.githubusercontent.com/4c7a41884acfe034c0b2f1a64fb447c58975f6a1ef9e5fb414988fc032c91b1a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6177696c756d2f63726166742d62656e63686d61726b3f6c6162656c3d5374617273) [![GitHub forks](https://camo.githubusercontent.com/3de2b77995e85ba32412d5e5e867655b752b088ef28ef6e8f9d8dddac00ee6dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6177696c756d2f63726166742d62656e63686d61726b3f6c6162656c3d466f726b73)](https://camo.githubusercontent.com/3de2b77995e85ba32412d5e5e867655b752b088ef28ef6e8f9d8dddac00ee6dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6177696c756d2f63726166742d62656e63686d61726b3f6c6162656c3d466f726b73) [![Hits of Code](https://camo.githubusercontent.com/a08732010430d2e065c7bf6dfda00a39dd22bd16bf2325ff783e857127b4d0a0/68747470733a2f2f686974736f66636f64652e636f6d2f6769746875622f6177696c756d2f63726166742d62656e63686d61726b3f6272616e63683d312e78)](https://hitsofcode.com)

Simple benchmark plugin with basic functionality for benchmarking.

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

[](#requirements)

- **Craft CMS**: ^4.0
- **PHP**: ^8.0

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
    cd /path/to/project

    ```
2. In your terminal run `composer require awilum/craft-benchmark`.
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Benchmark.

### Usage

[](#usage)

```
{% do benchmarkStart('fetch_news') %}
    {% set entryQuery = craft.entries()
    .section('news')
    .orderBy('postDate DESC')
    .limit(10) %}
{% do benchmarkEnd('fetch_news') %}

Time elapsed: {{ benchmarkSummary()['fetch_news']['time']['elapsed_formated'] }}
Memory usage: {{ benchmarkSummary()['fetch_news']['memory']['usage_formated'] }}

//=> Time elapsed: 1ms
//=> Memory usage: 3.46KB

```

#### Functions

[](#functions)

**PHP function****Twig function****Description**`Awilum\CraftBenchmark\benchmarkStart`benchmarkStartStart benchmark prob.`Awilum\CraftBenchmark\benchmarkEnd`benchmarkEndEnd benchmark prob.`Awilum\CraftBenchmark\benchmarkDelete`benchmarkDeleteDelete benchmark prob.`Awilum\CraftBenchmark\benchmarkFlush`benchmarkFlushFlush benchmark prob.`Awilum\CraftBenchmark\benchmarkSummary`benchmarkSummaryGet benchmark summary.Tests
-----

[](#tests)

Run tests

```
./vendor/bin/pest

```

LICENSE
-------

[](#license)

[The MIT License (MIT)](https://github.com/awilum/craft-benchmark/blob/master/LICENSE.md)Copyright (c) [Sergey Romanenko](https://awilum.github.io/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~8 days

Total

3

Last Release

1245d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/652557f36367ca6ed585663426c237bf39c4e1b6589b28a20937517bf43b0fe4?d=identicon)[Awilum](/maintainers/Awilum)

---

Top Contributors

[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (26 commits)")

---

Tags

twigprofilerbenchmarkCraftcraftcmscraft-plugintwig profiler

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/awilum-craft-benchmark/health.svg)

```
[![Health](https://phpackages.com/badges/awilum-craft-benchmark/health.svg)](https://phpackages.com/packages/awilum-craft-benchmark)
```

###  Alternatives

[wbrowar/guide

A CMS Guide for Craft CMS.

6154.5k1](/packages/wbrowar-guide)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[nystudio107/craft-twigprofiler

Twig Profiler allows you to profile sections of your Twig templates, and see the resulting timings in the Yii2 Debug Toolbar

2267.1k1](/packages/nystudio107-craft-twigprofiler)[viget/craft-classnames

Classnames plugin for Craft CMS

1115.5k1](/packages/viget-craft-classnames)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

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