# evanphx/benchmark-ips

Provides iteration per second benchmarking for Ruby

Repository: https://github.com/evanphx/benchmark-ips
Canonical: https://ross.abutalabs.com/products/benchmark-ips
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-06-18T20:22:22+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 8, longevity 100
- inputs: {"age_days": 5275, "days_push": 76, "days_rel": 724, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1773, forks 104 (observed 2026-08-28T04:05:34.306464+00:00)

## What it is
A Ruby gem that enhances the standard Benchmark library with iterations-per-second (IPS) benchmarking. It automatically determines appropriate iteration counts for short code snippets and provides statistical comparisons between benchmarked blocks.

## Use cases
- benchmark ruby code snippets in iterations per second
- compare performance of two implementations
- measure how many times per second a block runs
- avoid guessing iteration counts when benchmarking
- generate statistical comparison reports for code benchmarks

## When to choose
- you need reliable Ruby micro-benchmarks with warmup and statistical error margins
- you want to compare the speed of alternative code implementations
- short code snippets make traditional time-based benchmarking unreliable

## When to avoid
- you need to benchmark full applications or long-running processes rather than snippets
- you are not working in Ruby
- you need profiling with memory allocation details rather than throughput

## Facets
- artifact type: library
- maturity: stable
- function: benchmarking, developer-tools
- domain: developer-tools, performance
- platform: ruby, cross-platform
- tags: benchmark, iterations-per-second, ruby-gem, performance-measurement, command-line

## Member repositories
- evanphx/benchmark-ips (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:34.306464+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:25:25.644870+00:00, confidence not recorded.
  - readme: https://github.com/evanphx/benchmark-ips (fetched 2026-08-28T04:05:34.306464+00:00, sha af04c4117c3c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
