Create benchmarks updated. Global benchmark setup & cleanup added.
This commit is contained in:
1 parent
4bfb40007a
commit
cc364c5fd7
7 files changed
+38
-24
No files matched your search
@@ -5,16 +5,16 @@ namespace Recyclable.Collections.Benchmarks
|
||||
[MemoryDiagnoser]
|
||||
public partial class RecyclableCollectionsBenchmarks : BenchmarkBase
|
||||
{
|
||||
private readonly object[] _testArray;
|
||||
private object[] _testArray;
|
||||
|
||||
//[Benchmark(Baseline = false)]
|
||||
[Benchmark(Baseline = true)]
|
||||
public void Array_Create_WithCapacity()
|
||||
{
|
||||
var data = new object[TestObjectCount];
|
||||
DoNothing(data);
|
||||
}
|
||||
|
||||
[Benchmark(Baseline = true)]
|
||||
//[Benchmark(Baseline = true)]
|
||||
public void Array_SetItem()
|
||||
{
|
||||
var data = TestObjects;
|
||||
|
||||
Reference in new issue
Block a user