hlsf error is solved. HLSF is now full functional available.
This commit is contained in:
@@ -65,7 +65,6 @@ namespace StgSharp
|
||||
uint size = sz > MaxAllocSize ? MaxAllocSize : sz;
|
||||
BenchAllocThroughput(allocator, size, touch:false);
|
||||
allocator.Collect();
|
||||
allocator.DumpPositionChain();
|
||||
GC.Collect();
|
||||
GC.WaitForPendingFinalizers();
|
||||
}
|
||||
@@ -130,7 +129,9 @@ namespace StgSharp
|
||||
}
|
||||
sw.Stop();
|
||||
double opsPerSec = pairs / sw.Elapsed.TotalSeconds;
|
||||
Console.WriteLine($" size={Fmt(blockSize),7} pairs={pairs,9} alloc+free/s={opsPerSec,12:0.0}");
|
||||
|
||||
// Left align and widen columns
|
||||
Console.WriteLine($" size={Fmt(blockSize),-12} pairs={pairs,-12} alloc+free/s={opsPerSec,-16:0.0}");
|
||||
}
|
||||
|
||||
private static void BenchAllocThroughput(
|
||||
@@ -171,7 +172,8 @@ namespace StgSharp
|
||||
allocator.Free(h);
|
||||
}
|
||||
|
||||
Console.WriteLine($" size={Fmt(blockSize),7} ops={ops,9} alloc/s={allocOpsPerSec,12:0.0} touch={touch}");
|
||||
// Left align and widen columns
|
||||
Console.WriteLine($" size={Fmt(blockSize),-12} ops={ops,-12} alloc/s={allocOpsPerSec,-16:0.0} touch={touch,-5}");
|
||||
}
|
||||
|
||||
private static void BenchFragmentationCycle(
|
||||
@@ -244,7 +246,9 @@ namespace StgSharp
|
||||
|
||||
sw.Stop();
|
||||
double freesPerSec = count / sw.Elapsed.TotalSeconds;
|
||||
Console.WriteLine($" size={Fmt(blockSize),7} count={count,9} free/s={freesPerSec,12:0.0}");
|
||||
|
||||
// Left align and widen columns
|
||||
Console.WriteLine($" size={Fmt(blockSize),-12} count={count,-12} free/s={freesPerSec,-16:0.0}");
|
||||
}
|
||||
|
||||
private static string Fmt(uint bytes)
|
||||
|
||||
Reference in New Issue
Block a user