git404hub

what is memtier_benchmark fr?

redis/memtier_benchmark — explained in plain English

Analysis updated 2026-07-06 · repo last pushed 2026-07-02

1,041C++Audience · ops devopsComplexity · 3/5ActiveLicenseSetup · moderate

tl;dr

A command-line tool that stress-tests Redis and Memcached databases by simulating heavy traffic. It measures speed and response times to help you see if your database can handle surge loads.

vibe map

mindmap
  root((repo))
    What it does
      Stress tests databases
      Measures speed and latency
      Shows percentile breakdowns
    Key features
      Custom read write mix
      Replay real captured traffic
      Tests clusters and single nodes
    Tech stack
      C Plus Plus
      Command Line Tool
      Redis and Memcached
    Use cases
      Prep for traffic spikes
      Compare hardware configs
      Benchmark real workloads
    Audience
      Infrastructure engineers
      Database administrators
      Performance teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Simulate a massive traffic spike to verify your database can handle a surge in users before a big event.

VIBE 2

Compare the speed and latency of different server hardware or database configurations under the same workload.

VIBE 3

Record real production database commands and replay them at scale to benchmark realistic application traffic.

VIBE 4

Measure database response times in detail, including how long the slowest requests take to complete.

what's the stack?

C++RedisMemcachedCLI

how it stacks up fr

redis/memtier_benchmarklouiszengcn/carlaairmsnightmare/rogueplanet
Stars1,0419411,256
LanguageC++C++C++
Last pushed2026-07-02
MaintenanceActive
Setup difficultymoderatehard
Complexity3/55/5
Audienceops devopsresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Needs to be compiled from C++ source and requires a running Redis or Memcached instance to test against.

Use freely for any purpose, including commercial use, as long as you include the copyright notice.

in plain english

memtier_benchmark is a tool that stress-tests databases to see how fast they can go and how they behave under heavy traffic. It works specifically with Redis and Memcached, two popular systems that store data in memory for quick access. If you're building an app that relies on one of these databases and want to know whether it can survive a surge of users, this tool generates a flood of read and write requests to find out. At a high level, you run it from your command line and tell it what kind of traffic to simulate. You can adjust the mix of reads versus writes, control how many requests happen per second, and even replay a recording of real traffic captured from a live database. It then measures how long each request takes to complete, giving you detailed statistics on speed and latency. Instead of just showing an average response time, it breaks down the results into percentiles, so you can see things like how long the slowest 1% of requests took. This tool is used by engineers and teams who manage database infrastructure. For example, if a retail company is preparing for a Black Friday sale and expects a massive spike in shoppers, they would use this tool to simulate that traffic beforehand. It helps them figure out if their current setup will hold up or if they need to add more servers. It is also useful for comparing different hardware or configurations to see which one performs better under the same workload. A notable feature is the ability to replay real captured traffic. You can record the actual commands your database receives in production, filter them down to a representative sample, and replay them at any scale. This means you aren't just running artificial tests, you can benchmark with a realistic mix of the exact operations your application performs. The tool also supports running tests against a single database instance or a larger cluster spread across multiple machines.

prompts (copy fr)

prompt 1
Help me install memtier_benchmark on my machine and run a basic stress test against my local Redis instance to measure throughput and latency.
prompt 2
Write a memtier_benchmark command that simulates a 90 percent read and 10 percent write workload against a Redis cluster with 50 concurrent connections.
prompt 3
I have a file of captured Redis commands from production. Help me use memtier_benchmark to replay this traffic at a higher rate to see if my server can handle peak load.
prompt 4
Generate a memtier_benchmark command to benchmark a Memcached server and display percentile latency statistics for the slowest requests.
prompt 5
Help me compare two Redis server setups by running the exact same memtier_benchmark workload against both and interpreting the results.

Frequently asked questions

what is memtier_benchmark fr?

A command-line tool that stress-tests Redis and Memcached databases by simulating heavy traffic. It measures speed and response times to help you see if your database can handle surge loads.

What language is memtier_benchmark written in?

Mainly C++. The stack also includes C++, Redis, Memcached.

Is memtier_benchmark actively maintained?

Active — commit in last 30 days (last push 2026-07-02).

What license does memtier_benchmark use?

Use freely for any purpose, including commercial use, as long as you include the copyright notice.

How hard is memtier_benchmark to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is memtier_benchmark for?

Mainly ops devops.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.