rbspy
Sampling CPU profiler for Ruby (by rbspy)
flamegraph
Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3 (by flamegraph-rs)
Our great sponsors
rbspy | flamegraph | |
---|---|---|
6 | 40 | |
2,383 | 3,281 | |
0.8% | 5.5% | |
6.9 | 5.7 | |
15 days ago | 24 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
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.
rbspy
Posts with mentions or reviews of rbspy.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-09.
-
Optimizing your tests in 5 steps
Even the most general profiler tool will show you each statement's accumulated time. These are called statistical profilers and give you a panoramic view of what the test is doing. An example of such a profiler is rbspy:
-
Fantastic Symbols and Where to Find Them - Part 2
As a result, you need to craft a specific routine for each interpreter runtime (in some cases, each version of that runtime) to obtain symbol information. Educated eyes might have already noticed, it's not an easy undertaking considering the sheer amount of interpreted languages out there. For example, a very well known Ruby profiler, rbspy, generates code for reading internal structs of the Ruby runtime for each version.
-
Why Is JRuby Slow?
I was a bit surprised to find out that the tool used to generate the flamegraph for Ruby (rbspy [1]) is written in Rust. lol
-
How SerpApi sped up data extraction from HTML from 3s to 800ms (or How to profile and optimize Ruby code and C extension)
c function is not very helpful to find the performance problem, so we dug deeper.
flamegraph
Posts with mentions or reviews of flamegraph.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-28.
- making a virtual machine in rust
-
superdiff - a way to find similar code blocks in projects (comments appreciated)
I don't see any obvious problems with your algorithm. I've had luck using cargo-flamegraph to identify the slow parts of my code. That's going to show you which parts to focus on improving the performance of!
-
Data-driven performance optimization with Rust and Miri
From the readme of cargo flamegraph:
-
Any tips for writing performant Rust during AoC?
However, if your goal is to have the best performing code, you might want to take a look at profiling tools such as Cargo Flamegraph. They can show you where your code takes the most time and then you can try to make that part more efficient.
-
Improve performance
Better: an idea of how you can know where the bottleneck is. Use a profiler. cargo-flamegraph is nice.
-
How to investigate a potential Rust memory leak?
I had some nice insights using FlameGraph that relies on Linux perf. There is a Rust version here.
-
Noob request: help optimize my text processing code
Try doing a flamegraph to see where you are getting bottlenecked and post reaults here. https://github.com/flamegraph-rs/flamegraph
-
Why would introducing a panic cause a 20% performance increase
Use cargo-flamegraph and do a side-by-side with and without the panic?
-
Hey Rustaceans! Got a question? Ask here! (40/2022)!
Probably cargo flamegraph?
-
CPU Profiling in WSL-ish setup
cargo install --git https://github.com/flamegraph-rs/flamegraph
What are some alternatives?
When comparing rbspy and flamegraph you can also consider the following projects:
cargo-flamegraph - Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3
tracing - Application level tracing for Rust.
tensorflow_macos - TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.
hashbrown - Rust port of Google's SwissTable hash map
bcc - BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
snmalloc-rs - rust bindings of snmalloc
rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]
dhat-rs - Heap profiling and ad hoc profiling for Rust programs.
Scoop - A command-line installer for Windows.
fltk-rs - Rust bindings for the FLTK GUI library.
heaptrack - A heap memory profiler for Linux