Skip to content

pxnt/benchmark-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmark DB (Redis vs Dragonfly)

Simple, flexible Go benchmarking tool for Redis-protocol databases. Initial support compares Dragonfly vs Redis on 1 CPU with GET/SET workloads.

Features

  • Works with Redis and Dragonfly via the same client
  • Configurable concurrency, requests/duration, pipeline, keyspace, value size
  • Latency histogram (p50/p95/p99) and throughput
  • Docker Compose for Redis and Dragonfly (limited to 1 CPU, 1GB mem)

Quickstart

Prereqs: Docker, Go 1.22+

  1. Start databases
make redis-up
make dragonfly-up
  1. Build
make build
  1. Compare (runs set/get for both)
make compare

Run single benchmark:

./bin/bench run --db redis --host 127.0.0.1 --port 6379 --workload set --concurrency 64 --requests 200000 --pipeline 1
./bin/bench run --db dragonfly --host 127.0.0.1 --port 6380 --workload get --concurrency 64 --duration 30s --pipeline 1

Cleanup

make redis-down
make dragonfly-down

About

Tool used to run benchmarks on Databases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published