MethodNameSuffix added to DataDrivenBenchmarksBase to simplify usage
This commit is contained in:
1 parent
61af6f13df
commit
32d15dda78
1 file changed
+7
@@ -28,6 +28,11 @@ namespace Collections.Benchmarks.Core
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override string GetTestMethodName(TTestCase? benchmarkType)
|
||||||
|
{
|
||||||
|
return $"{base.GetTestMethodName(benchmarkType)}{MethodNameSuffix}";
|
||||||
|
}
|
||||||
|
|
||||||
protected override void PrepareData<T>(T benchmarkType)
|
protected override void PrepareData<T>(T benchmarkType)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"******* PREPARING DATA FOR {benchmarkType} *******");
|
Console.WriteLine($"******* PREPARING DATA FOR {benchmarkType} *******");
|
||||||
@@ -88,5 +93,7 @@ namespace Collections.Benchmarks.Core
|
|||||||
PrepareData(CollectionsBenchmarksSource.Array);
|
PrepareData(CollectionsBenchmarksSource.Array);
|
||||||
base.Setup();
|
base.Setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual string MethodNameSuffix { get; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user