MemoryProfiler
memory_profiler for ruby (by SamSaffron)
lru_redux
An efficient optionally thread safe LRU Cache (by SamSaffron)
MemoryProfiler | lru_redux | |
---|---|---|
6 | 2 | |
1,659 | 282 | |
- | - | |
3.4 | 10.0 | |
11 months ago | over 4 years ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
MemoryProfiler
Posts with mentions or reviews of MemoryProfiler.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-24.
-
Suggestions for how to reduce memory usage
Wire the memory_profiler into an around_action to identify your bloaty actions.
-
A Deep Dive into Memory Leaks in Ruby
The memory_profiler gem offers a very simple API and a detailed (albeit a little overwhelming) allocated and retained memory report — that includes the classes of objects that are allocated, their size, and where they were allocated. It's straightforward to add to our leaky program.
-
Ok y’all. How can we get this kind of real-time memory profiling in Ruby? Does it already exist? Is anyone working on this?
memory_profiler
-
Advanced ActiveRecord Querying - With Benchmarks!
We don't need to rely upon a priori reasoning only, we can use memory_profiles and benchmark_ips to compare the memory consumption and iterations per second of each solution.
-
Is there a more efficient way to do these permutation calculations?
Either https://github.com/tmm1/stackprof for cpu or https://github.com/SamSaffron/memory_profiler for memory. In practice profiling and removing allocations also gives a large perf boost.
-
Reduce memory consumption with a custom ActiveRecord attribute
Our project has one endpoint which gets called quite often. So, I profiled it with memory profiler and saw a line pointing to hstore.rb.
lru_redux
Posts with mentions or reviews of lru_redux.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-20.
-
Ruby's Hash Is a Swiss-Army Knife
Yeah, you can use it to implement a simple (but not necessarily very performant) LRU: https://github.com/SamSaffron/lru_redux/blob/037ee594aded597...
-
A Deep Dive into Memory Leaks in Ruby
In a non-Rails app, we want to limit the hash size, evicting the oldest or least recently used items. LruRedux is a nice implementation.
What are some alternatives?
When comparing MemoryProfiler and lru_redux you can also consider the following projects:
rack-mini-profiler - Profiler for your development and production Ruby rack apps.
Derailed Benchmarks - Go faster, off the Rails - Benchmarks for your whole Rails app
bullet - help to kill N+1 queries and unused eager loading
leaky-rails-app
Timeasure - Transparent method-level wrapper for profiling purposes in Ruby
Kiba - Data processing & ETL framework for Ruby
prosopite - :mag: Rails N+1 queries auto-detection with zero false positives / false negatives
PHPT - The PHP Interpreter
perftools.rb - gperftools for ruby code
memray - Memray is a memory profiler for Python
Peek - Take a peek into your Rails applications.
ruby-prof - A ruby profiler. See https://ruby-prof.github.io for more information.
MemoryProfiler vs rack-mini-profiler
lru_redux vs Derailed Benchmarks
MemoryProfiler vs bullet
lru_redux vs leaky-rails-app
MemoryProfiler vs Timeasure
lru_redux vs Kiba
MemoryProfiler vs prosopite
lru_redux vs PHPT
MemoryProfiler vs perftools.rb
MemoryProfiler vs memray
MemoryProfiler vs Peek
MemoryProfiler vs ruby-prof