Added support for running benchmarks without baseline.

This commit is contained in:
mlemanczyk committed 2023-05-25 19:11:09 +02:00
1 parent 853a69fa4d
commit 8bef46f1cf
3 files changed
+5 -2

No files matched your search

@@ -94,7 +94,7 @@ namespace Recyclable.Collections.Benchmarks.POC
{
Console.WriteLine($"******* SETTING UP TEST CASE FOR BENCHMARK {{{BenchmarkType}}} *******");
if (BaselineBenchmarkType != null)
if (!EqualityComparer<TBenchmarkType>.Default.Equals(BaselineBenchmarkType, default))
{
Console.WriteLine("******* SETTING UP BASELINE DATA *******");
PrepareData(BaselineBenchmarkType);