10 Matching Annotations
- Sep 2024
- Sep 2022
-
-
a benchmark tells you how slow your code is ("it took 20 seconds to do X Y Z") and a profiler tells you why it's slow ("35% of that time was spent doing compression").
-
-
rbspy.github.io rbspy.github.io
-
Because rbspy is a sampling profiler (not a tracing profiler), it actually can't tell you how times a function was called -- it just reports "hey, I observed your program 100,000 times, and 98,000 of those times it was in the calculate_thing function". ruby-prof is a tracing profiler for Ruby, which can tell you exactly how many times each function was called at the cost of being higher overhead.
-
it's useful to understand the difference between "self time" and "total time" spent in a function
-
-
rbspy.github.io rbspy.github.io
-
Nothing in the profiling guide is Ruby- or rbspy-specific — it all applies to profiling in general.
-
-
stackoverflow.com stackoverflow.com
-
That is called profiling, not performance testing. Performance testing should ensure that a piece of code runs within a desired amount of time, given a certain context, before the new code goes into production.
-
- Oct 2020
-
github.com github.com
-
engineering.appfolio.com engineering.appfolio.com
-
optcarrot, is a headless NES emulator that the Ruby core team are using as a CPU-intensive optimization target.
-
- Jul 2020
-
github.com github.com
-
Looks like this alternative is better maintained: https://github.com/test-prof/test-prof
Meat: https://github.com/sinisterchipmunk/rspec-prof/blob/master/lib/rspec-prof.rb
-
-
ruby-prof.github.io ruby-prof.github.io
-
ruby-prof supports excluding specific methods and threads from profiling results. This is useful for reducing connectivity in the call graph, making it easier to identify the source of performance problems when using a graph printer. For example, consider Integer#times: it's hardly ever useful to know how much time is spent in the method itself. We are more interested in how much the passed in block contributes to the time spent in the method which contains the Integer#times call. The effect on collected metrics are identical to eliminating methods from the profiling result in a post process step.
Tags
Annotators
URL
-