Closed GooDgRaF closed 6 months ago
For example, I have the following part of the table from Benchmark. Could I change 'us' to 'ms' or 's'?
Or, if the method took a long (not 'ns') time to run, then I should not use benchmarks and just use Stopwatch?
It usually scales to the smallest result. You can force it to use whatever unit you want via summary style in the config. config.WithSummaryStyle(SummaryStyle.Default.WithTimeUnit(TimeUnit.<WhateverYouWant>))
config.WithSummaryStyle(SummaryStyle.Default.WithTimeUnit(TimeUnit.<WhateverYouWant>))
For example, I have the following part of the table from Benchmark. Could I change 'us' to 'ms' or 's'?
Or, if the method took a long (not 'ns') time to run, then I should not use benchmarks and just use Stopwatch?