awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
fastruby avatar

fastruby/fast-ruby

0
View on GitHub↗

Fast Ruby

Fast Ruby is a collection of small, runnable Ruby micro-benchmarks that compare equivalent ways of writing the same code and show which runs faster. Each idiom lives in its own standalone script and is measured in iterations per second. Results are reported as how many times slower each alternative is than the fastest, so the gaps are easy to compare. The scripts double as a reference of faster Ruby idioms, published as a browsable results site alongside the benchmark sources.

Every comparison runs the candidate snippets first and raises an error if their results differ, so the timings only cover code that does the same thing. The same scripts are also run under several Ruby releases and alternative runtimes, including YJIT, ZJIT and JRuby. This shows how the fastest idiom can change from one version or engine to the next.

The benchmarks are grouped by subject: arrays, hashes, strings, enumerable iteration, blocks and procs, method dispatch and metaprogramming, error handling and object creation, and numeric and date parsing. Typical comparisons include hash merging and fetching with defaults, string substitution and prefix checks, loop styles, attribute accessors, frozen versus mutable strings, and ISO 8601 parsing. At build time, the collected benchmark output is converted into a single static HTML page where all the comparisons can be read together.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI
github.com/fastruby/fast-ruby
↗

Features

  • Ruby Performance Optimization - Provides a curated set of runnable Ruby benchmark scripts comparing equivalent idioms by iterations per second to show which runs faster.
  • Language Idiom Benchmarks - Runs iterations-per-second benchmark reports for alternative implementations of one task and compares them side by side to pick the faster idiom.
  • Performance-Based Idiom Mappings - Ranks common Ruby idioms for strings, arrays, hashes, blocks, and iteration from fastest to slowest with measured speed ratios.
  • Benchmark Equivalence Checks - Runs every compared snippet first and raises an error if results differ, so timings cover only code that does the same thing.
  • Iterations-Per-Second Benchmark Reports - Run competing code snippets repeatedly through an iterations-per-second benchmark and print a side-by-side comparison so the faster approach is easy to identify.
  • Micro-Benchmark Suites - Provides small standalone benchmark scripts that verify compared snippets return identical results before measuring relative speed.
  • Release Performance Comparison - Runs the same benchmark scripts across Ruby releases and runtimes such as YJIT, ZJIT, and JRuby to show how idiom speed changes.
  • Array and Object Idiom Rules - Helps developers choose faster ways to write everyday operations on arrays, hashes, strings, blocks, and loops.
  • Cross-Runtime Benchmark Matrices - Executes the same benchmark scripts under several Ruby releases and runtimes including YJIT, ZJIT and JRuby to show how the fastest idiom shifts.
  • Array Operation Benchmarks - Benchmarks array tasks like finding, sampling, counting, joining, inserting, sorting, and subset checks to show which methods avoid extra allocations.
  • Comparative Performance Benchmarking - Benchmarks several ways to test whether one array contains all elements of another and ranks their relative speed.
  • Equivalence-Checked Benchmark Comparisons - Runs every compared snippet first and raises an error if results differ, so timings only cover code that does the same thing.
  • Iteration Style Benchmarks - Measure looping over collections with indexed each versus while loops, including reading the collection size once before the loop, to show which style runs fastest.
  • Iterative Timing Loops - Runs each idiom repeatedly in a timing loop that reports iterations per second and ranks the variants side by side.
5,741 stars·368 forks·HTML·6 views

Star history

Star history chart for fastruby/fast-rubyStar history chart for fastruby/fast-ruby

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does fastruby/fast-ruby do?

Fast Ruby is a collection of small, runnable Ruby micro-benchmarks that compare equivalent ways of writing the same code and show which runs faster. Each idiom lives in its own standalone script and is measured in iterations per second. Results are reported as how many times slower each alternative is than the fastest, so the gaps are easy to compare. The scripts double as a reference of faster Ruby idioms, published as a browsable results site alongside the benchmark…

What are the main features of fastruby/fast-ruby?

The main features of fastruby/fast-ruby are: Ruby Performance Optimization, Language Idiom Benchmarks, Performance-Based Idiom Mappings, Benchmark Equivalence Checks, Iterations-Per-Second Benchmark Reports, Micro-Benchmark Suites, Release Performance Comparison, Array and Object Idiom Rules.

Which projects share features with fastruby/fast-ruby?

Projects with overlapping indexed features include: juanitofatas/fast-ruby — This project is a Ruby performance optimization guide and refactoring resource. It provides a collection of… laraveldaily/laravel-tips — This project is a curated knowledge base and development guide focused on best practices for the Laravel framework. It… chalarangelo/30-seconds-of-python — 30 Seconds of Python is a curated collection of short, reusable Python code snippets designed for quick reference and… google/benchmark — This project is a performance measurement framework and microbenchmarking library designed for C++ and Python. It… bheisler/criterion.rs — Criterion is a statistics-driven microbenchmarking library and performance regression tool for Rust. It provides a… sharkdp/hyperfine — Hyperfine is a command-line benchmarking tool used to measure the execution time of shell commands through multiple…

Projects sharing features with Fast Ruby

These projects share indexed features with Fast Ruby. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • juanitofatas/fast-rubyJuanitoFatas avatar

    JuanitoFatas/fast-ruby

    5,730View on GitHub↗

    This project is a Ruby performance optimization guide and refactoring resource. It provides a collection of benchmarked coding patterns and idiomatic comparisons designed to increase execution speed and reduce memory allocations in Ruby applications. The resource focuses on mapping common language constructs to their most computationally efficient equivalents. It uses comparative timing analysis and allocation-count profiling to identify high-performance idioms that replace object-heavy expressions. The project covers application runtime tuning and memory management by identifying patterns t

    Ruby
    View on GitHub↗5,730
  • laraveldaily/laravel-tipsLaravelDaily avatar

    LaravelDaily/laravel-tips

    6,459View on GitHub↗

    This project is a curated knowledge base and development guide focused on best practices for the Laravel framework. It provides a collection of architectural patterns and coding standards designed to help developers build scalable PHP server-side applications. The resource specifically covers application architecture, database modeling, and general coding best practices to improve the quality and readability of Laravel codebases. The content is delivered as a static site, rendering technical documentation and guides from markdown files into a searchable web interface.

    View on GitHub↗6,459
  • chalarangelo/30-seconds-of-pythonChalarangelo avatar

    Chalarangelo/30-seconds-of-python

    8,826View on GitHub↗

    30 Seconds of Python is a curated collection of short, reusable Python code snippets designed for quick reference and immediate reuse. It provides an interactive browser that lets you explore snippets organized by tags, search across names and descriptions, and copy code to your clipboard with a single click. The collection covers a broad range of common programming tasks, including list and dictionary operations, string formatting and manipulation, date and time calculations, and color format conversion. It also includes utilities for data transformation, such as converting between case styl

    Pythoneducationlearn-to-codelearning-resources
    View on GitHub↗8,826
  • bheisler/criterion.rsbheisler avatar

    bheisler/criterion.rs

    5,548View on GitHub↗

    Criterion is a statistics-driven microbenchmarking library and performance regression tool for Rust. It provides a framework for isolating and measuring small code segments, using statistical analysis to eliminate noise and ensure reliable, repeatable measurements of execution speed. The tool distinguishes itself through a performance visualization suite that generates HTML reports and graphs to track performance trends and throughput. It includes a system for comparing current execution times against stored baselines to identify and prevent performance drops. The library covers asynchronous

    Rustbenchmarkcriteriongnuplot
    View on GitHub↗5,548
  • Compare all 30 related projects→