gfoidl / Stochastics

Stochastic tools, distrubution, analysis
MIT License
3 stars 0 forks source link

Clean up benchmark code #21

Closed gfoidl closed 6 years ago

gfoidl commented 6 years ago

The switch is always getting bigger: https://github.com/gfoidl/Stochastics/blob/b45c38c1187f5eaa7ae79491c6f1ad6cb0438c61/perf/gfoidl.Stochastics.Benchmarks/Program.cs#L21-L30

So mark each benchmark with an attribute (or reuse the benchmark-attribute), scan for all benchmarks and match the command line argument that way. This needs an (abstract) base class.

This way it's easy extendable, and as help this info can be displayed.