~/docs
Resonate
Resonate
0.x 0.9.0, current
Laravel RESP3 Cache
Toggle sidebar
Laravel RESP3 Cache
webpatser/laravel-resp3-cache 0.9.0

Laravel RESP3 Cache 0.x

Benchmarks

The many() benchmark that ships in the repository, with its parameters and recorded result.

The repository contains one Laravel-level benchmark, bench/laravel_cache_many.php. It compares the predis and resp3 clients under Laravel's stock redis cache store, calling many() on it.

Method

The script needs Redis or Valkey on 127.0.0.1:6379. It pre-populates 1000 keys, then runs rounds of MGET-shaped reads through many() on the store with each client and reports the median of five runs.

php -d extension=/path/to/resp3.so bench/laravel_cache_many.php

Parameters: TOTAL_KEYS=1000, ITERATIONS=200, RUNS=5, median reported.

Recorded result

As recorded in bench/results/laravel_cache_many.md:

client reads/s seconds (per 200 calls)
predis (pure-PHP) 1,275,770 0.157
resp3 (ext-resp3) 1,626,267 0.123

Delta: +27.5%

Note: The result file does not name the hardware, PHP version or server version it was measured on, so run the script on your own setup to get comparable numbers. Parser-level benchmarks live in the php-resp3 project.