explaingit

patriciomacadden/bench-micro

Analysis updated 2026-07-12 · repo last pushed 2014-01-09

RubyAudience · developerComplexity · 1/5DormantSetup · moderate

TLDR

A hobby benchmark that compares how fast eleven lightweight Ruby web frameworks respond to a basic Hello World request, showing which ones add the least overhead for simple tasks.

Mindmap

mindmap
  root((repo))
    What it does
      Benchmarks Ruby web frameworks
      Measures Hello World response speed
      Uses wrk for load testing
    Tech stack
      Ruby
      Puma web server
      wrk benchmark tool
    Frameworks tested
      Rack
      Cuba
      Sinatra
      Minimal Rails
    Use cases
      Compare framework overhead
      Pick a fast microservice tool
      Satisfy curiosity
    Caveats
      Only tests static string
      Runs on dated hardware
      Not for serious decisions
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

Compare raw request throughput across lightweight Ruby web frameworks.

USE CASE 2

Pick a fast framework for a small API or microservice where speed matters.

USE CASE 3

Satisfy curiosity about how much overhead different Ruby frameworks add.

What is it built with?

RubyPumawrkRackSinatraRails

How does it compare?

patriciomacadden/bench-microcschneid/huginncschneid/statsd-instrument
LanguageRubyRubyRuby
Last pushed2014-01-092014-12-072014-05-14
MaintenanceDormantDormantDormant
Setup difficultymoderatemoderateeasy
Complexity1/54/52/5
Audiencedeveloperdeveloperdeveloper

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

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires installing wrk, Ruby 2.0, Puma, and multiple framework gems to run the full benchmark suite.

No license information is mentioned in the explanation.

In plain English

bench-micro is a hobby project that measures how fast different lightweight Ruby web frameworks respond to a basic "Hello World" request. The goal is to see how much overhead each framework adds on top of plain Ruby, so you can get a sense of which ones are speediest for simple tasks. The author tested eleven frameworks, ranging from bare-bones libraries like Rack and Cuba up to Sinatra and even a stripped-down Rails setup. Each one was wired up to serve a single page returning "Hello World" and then hit with a burst of requests using a tool called wrk, which fires off as many requests as it can in ten seconds. All frameworks ran under the same web server (Puma) with the same thread settings, so the only variable was the framework itself. The results show Rack handling around 7,600 requests per second, with the other frameworks scaling down to as low as about 1,100 for Ramaze. This would appeal to a developer picking a tool for a small API or microservice where raw throughput matters, or just someone curious about how these frameworks compare. The numbers give a rough hierarchy: Cuba, Brooklyn, Hobbit, and a few others sit close to Rack, while Sinatra and the minimal Rails config trail further behind. That said, the author is upfront that these are "just for fun" numbers, not scientific proof or a basis for serious decisions. A couple of caveats are worth noting. The benchmark only measures how quickly a framework can return a static string, so it ignores real-world factors like database calls, template rendering, or external API requests. The environment is also dated, running Ruby 2.0 on a 2013-era MacBook Pro, so the absolute numbers wouldn't match modern hardware or newer Ruby versions. The relative rankings might still hold, but the README doesn't claim they would.

Copy-paste prompts

Prompt 1
Run the bench-micro benchmarks on my machine and generate a ranked list of Ruby web frameworks by requests per second.
Prompt 2
Using bench-micro as a reference, set up a Rack app and a Cuba app that each return Hello World, then benchmark them with wrk under Puma.
Prompt 3
Adapt bench-micro to test a new Ruby web framework I'm evaluating by wiring it to return Hello World and running the same wrk load test.
Prompt 4
Compare the bench-micro results between Sinatra and minimal Rails and explain why one handles more requests per second than the other.

Frequently asked questions

What is bench-micro?

A hobby benchmark that compares how fast eleven lightweight Ruby web frameworks respond to a basic Hello World request, showing which ones add the least overhead for simple tasks.

What language is bench-micro written in?

Mainly Ruby. The stack also includes Ruby, Puma, wrk.

Is bench-micro actively maintained?

Dormant — no commits in 2+ years (last push 2014-01-09).

What license does bench-micro use?

No license information is mentioned in the explanation.

How hard is bench-micro to set up?

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

Who is bench-micro for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.