Test data item type changed to "long" for performance reasons.
This commit is contained in:
1 parent
abfe476573
commit
c45af6a884
20 files changed
+97
-99
No files matched your search
@@ -9,7 +9,7 @@ namespace Recyclable.Collections.Benchmarks
|
||||
public void List_AddRangeWhenSourceIsArray()
|
||||
{
|
||||
var data = TestObjects;
|
||||
var list = new List<object>();
|
||||
var list = new List<long>();
|
||||
list.AddRange(data);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Recyclable.Collections.Benchmarks
|
||||
public void PooledList_AddRangeWhenSourceIsArray()
|
||||
{
|
||||
var data = TestObjects;
|
||||
using var list = new PooledList<object>(capacity: checked((int)TestObjectCount), ClearMode.Always);
|
||||
using var list = new PooledList<long>(capacity: TestObjectCount, ClearMode.Auto);
|
||||
list.AddRange(data);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Recyclable.Collections.Benchmarks
|
||||
public void RecyclableArrayList_AddRangeWhenSourceIsArray()
|
||||
{
|
||||
var data = TestObjects;
|
||||
using var list = new RecyclableArrayList<object>();
|
||||
using var list = new RecyclableArrayList<long>();
|
||||
list.AddRange(data);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Recyclable.Collections.Benchmarks
|
||||
public void RecyclableList_AddRangeWhenSourceIsArray()
|
||||
{
|
||||
var data = TestObjects;
|
||||
using var list = new RecyclableList<object>(minBlockSize: BlockSize, expectedItemsCount: TestObjectCount);
|
||||
using var list = new RecyclableList<long>(minBlockSize: BlockSize, expectedItemsCount: TestObjectCount);
|
||||
list.AddRange(data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user