Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A suite of tests comparing performance of PHP SPL data structures to PHP arrays.
Branch: master
Failed to load latest commit information.
benchmarks Modified dll benchmark to iterate instead of using random access
bin Initial work on revamp
results Completed initial work
src Fixes to execution count in calculations
LICENSE Added LICENSE Replaced README with Markdown version
composer.json Added PHP requirement to composer.json

This repository contains scripts intended to benchmark operations of data structure classes from the PHP SPL extension against their array counterparts.


  • PHP 5.4+
  • GD extension with FreeType support enabled


Clone the repository and use Composer to install dependencies.

git clone
cd spl-benchmarks
composer install -o


To invoke the benchmark runner, run this from the repository root directory:


To learn about the runner's supported arguments:

./bin/spl-benchmarks --help


By default, results are written to the results subdirectory of the repository root direction. All raw data is written in CSV format to raw.csv. Charts are generated in PNG format for executions per second and memory for each benchmark.

The results subdirectory also contains an index.html file for convenient viewing of all generated chart files.

Something went wrong with that request. Please try again.