3 ms·
Benchmarking Your Ruby with time_up
- devops000 5y agoVery cool! Do you know how to make it default for every method in the rails app? Instead of call it everywhere. It will be very interesting to inspect which method is responsible for most of time, keep track of time in a dashboard and see how refactoring improves time (a line in a chart)
- mooreds 5y agoI don't know how to do that, unfortunately. You might want to file an issue requesting this functionality (or, if the functionality already exists, documentation around it). https://github.com/testdouble/time_up/issues https://github.com/testdouble/time_up/issues
- doggodaddo78 5y agoThere's already Benchmark. On x86, absolute_time https://github.com/bwbuchanan/absolute_time https://github.com/bwbuchanan/absolute_time