Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elazar/spl-benchmarks
A suite of tests comparing performance of PHP SPL data structures to PHP arrays.
https://github.com/elazar/spl-benchmarks
Last synced: 3 months ago
JSON representation
A suite of tests comparing performance of PHP SPL data structures to PHP arrays.
- Host: GitHub
- URL: https://github.com/elazar/spl-benchmarks
- Owner: elazar
- License: bsd-2-clause
- Created: 2010-03-10T03:19:48.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2015-04-24T23:32:50.000Z (over 9 years ago)
- Last Synced: 2024-10-03T10:48:46.722Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 689 KB
- Stars: 31
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This repository contains scripts intended to benchmark operations of data
structure classes from the PHP SPL extension against their array counterparts.# Requirements
* PHP 5.4+
* GD extension with FreeType support enabled# Installation
Clone the repository and use [Composer](http://getcomposer.org) to install dependencies.
```bash
git clone https://github.com/elazar/spl-benchmarks.git
cd spl-benchmarks
composer install -o
```# Usage
To invoke the benchmark runner, run this from the repository root directory:
```bash
./bin/spl-benchmarks
```To learn about the runner's supported arguments:
```bash
./bin/spl-benchmarks --help
```# Results
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.