tsee/dumbbench — pull request #3 by briandfoy (2013-02-04 07:27:28+00:00)
Title: Take subs to benchmark from a package

I'm having a lot of fun with Dumbbench and now I want to put it in Mastering Perl. I'm still making some interesting benchmarks (the recent file finder stuff, various gzips, and unarchiving). I added a feature to dumbbench to take the subs to benchmark from a package I specify on the command line. You had already covered the other two ways to inject instances, so the third deserved a way.

I don't particularly care about the way I did it. I expect a particular subroutine in the package to return the sub names to benchmark, then I create instances for those. I'm going to work on that idea a bit more because I want to make some sort of test thing to go through every sub to benchmark to test each returns the same thing.

I also added an R program that makes a box plot of the table data. I'd like to add other R programs to make the other plots too. If I'm ambitious, I'll go for multi-variant benchmarks and surface plots.