# Tally

A benchmarking tool for PHP that counts instructions, CPU cycles and memory instead of measuring time.

Timing benchmarks give a different result on every CI runner. Tally runs each benchmark once under CodSpeed's CPU simulation, which is built on Valgrind, so the numbers barely move between runs. The expected numbers are committed next to the benchmark and checked in every pull request.

- Made by: [Ondřej Mirtes](https://github.com/ondrejmirtes)
- Shipped: 14/11/2026
- Date from: [release](https://github.com/phpstan/tally/releases/tag/1.0.0)
- Source: [github.com/phpstan/tally](https://github.com/phpstan/tally)
- Install: `composer require phpstan/tally`
- Licence: MIT
- Stack: plain PHP
- Topics: Testing, Developer tools
- Checked: 21/11/2026
- Added: 21/11/2026

## Badge

Listed here? Add this badge to your README:

```markdown
[![Featured on phplives.dev](https://phplives.dev/badge.svg)](https://phplives.dev/entries/tally/)
```

See more at [phplives.dev](https://phplives.dev)
