You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for baselines says to use [Benchmark(Baseline = true)] for baselines. Would it be possible to set a specific parameter value as the baseline instead?
I can't use multiple benchmark methods, since the value is needed to perform some setup that I don't want to be timed -- something like this:
I can't allocate the cache in the benchmark method, since it's not relevant to what I'm trying to measure and how long it takes is more variable than the rest of the code. Yet, if I want to ensure that the cache matters -- e.g. use CacheSize=0 as the baseline and see that CacheSize=1000 runs faster -- it seems like I have to.
Would it be possible to support making the baseline a certain parameter value?
The text was updated successfully, but these errors were encountered:
The documentation for baselines says to use
[Benchmark(Baseline = true)]
for baselines. Would it be possible to set a specific parameter value as the baseline instead?I can't use multiple benchmark methods, since the value is needed to perform some setup that I don't want to be timed -- something like this:
I can't allocate the cache in the benchmark method, since it's not relevant to what I'm trying to measure and how long it takes is more variable than the rest of the code. Yet, if I want to ensure that the cache matters -- e.g. use
CacheSize=0
as the baseline and see thatCacheSize=1000
runs faster -- it seems like I have to.Would it be possible to support making the baseline a certain parameter value?
The text was updated successfully, but these errors were encountered: