mambocab / rumble

A simple library for comparing functions' runtimes.
MIT License
3 stars 0 forks source link

checking against a reference implementation #7

Open mambocab opened 9 years ago

mambocab commented 9 years ago

The TimedFunction class should be able to hold a reference function. For some random subset of the runs in a Timer run (or maybe just once) the function function's output should be checked against the reference.

The idea here is that you may want to tweak functions as you work. If you're constantly comparing to a known-correct implementation, you may catch bugs before they bite you.