Skip to content

pawel-brzezinski/smart-bench-cli

Repository files navigation

SmartBench CLI tool

Build Status codecov

PHP CLI application for PHP libraries benchmark tests with use PHPBench.

Check simple website with benchmark results: https://bench.smartint.pl

List of benchmarks

Cache libraries

The basic benchmark of cache libraries with division into several groups.

Assumptions

  1. Each benchmark is preceded by injection of 100 elements of cache storage.
  2. Each value saved and read from the cache is an example Book object.
  3. Each task in the benchmark is performed by multiple iteration with multiple revs.

Tested libraries

  1. PHP Cache [write, write with tags, read, invalidate tags]
  2. PhpFastCache [write, write with tags, read, invalidate tags]
  3. Scrapbook [write, read]
  4. Stash [write, read]
  5. Symfony Cache Component [write, write with tags, read, invalidate tags]

Used adapters

  1. Filesystem [PHP Cache, PhpFastCache, Scrapbook, Stash, Symfony Cache Component]
  2. Memcached [PHP Cache, PhpFastCache, Scrapbook, Stash, Symfony Cache Component]
  3. Redis (PhpRedis) [PHP Cache, PhpFastCache, Scrapbook, Stash, Symfony Cache Component]
  4. Redis (Predis) [PHP Cache, PhpFastCache, Symfony Cache Component]

Attention

Each of the tested libraries has a lot of own functionalities that have not been tested but may be crucial for choose them to your project.

Serializer libraries

The basic benchmark of serializer libraries with division into several groups.

Assumptions

  1. Each value serialized and deserialized is an example Book object.
  2. Each task in the benchmark is performed by multiple iteration with multiple revs.

Tested libraries

  1. Better Serializer [serialize, deserialize]
  2. JMS Serializer [serialize, deserialize]
  3. Serializard [serialize, deserialize]
  4. Symfony Serializer [serialize, deserialize]

Used serializer formats

  1. JSON [Better Serializer, JMS Serializer, Serializard, Symfony Serializer]
  2. XML [JMS Serializer, Serializard, Symfony Serializer]

Attention

Each of the tested libraries has a lot of own functionalities that have not been tested but may be crucial for choose them to your project.

About

CLI application with predefined benchmarks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages