scientist
:microscope: A Ruby library for carefully refactoring critical paths.
About this project
Scientist! A Ruby library for carefully refactoring critical paths. How do I science? Let's pretend you're changing the way you handle permissions in a large web app. Tests can help guide your refactoring, but you really want to compare the current and refactored behaviors under load. Wrap a use block around the code's original behavior, and wrap try around the new behavior. experiment.run will always return whatever the use block returns, but it does a bunch of stuff behind the scenes: It decides whether or not to run the try block, Randomizes the order in which use and try blocks are run, Measures the wall time and cpu time of all behaviors in seconds, Compares the result of…
Technologies
Project health
GitHub
Reviews
Built by
Maintain github/scientist? Claiming verifies admin access through your GitHub account and gives you control of this listing.