예제 #1
0
 private static void PrintCompressedSizes(FileBenchmark benchmark)
 {
     foreach (var size in benchmark.WindowSizes)
     {
         byte[] compressed = benchmark.Compress(size);
         Console.WriteLine($"Benchmark: {benchmark} | Compressed Size: {compressed.Length} | Window Size: {size}");
     }
 }
예제 #2
0
        static void Main(string[] args)
        {
            BenchmarkRunner.Run <Model>();
            BenchmarkRunner.Run <ObjectLayout>();

            var files = new FileBenchmark[] { new Model(), new ObjectLayout() };

            foreach (var file in files)
            {
                PrintCompressedSizes(file);
            }
        }