more allocation reductions

This commit is contained in:
Adam Hathcock
2026-06-02 13:15:16 +01:00
parent dbfe9a1d61
commit 4c6f773d2b
9 changed files with 362 additions and 177 deletions

View File

@@ -81,13 +81,13 @@ public class Program
using (profiler)
{
// Run a simple benchmark iteration
var zipBenchmark = new Benchmarks.SevenZipBenchmarks();
var zipBenchmark = new Benchmarks.RarBenchmarks();
zipBenchmark.Setup();
Console.WriteLine("Running benchmark iterations...");
for (int i = 0; i < 100; i++)
{
await zipBenchmark.SevenZipLzma2ExtractAsync_Reader();
await zipBenchmark.RarExtractArchiveApiAsync();
if (i % 3 == 0)
{
Console.Write(".");