benchmark
benchmark copied to clipboard
The Benchmark module provides methods for benchmarking Ruby code, giving detailed reports on the time taken for each task.
Benchmark#bm with labels was not using the highest length among the labels to adjust the correct ljust. Instead of printing the result during the report generation, now it is waiting...
This pull request contains two changes. 1. Correctly documenting the default behaviour of the `format` method. The default `FORMAT` string is currently: `"%10.6u %10.6y %10.6t %10.6r\n"` This represents user time,...
* adds documentation for unit test methods and constants * adds an explanatory note to the benchmark.rb file * adds an IMPLEMENTATION.md file with an explanation of label width handling...
Sometimes documentation for unit tests is not necessary, but I have written some documentation for these tests that I think will be helpful for someone approaching it for the first...
The ruby benchmark ecosystem is quite nice; it reports things, aka what is faster aka more efficient. Take the following old code I have: # Interpolation is slowest, interestingly enough....
Because the `total` instance variable only updates in `initialize`, it does not reflect the correct value when `add!` is called. This fixes the problem. A test case is provided to...
Hi! thanks for the continuous work on the project. There were several 0.X releases. I was wondering if a 1.0 would be possible / if this project follows semantic versioning?...