Changed order of properties to display better in benchmark results.
This commit is contained in:
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;
|
public RecyclableCollectionsBenchmarkType TestCase { get; set; } = RecyclableCollectionsBenchmarkType.IndexOf_AllItems;
|
||||||
|
|
||||||
|
[Params
|
||||||
|
(
|
||||||
|
RecyclableCollectionsBenchmarkSource.PooledList
|
||||||
|
)]
|
||||||
|
public override RecyclableCollectionsBenchmarkSource BaselineBenchmarkType { get => base.BaselineBenchmarkType; set => base.BaselineBenchmarkType = value; }
|
||||||
|
|
||||||
[Params
|
[Params
|
||||||
(
|
(
|
||||||
RecyclableCollectionsBenchmarkSource.Array,
|
RecyclableCollectionsBenchmarkSource.Array,
|
||||||
@@ -60,12 +66,6 @@ namespace Recyclable.Collections.Benchmarks
|
|||||||
)]
|
)]
|
||||||
public override RecyclableCollectionsBenchmarkSource BenchmarkType { get => base.BenchmarkType; set => base.BenchmarkType = value; }
|
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)
|
protected override Action GetTestMethod(RecyclableCollectionsBenchmarkSource benchmarkType)
|
||||||
=> (Action?) GetType().GetMethod($"{benchmarkType}_{TestCase}", BindingFlags.Instance | BindingFlags.Public)?.CreateDelegate(typeof(Action), this)
|
=> (Action?) GetType().GetMethod($"{benchmarkType}_{TestCase}", BindingFlags.Instance | BindingFlags.Public)?.CreateDelegate(typeof(Action), this)
|
||||||
?? throw CreateMethodNotFoundException($"{benchmarkType}_{TestCase}", GetType().FullName);
|
?? throw CreateMethodNotFoundException($"{benchmarkType}_{TestCase}", GetType().FullName);
|
||||||
|
|||||||
Reference in new issue
Block a user