From 1056e9b57554f5a49767278e792f47aaf3900ac3 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sat, 13 May 2023 20:51:29 +0200 Subject: [PATCH] Default constructor added to RecyclableCollections benchmarks to allow lack of initialization when selected benchmarks are executed. --- .../Benchmarks/RecyclableCollections.Benchmarks.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Recyclable.Collections.Benchmarks/Benchmarks/RecyclableCollections.Benchmarks.cs b/Recyclable.Collections.Benchmarks/Benchmarks/RecyclableCollections.Benchmarks.cs index b0b78a5..82fad90 100644 --- a/Recyclable.Collections.Benchmarks/Benchmarks/RecyclableCollections.Benchmarks.cs +++ b/Recyclable.Collections.Benchmarks/Benchmarks/RecyclableCollections.Benchmarks.cs @@ -14,7 +14,14 @@ namespace Recyclable.Collections.Benchmarks public partial class RecyclableCollectionsBenchmarks : RecyclableBenchmarkBase { - [Params + public RecyclableCollectionsBenchmarks() : base() + { + TestObjectCount = 1; + BaselineBenchmarkType = RecyclableCollectionsBenchmarkSource.PooledList; + BenchmarkType = RecyclableCollectionsBenchmarkSource.RecyclableList; + } + + [Params ( RecyclableCollectionsBenchmarkType.Add_WithCapacity, RecyclableCollectionsBenchmarkType.Add,