Remove hlsf, TLSF.alloc is ok
This commit is contained in:
@@ -58,7 +58,7 @@ namespace StgSharp.Benchmark
|
||||
private readonly List<HlsfHandle> _hlsfLocalList = new();
|
||||
private readonly List<nint> _libcLocalList = new();
|
||||
private Random _random = new(42);
|
||||
private HybridLayerSegregatedFitAllocator _hlsfAllocator = null!;
|
||||
private TwoLayerSegregatedFitAllocator _hlsfAllocator = null!;
|
||||
|
||||
[GlobalCleanup]
|
||||
public void Cleanup()
|
||||
@@ -92,7 +92,7 @@ namespace StgSharp.Benchmark
|
||||
{
|
||||
_hlsfAllocator?.Dispose();
|
||||
_random = new Random(42);
|
||||
_hlsfAllocator = new HybridLayerSegregatedFitAllocator(GetArenaBytes(), align:(int)Alignment);
|
||||
_hlsfAllocator = new TwoLayerSegregatedFitAllocator(GetArenaBytes(), align:(int)Alignment);
|
||||
BuildIterationWorkload();
|
||||
_hlsfLocalList.Clear();
|
||||
_libcLocalList.Clear();
|
||||
@@ -147,7 +147,7 @@ namespace StgSharp.Benchmark
|
||||
|
||||
private void RunHlsf(
|
||||
int batch,
|
||||
HybridLayerSegregatedFitAllocator allocator,
|
||||
TwoLayerSegregatedFitAllocator allocator,
|
||||
FreePolicy policy
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user