awesome-ruby-performance
github.com/raventid/awesome-ruby-performance ↗A curated list of awesome Ruby Performance books, courses, trainings, conference talks, blogs and most inspiring open source contributors.
Use this list with your AI agent
Add the Context Awesome MCP server to Claude, Cursor, or any MCP client, then ask:
"Show me memory resources from awesome-ruby-performance"
Installation instructions →What's inside
Performance tools
- batch-loader
- benchmark-ips
Provides iteration per second benchmarking for Ruby.
- bullet
Help to kill N+1 queries and unused eager loading.
- Derailed Benchmarks
A series of things you can use to benchmark a Rails or Ruby app.
- fasterer
Don't make your Rubies go fast. Make them go fasterer
- Peek
Visual status bar showing Rails performance.
High Performance Libraries
- bootsnap
Boot large Ruby/Rails apps faster.
- fast_blank
Provides a C-optimized method for determining if a string is blank.
- nakayoshi_fork
solves CoW friendly problem on MRI 2.2 and later
- oj
A fast JSON parser and Object marshaller as a Ruby gem.
- yajl-ruby
A streaming JSON parsing and encoding library for Ruby (C bindings to yajl).
Interesting performance talks not about Ruby
Article series
- Debugging hidden memory leaks in RubyMemory
"This article covers tools and tricks you can use to attack leaks that you can not easily introspect in Ruby. In particular I will discuss mwrap, heaptrack, iseq_collector and chap." by Sam Saffron (2019-10-15) 🇺🇸
- How I spent two weeks hunting a memory leak in RubyInvestigations
- The Art of BenchmarkingBenchmarking
- The Definitive Guide to Ruby Heap Dumps, Part IMemory
“When you can’t reproduce memory bloat, here’s how to work with a heap dump.” by Richard Schneeman (Last updated: 2017-06-19) 🇺🇸
- The Definitive Guide to Ruby Heap Dumps, Part IIMemory
- What causes Ruby memory to bloatMemory
How memory allocation works in Ruby and how to improve it with malloc_trim API. 🇺🇸
Official Ruby bugtracker notes
- Introduce malloc_trim(0) in full gc cyclesMemory Improvements
Per Hongli's excellent article it looks like malloc_trim can help tremendously with memory bloat issues. 🇺🇸
- set M_ARENA_MAX for glibc mallocMemory Improvements
Not everybody benefits from jemalloc and the extra download+install time is not always worth it. Lets make the user experience for glibc malloc users better, too. 🇺🇸
- Use jemalloc by default?Memory Improvements
Inspiring Open Source Contributors
Conference talks
- On Memory
- Ruby CPU and Memory - Pareto principle
Pareto principle
Showing a sample of 40 resources. View the full list on GitHub →