This directory contains projects for benchmarking Garnet.
Garnet project contains a Benchmark tool for running RESP benchmarking using different clients, different workloads and different strategies for measuring throughput, performance and latency.
Please visit our website documentation about how to use it in the following link: The Resp.benchmark tool
The BDN.benchmark
command-line tool allows contributors to run precise and reproducible micro-benchmarks by utilizing the BenchmarkDotNet.
You can list all available benchmarks using --list flat
or --list tree
, e.g.
dotnet run -c Release -f net8.0 --list flat
To run specific benchmarks, you can use --filter
. For example, to run all RESP-protocol write benchmarks using the default configuration, which will run the benchmarks using both .NET 6 and .NET 8 runtimes (with the dynamic PGO disabled):
dotnet run -c Release -f net8.0 --filter *RespIntegerWriteBenchmarks*
See more command-line options at https://benchmarkdotnet.org/articles/guides/console-args.html
Please see the Microbenchmark Design Guidelines for the best practices when writing microbenchmarks using BenchmarkDotNet.