kafkaclient

package
v0.0.0-...-f2dfb0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

Kafka Client Benchmarks

Benchmarks of kafka client libraries for Golang.

Execute Benchmark

go test -timeout=5h -bench=Producer -benchmem -count 5 -benchtime=10000x > results/producer.out
go test -timeout=5h -bench=Consumer -benchmem -count 5 -benchtime=100000x > results/consumer.out

Docker File

docker-compose -p kafka -f docker-compose.yml up

Results

All the benchmarks are performed in the Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz machine with a standalone Kafka running in the docker.

Producer

All the benchmarks are performed with 10K samples size and 5 iterations.

Microsecond / Operation
Sync Producer Async Producer
SyncProducerTime.png AsyncProducerTime.png
Memory Allocation / Operation
Sync Producer Async Producer
SyncProducerMemoryAllocations.png AsyncProducerMemoryAllocations.png
Bytes / Operation
Sync Producer Async Producer
SyncProducerBytes.png AsyncProducerBytes.png
Consumer

All the benchmarks are performed with 10K samples size and 5 iterations.

Nenosecond / Operation

ConsumerTime.png

Memory Allocation / Operation

ConsumerAllocation.png

Bytes / Operation

ConsumerBytes.png

Libraries

⚠ Please note that these libraries are benchmarked against storage of sample payloads (i.e. 1, 5, and 10 KB). You are encouraged to benchmark with your custom payloads.

Credits

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳