Reputation: 16077
According to the documentation BenchmarkDotnet's Default exporters are: csv, html and markdown.
I can see how to add my own exporter, but I can see how I can get rid of the default exporters.
If there is no way to do this, is the order that the exporters are run in guaranteed? In other words, will my additional exporter be guaranteed to run after the default ones?
Upvotes: 1
Views: 710
Reputation: 1364
how I can get rid of the default exporters
If you don't want the default settings, you need to create an empty config and add everything you need in an explicit way. The minimal config that prints results to the console:
var config = ManualConfig.CreateEmpty()
.AddColumnProvider(DefaultColumnProviders.Instance)
.AddLogger(ConsoleLogger.Default);
// here you can add your exporter by using config.AddExporter()
// and pass it to BenchmarkRunner or BenchmarkSwitcher
I've created a PR that is going to make it easier in the next release: https://github.com/dotnet/BenchmarkDotNet/pull/1582
Please feel free to create an issue in the BDN repo and suggest a new API|solution if you find the current solution too complex.
is the order that the exporters are run in guaranteed?
It's guaranteed to be sorted by the dependencies requirements:
An example is the RPlot
exporter that relies on having the CSV
exporter doing it's job first:
Upvotes: 1