PHPackages                             takigawaakinori/phpunit-profiler - 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. takigawaakinori/phpunit-profiler

ActivePhpunit-extension[Testing &amp; Quality](/categories/testing)

takigawaakinori/phpunit-profiler
================================

A PHPUnit extension that profiles and reports the slowest tests

v0.2.0(3mo ago)38MITPHP ^8.1

Since Apr 10Compare

[ Source](https://github.com/takigawaakinori/phpunit-profiler)[ Packagist](https://packagist.org/packages/takigawaakinori/phpunit-profiler)[ RSS](/packages/takigawaakinori-phpunit-profiler/feed)WikiDiscussions Synced 3w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

PHPUnit Profiler
================

[](#phpunit-profiler)

A PHPUnit extension that profiles test execution time and reports the slowest tests.

Supports PHPUnit 10, 11, 12, and 13.

日本語版はこちら: [README.ja.md](README.ja.md)

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

[](#installation)

```
composer require --dev takigawaakinori/phpunit-profiler
```

Usage
-----

[](#usage)

Add the extension to your `phpunit.xml` (or `phpunit.xml.dist`):

```

```

Configuration
-------------

[](#configuration)

You can customize the extension behavior by adding `` elements:

```

```

ParameterTypeDefaultDescription`showTopN`bool`true`Show the top N slowest tests list. Set to `false` to hide`topCount`int`20`Number of slowest tests to display`showPareto`bool`false`Show Pareto analysis (top 20% of tests and their share of total execution time)`slowThreshold`float*(disabled)*Show tests slower than the specified threshold in seconds`jsonOutput`string*(disabled)*File path to export all test durations as JSON### Invalid Parameter Values

[](#invalid-parameter-values)

- `topCount`: If the value is non-numeric or less than `1`, it falls back to the default `20`.
- `slowThreshold`: If the value is non-numeric, threshold filtering is disabled.
- `showTopN` / `showPareto`: These are string-based flags. Use `true` or `false` exactly.

Output Examples
---------------

[](#output-examples)

After running your tests, you'll see output like:

```
Top 20 Slowest Tests:
--------------------------------------------------------------------------------
  1.  5.032s  Tests\Feature\ExampleTest::test_heavy_operation
  2.  3.210s  Tests\Feature\ExampleTest::test_api_call
  3.  0.523s  Tests\Unit\ExampleTest::test_calculation
--------------------------------------------------------------------------------

```

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

[](#requirements)

- PHP 8.1+
- PHPUnit 10.0+

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance81

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

3

Last Release

99d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77688294?v=4)[Akinori Takigawa](/maintainers/takigawaakinori)[@takigawaakinori](https://github.com/takigawaakinori)

---

Tags

testingphpunitxunit

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/takigawaakinori-phpunit-profiler/health.svg)

```
[![Health](https://phpackages.com/badges/takigawaakinori-phpunit-profiler/health.svg)](https://phpackages.com/packages/takigawaakinori-phpunit-profiler)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k955.1M159.1k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k136.1M1.0k](/packages/brianium-paratest)[phpunit/phpunit-selenium

Selenium Server integration for PHPUnit

59611.1M165](/packages/phpunit-phpunit-selenium)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69619.8M652](/packages/spatie-phpunit-snapshot-assertions)[allure-framework/allure-phpunit

Allure PHPUnit integration

6913.4M46](/packages/allure-framework-allure-phpunit)[facile-it/paraunit

paraunit

145845.1k17](/packages/facile-it-paraunit)

PHPackages © 2026

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