Skip to content

Benchmarks

These benchmarks were run with version 0.4.0.

Note

Please note that these benchmarks depend on asynchronous responses/requests to a Kafka broker.

Suites

All suites use librdkafka v1.8.2.

Tag PHP PHP Config phpbench Config
php74_ffi 7.4.25 opcache ffi.json
php74_ffi_preload 7.4.25 opcache
preload
ffi_preload.json
php74_ext 7.4.25
RdKafka Extension v4.1.2
opcache ext.json
php80_ffi 8.0.12 opcache ffi.json
php80_ffi_preload 8.0.12 opcache
preload
ffi_preload.json
php80_ffi_preload_jit 8.0.12 opcache
preload
jit
ffi_preload_jit.json
php80_ext 8.0.12
RdKafka Extension v5.0.0
opcache ext.json

Runtime Average FFI <> Extension

benchmarks benchmarks

Raw reports & env data

See https://github.com/idealo/php-rdkafka-ffi/tree/main/benchmarks/reports

Setup

Run benchmarks

See running benchmarks in try out.

There are ansible playbooks in resources to setup and run benchmarks.