Renamed image creators

This commit is contained in:
MaddoScientisto 2026-02-21 15:53:52 +01:00
commit c70ab9e5de
12 changed files with 50 additions and 50 deletions

View file

@ -22,10 +22,10 @@ public class ImageProcessingBenchmarks
{
private string _sourceDirectory;
private string _destinationDirectory;
private ImageCreationStuff _imageCreationStuff;
private ImageCreationService _imageCreationStuff;
private PicSettings _picSettings;
private ILogger<ImageCreationStuff> _logger;
private ILogger<ImageCreatorSharp> _imageCreatorLogger;
private ILogger<ImageCreationService> _logger;
private ILogger<ImageCreatorGDI> _imageCreatorLogger;
[Params(10, 50, 100)]
public int ImageCount { get; set; }
@ -54,8 +54,8 @@ public class ImageProcessingBenchmarks
builder.SetMinimumLevel(LogLevel.Warning); // Reduce noise during benchmarks
});
_logger = loggerFactory.CreateLogger<ImageCreationStuff>();
_imageCreatorLogger = loggerFactory.CreateLogger<ImageCreatorSharp>();
_logger = loggerFactory.CreateLogger<ImageCreationService>();
_imageCreatorLogger = loggerFactory.CreateLogger<ImageCreatorGDI>();
// Setup PicSettings with default values
_picSettings = new PicSettings
@ -81,8 +81,8 @@ public class ImageProcessingBenchmarks
Trasparenza = 100
};
var imageCreatorService = new ImageCreatorSharp(_picSettings, _imageCreatorLogger);
_imageCreationStuff = new ImageCreationStuff(_logger, _picSettings, imageCreatorService);
var imageCreatorService = new ImageCreatorGDI(_picSettings, _imageCreatorLogger);
_imageCreationStuff = new ImageCreationService(_logger, _picSettings, imageCreatorService);
}
[GlobalCleanup]
@ -117,7 +117,7 @@ public class ImageProcessingBenchmarks
[Benchmark(Description = "Process images in parallel with chunking")]
public async Task ProcessImagesParallelWithChunks()
{
var options = new ImageCreationStuff.Options
var options = new ImageCreationService.Options
{
SourcePath = _sourceDirectory,
DestinationPath = _destinationDirectory,
@ -139,7 +139,7 @@ public class ImageProcessingBenchmarks
[Benchmark(Description = "Process images in parallel without chunking")]
public async Task ProcessImagesParallelWithoutChunks()
{
var options = new ImageCreationStuff.Options
var options = new ImageCreationService.Options
{
SourcePath = _sourceDirectory,
DestinationPath = _destinationDirectory,
@ -161,7 +161,7 @@ public class ImageProcessingBenchmarks
[Benchmark(Description = "Process images linearly")]
public async Task ProcessImagesLinear()
{
var options = new ImageCreationStuff.Options
var options = new ImageCreationService.Options
{
SourcePath = _sourceDirectory,
DestinationPath = _destinationDirectory,