Benchmarks reworked to save time on test data creation & have more comparable results against baseline.

This commit is contained in:
mlemanczyk committed 2023-05-07 14:52:37 +02:00
1 parent 73d3e32107
commit bb878caa39
35 files changed
+586 -418

No files matched your search

@@ -1,11 +1,9 @@
using BenchmarkDotNet.Attributes;
using Collections.Pooled;
using Collections.Pooled;
namespace Recyclable.Collections.Benchmarks
{
public partial class RecyclableCollectionsBenchmarks
{
//[Benchmark(Baseline = false)]
public void List_Add_WithCapacity()
{
var data = TestObjects;
@@ -17,7 +15,6 @@ namespace Recyclable.Collections.Benchmarks
}
}
//[Benchmark(Baseline = true)]
public void PooledList_Add_WithCapacity()
{
var data = TestObjects;
@@ -29,7 +26,6 @@ namespace Recyclable.Collections.Benchmarks
}
}
//[Benchmark(Baseline = false)]
public void RecyclableArrayList_Add_WithCapacity()
{
var data = TestObjects;
@@ -41,7 +37,6 @@ namespace Recyclable.Collections.Benchmarks
}
}
//[Benchmark(Baseline = false)]
public void RecyclableList_Add_WithCapacity()
{
var data = TestObjects;