whatisgithub

What is memtier_benchmark?

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

In one sentence

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.

Mindmap

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
Click or tap to explore — scroll the page freely

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 build with it?

USE CASE 1

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

USE CASE 2

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

USE CASE 3

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

USE CASE 4

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

What is it built with?

C++RedisMemcachedCLI

How does it compare?

redis/memtier_benchmarkmicrosoft/intelligent-terminalzoyamalhotra/dualsensex-dsx-steam-edition
Stars1,0411,349576
LanguageC++C++C++
Last pushed2026-07-022026-07-03
MaintenanceActiveActive
Setup difficultymoderateeasyeasy
Complexity3/53/51/5
Audienceops devopsdevelopergeneral

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

How do you get it running?

Difficulty · moderate Time to first run · 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.

So what is it?

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.

Copy-paste prompts

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?

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.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.