dotnet / dotnet/BenchmarkDotNet

How to change units within RPlotExporter graphs

Open
#1,534 2 comments 1 reaction 1 assignee Claimed by @AndreyAkinshin View on GitHub
Dominant language
C#
Stars
11.5k
Forks
1.1k
Avg merge
6d 11h
Merged PRs (30d)
12

Description

I am trying to create benchmark graphs that our business users will be using. The "us" time unit that is showing up in the RPlot is throwing them for a loop, thus I'm attempting to change it to "ms" or "s". From what I understand, the CSV reports are what RPlot uses to create the graphs, but regardless of any changes I make to the units within the CsvMeasurementsExporter, the graph does not change.

```CSharp
[SimpleJob(launchCount: 1, warmupCount: 3, targetCount: 5, invocationCount: 5)]
[Config(typeof(Config))]
public class SomeBenchmark
{
public class Config : ManualConfig
{
public Config()
{
AddExporter(new CsvMeasurementsExporter(
CsvSeparator.CurrentCulture,
new SummaryStyle(null, true, SizeUnit.KB, TimeUnit.Millisecond)));

AddExporter(new RPlotExporter());
}
}

...
}
```

Is it possible to change the units of the graphs? The above code does not work as is.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.