Changed order of properties to display better in benchmark results.

This commit is contained in:
mlemanczyk committed 2023-05-21 14:36:34 +02:00
1 parent 26f9666df6
commit 2221f572c5
1 file changed
+6 -6
@@ -50,6 +50,12 @@ namespace Recyclable.Collections.Benchmarks
public RecyclableCollectionsBenchmarkType TestCase { get; set; } = RecyclableCollectionsBenchmarkType.IndexOf_AllItems;
[Params
(
RecyclableCollectionsBenchmarkSource.PooledList
)]
public override RecyclableCollectionsBenchmarkSource BaselineBenchmarkType { get => base.BaselineBenchmarkType; set => base.BaselineBenchmarkType = value; }
[Params
(
RecyclableCollectionsBenchmarkSource.Array,
@@ -60,12 +66,6 @@ namespace Recyclable.Collections.Benchmarks
)]
public override RecyclableCollectionsBenchmarkSource BenchmarkType { get => base.BenchmarkType; set => base.BenchmarkType = value; }
[Params
(
RecyclableCollectionsBenchmarkSource.PooledList
)]
public override RecyclableCollectionsBenchmarkSource BaselineBenchmarkType { get => base.BaselineBenchmarkType; set => base.BaselineBenchmarkType = value; }
protected override Action GetTestMethod(RecyclableCollectionsBenchmarkSource benchmarkType)
=> (Action?) GetType().GetMethod($"{benchmarkType}_{TestCase}", BindingFlags.Instance | BindingFlags.Public)?.CreateDelegate(typeof(Action), this)
?? throw CreateMethodNotFoundException($"{benchmarkType}_{TestCase}", GetType().FullName);