# fastruby/fast-ruby

:dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms.

Repository: https://github.com/fastruby/fast-ruby
Canonical: https://ross.abutalabs.com/products/fast-ruby
Homepage: https://github.com/fastruby/fast-ruby
Language: Ruby
License Family: other
Topics: benchmark-ips, performance-optimization, ruby, hacktoberfest
Last push: 2026-06-28T21:44:35+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 35, longevity 100
- inputs: {"age_days": 4342, "days_push": 66, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5734, forks 371 (observed 2026-08-28T04:09:28.344075+00:00)

## What it is
A curated collection of common Ruby idioms with benchmark comparisons showing which constructs run faster, inspired by Erik Michaels-Ober's 'Writing Fast Ruby' talk. Each idiom includes runnable benchmark code using benchmark-ips, with results regularly re-run against new Ruby versions.

## Use cases
- speed up slow ruby code
- compare ruby idioms performance
- learn which ruby methods are faster
- find faster alternatives to gsub
- benchmark ruby code snippets
- optimize ruby hot paths

## When to choose
- you want evidence-based performance comparisons between Ruby idioms
- you are learning to write more performant Ruby
- you need copy-paste benchmark templates with benchmark-ips

## When to avoid
- you need an automated static analysis tool (use fasterer instead)
- you need a benchmarking library itself (use benchmark-ips)
- you need guarantees - the repo itself warns idioms depend on context

## Facets
- artifact type: learning-resource
- maturity: active
- function: benchmarking, developer-tools
- domain: performance, tutorials, developer-tools
- platform: ruby
- tags: ruby-idioms, benchmark-ips, performance-optimization, code-examples

## Member repositories
- fastruby/fast-ruby (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:28.344075+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-29T17:53:22.838149+00:00, confidence not recorded.
  - readme: https://github.com/fastruby/fast-ruby (fetched 2026-08-28T04:09:28.344075+00:00, sha abcbd978a646)
  - homepage: https://github.com/fastruby/fast-ruby (fetched 2026-08-29T08:48:46.363059+00:00, sha e7232c234154)
- Data as of 2026-08-30T08:39:29.467469+00:00.
