From 89e6388e3261118bcc63f86804f3e13e8fbb450d Mon Sep 17 00:00:00 2001 From: antonfirsov Date: Fri, 10 Apr 2026 03:06:22 +0200 Subject: [PATCH] rename field --- .../ProcessorThroughputBenchmark.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ImageSharp.Tests.ProfilingSandbox/ProcessorThroughputBenchmark.cs b/tests/ImageSharp.Tests.ProfilingSandbox/ProcessorThroughputBenchmark.cs index 790077beff..e9adf58449 100644 --- a/tests/ImageSharp.Tests.ProfilingSandbox/ProcessorThroughputBenchmark.cs +++ b/tests/ImageSharp.Tests.ProfilingSandbox/ProcessorThroughputBenchmark.cs @@ -13,7 +13,7 @@ public sealed class ProcessorThroughputBenchmark { private readonly CommandLineOptions options; private readonly Configuration configuration; - private ulong totalPixelsInUnit; + private ulong totalProcessedPixels; private ProcessorThroughputBenchmark(CommandLineOptions options) { @@ -90,7 +90,7 @@ public sealed class ProcessorThroughputBenchmark await Task.Yield(); // "emulate IO", i.e., make sure the processing code is async ulong pixels = (ulong)action(); - Interlocked.Add(ref this.totalPixelsInUnit, pixels); + Interlocked.Add(ref this.totalProcessedPixels, pixels); } catch (Exception ex) { @@ -117,7 +117,7 @@ public sealed class ProcessorThroughputBenchmark await drainTcs.Task; stopwatch.Stop(); - double totalMegaPixels = this.totalPixelsInUnit / 1_000_000.0; + double totalMegaPixels = this.totalProcessedPixels / 1_000_000.0; double totalSeconds = stopwatch.ElapsedMilliseconds / 1000.0; double megapixelsPerSec = totalMegaPixels / totalSeconds; Console.WriteLine($"TotalSeconds: {totalSeconds:F2}");