mix benchmark (veidrodelis v0.1.7)

Copy Markdown View Source

Run Veidrodelis replication lag benchmarks.

Usage

mix benchmark [scenario_name] [options]

Options

--duration SECONDS   Override scenario duration
--intensity N        Override commands per second
--readers N          Override number of reader processes
--list               List available scenarios

Examples

# Run all scenarios
mix benchmark

# Run specific scenario
mix benchmark strings_low

# Run with custom parameters
mix benchmark hashes_100k --duration 30 --intensity 50000 --readers 2

# List available scenarios
mix benchmark --list

Available Scenarios

  • strings, hashes, lists, sets - basic command benchmarks
  • lua_aggregate - complex Lua transaction benchmark (reads 5 hash fields, returns sum)

Prerequisites

  • Redis running on localhost:6379 without password
  • gnuplot installed (for generating plots)

Output

Results are saved to:

  • benchmark/results/ (CSV files)

To generate plots, run:

cd benchmark && ./plot.sh