PHPackages                             iiispikeriii/speedy - 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. iiispikeriii/speedy

ActiveLibrary[Testing &amp; Quality](/categories/testing)

iiispikeriii/speedy
===================

testing speed for any platform

1.0.0(5y ago)4281MITPHPPHP ^7.2CI failing

Since Aug 23Pushed 5y ago3 watchersCompare

[ Source](https://github.com/IIISpikerIII/speedy)[ Packagist](https://packagist.org/packages/iiispikeriii/speedy)[ RSS](/packages/iiispikeriii-speedy/feed)WikiDiscussions master Synced today

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

Speed testing any functions
===========================

[](#speed-testing-any-functions)

It`s util for easy performance testing some functions.

Install
-------

[](#install)

```
composer require iiispikeriii/speedy

```

Use
---

[](#use)

```
$speedy = new Speedy();
print $speedy->runTestByName(TestList::PHP_ARR_SORT);
```

OR

```
print Speedy::test(TestList::PHP_INC_PREF_POST);
```

if you want to get only result speed testing - use onlyData param its true

```
print Speedy::test(TestList::PHP_INC_PREF_POST, [], true);
```

OR

```
$params = [
    'name' => 'Speedy ++i vs i++',
    'volumesTest' => [100, 1000, 2000, 3000],
    'repeatTest' => 5,
    'viewers' => [ViewerList::VIEWER_TGROUP, ViewerList::VIEWER_TAVG, ViewerList::VIEWER_GBUBLE],
    'tester' => 'tester' => TesterList::TESTER_PHP
];
print Speedy::test(TestList::PHP_INC_PREF_POST, $params);
```

Viewers
-------

[](#viewers)

- `ViewerList::VIEWER_TLIST` - table list result
- `ViewerList::VIEWER_TGROUP` - table group result
- `ViewerList::VIEWER_TAVG` - table average result
- `ViewerList::VIEWER_GBUBLE` - graph with buble result

Tests
-----

[](#tests)

- `TestList::PHP_INC_PREF_POST` - comparison with pre-increment postincrement (++i and i++)
- `TestList::PHP_ARR_READ` - comparison with reading array "while" "for" "foreach"
- `TestList::PHP_ARR_SORT` - comparison with sorting arrays Heap, Bubble, Select, Insertion, Quick
- `TestList::PHP_SOF_VS_COUNT` - comparison with sizeof() versus count()

Testers
-------

[](#testers)

- `TesterList::TESTER_PHP` - testing with PHP functions microtime and memory\_get\_usage
- `TesterList::TESTER_XHPROF` - testing with extention XHProf, required XHProf.
    - xhprof\_lib - path to xhprof\_lib.php (not required)
    - xhprof\_runs - path to xhprof\_runs.php (not required)

Compare custom functions
------------------------

[](#compare-custom-functions)

```
$myFunc1 =  function($size)
{
    ... custom code ...
};

$myFunc2 = function($size)
{
    ... custom code ...
};
```

every custome functions should take int parameter - workload from volumesTest

```
print Speedy::compare(['nameFunc1' => $myFunc1, 'nameFunc2' => $myFunc2]);
```

OR

```
$params = [
    'name' => 'Compare functions',
    'volumesTest' => [100, 1000, 2000, 3000],
    'repeatTest' => 5,
    'viewers' => [ViewerList::VIEWER_TLIST, ViewerList::VIEWER_TGROUP, ViewerList::VIEWER_TAVG, ViewerList::VIEWER_GBUBLE],
    'tester' => TesterList::TESTER_XHPROF,
];
print Speedy::compare(['nameFunc1' => $myFunc1, 'nameFunc2' => $myFunc2], $params);
```

Example viwers
--------------

[](#example-viwers)

VIEWER\_TLIST

[!["table data list viewer"](https://github.com/IIISpikerIII/speedy/raw/master/docs/VIEWER_TLIST.png?raw=true)](https://github.com/IIISpikerIII/speedy/blob/master/docs/VIEWER_TLIST.png?raw=true)

VIEWER\_TGROUP

[!["table data group viewer"](https://github.com/IIISpikerIII/speedy/raw/master/docs/VIEWER_TGROUP.png?raw=true)](https://github.com/IIISpikerIII/speedy/blob/master/docs/VIEWER_TGROUP.png?raw=true)

VIEWER\_TAVG

[!["table data group viewer"](https://github.com/IIISpikerIII/speedy/raw/master/docs/VIEWER_TAVG.png?raw=true)](https://github.com/IIISpikerIII/speedy/blob/master/docs/VIEWER_TAVG.png?raw=true)

VIEWER\_GBUBLE

[!["graph data buble viewer"](https://github.com/IIISpikerIII/speedy/raw/master/docs/chartTest.png?raw=true)](https://github.com/IIISpikerIII/speedy/blob/master/docs/chartTest.png?raw=true)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

2073d ago

Major Versions

0.1.0 → 1.0.02020-10-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4351527?v=4)[IIISpikerIII](/maintainers/IIISpikerIII)[@IIISpikerIII](https://github.com/IIISpikerIII)

---

Tags

testingspeed

### Embed Badge

![Health badge](/badges/iiispikeriii-speedy/health.svg)

```
[![Health](https://phpackages.com/badges/iiispikeriii-speedy/health.svg)](https://phpackages.com/packages/iiispikeriii-speedy)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)

PHPackages © 2026

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