Browse Source

ProcessorThroughputTest -> ProcessorThroughputBenchmark

pull/3111/head
antonfirsov 1 month ago
parent
commit
b56a768a31
  1. 6
      tests/ImageSharp.Tests.ProfilingSandbox/ProcessorThroughputBenchmark.cs
  2. 2
      tests/ImageSharp.Tests.ProfilingSandbox/Program.cs

6
tests/ImageSharp.Tests.ProfilingSandbox/ProcessorThroughputTest.cs → tests/ImageSharp.Tests.ProfilingSandbox/ProcessorThroughputBenchmark.cs

@ -9,14 +9,14 @@ using SixLabors.ImageSharp.Processing;
namespace SixLabors.ImageSharp.Tests.ProfilingSandbox; namespace SixLabors.ImageSharp.Tests.ProfilingSandbox;
public sealed class ProcessorThroughputTest public sealed class ProcessorThroughputBenchmark
{ {
private const ulong CountingUnit = 1; private const ulong CountingUnit = 1;
private CommandLineOptions options; private CommandLineOptions options;
private Configuration configuration; private Configuration configuration;
private ulong totalPixelsInUnit; private ulong totalPixelsInUnit;
private ProcessorThroughputTest(CommandLineOptions options) private ProcessorThroughputBenchmark(CommandLineOptions options)
{ {
this.options = options; this.options = options;
this.configuration = Configuration.Default.Clone(); this.configuration = Configuration.Default.Clone();
@ -38,7 +38,7 @@ public sealed class ProcessorThroughputTest
} }
options ??= new CommandLineOptions(); options ??= new CommandLineOptions();
return new ProcessorThroughputTest(options.Normalize()) return new ProcessorThroughputBenchmark(options.Normalize())
.RunAsync(); .RunAsync();
} }

2
tests/ImageSharp.Tests.ProfilingSandbox/Program.cs

@ -13,7 +13,7 @@ using Xunit.Abstractions;
// LoadResizeSaveParallelMemoryStress.Run(args); // LoadResizeSaveParallelMemoryStress.Run(args);
// ParallelProcessingStress.RunExperiment(args); // ParallelProcessingStress.RunExperiment(args);
// ParallelProcessingStress.Run(args); // ParallelProcessingStress.Run(args);
await ProcessorThroughputTest.RunAsync(args); await ProcessorThroughputBenchmark.RunAsync(args);
// RunToVector4ProfilingTest(); // RunToVector4ProfilingTest();
// RunResizeProfilingTest(); // RunResizeProfilingTest();

Loading…
Cancel
Save