BenchmarkBase fixed to cover case when BockSize is 0.
This commit is contained in:
1 parent
3552dd00d1
commit
248dff8fda
1 file changed
+2
-2
@@ -13,8 +13,8 @@ namespace Recyclable.Collections.Benchmarks
|
|||||||
{
|
{
|
||||||
0 => 1,
|
0 => 1,
|
||||||
> 0 and <= 10 => TestObjectCount,
|
> 0 and <= 10 => TestObjectCount,
|
||||||
_ => TestObjectCount / Divider
|
_ => TestObjectCount / Divider > 0 ? TestObjectCount / Divider : TestObjectCount
|
||||||
};
|
};
|
||||||
|
|
||||||
protected object[]? _testObjects;
|
protected object[]? _testObjects;
|
||||||
protected object[] TestObjects => _testObjects ?? throw new NullReferenceException("Something is wrong and the field is not initialized");
|
protected object[] TestObjects => _testObjects ?? throw new NullReferenceException("Something is wrong and the field is not initialized");
|
||||||
|
|||||||
Reference in new issue
Block a user