Browse Source

Add CoreRuntime.Core50

pull/1552/head
Brian Popow 5 years ago
parent
commit
810bebf972
  1. 4
      tests/ImageSharp.Benchmarks/Codecs/DecodeWebp.cs
  2. 6
      tests/ImageSharp.Benchmarks/Config.cs

4
tests/ImageSharp.Benchmarks/Codecs/DecodeWebp.cs

@ -42,7 +42,7 @@ namespace SixLabors.ImageSharp.Benchmarks.Codecs
this.webpLosslessBytes ??= File.ReadAllBytes(this.TestImageLosslessFullPath); this.webpLosslessBytes ??= File.ReadAllBytes(this.TestImageLosslessFullPath);
} }
[Benchmark(Description = "Magick Lossy WebP")] [Benchmark(Description = "Magick Lossy Webp")]
public int WebpLossyMagick() public int WebpLossyMagick()
{ {
var settings = new MagickReadSettings { Format = MagickFormat.WebP }; var settings = new MagickReadSettings { Format = MagickFormat.WebP };
@ -58,7 +58,7 @@ namespace SixLabors.ImageSharp.Benchmarks.Codecs
return image.Height; return image.Height;
} }
[Benchmark(Description = "Magick Lossless WebP")] [Benchmark(Description = "Magick Lossless Webp")]
public int WebpLosslessMagick() public int WebpLosslessMagick()
{ {
var settings = new MagickReadSettings { Format = MagickFormat.WebP }; var settings = new MagickReadSettings { Format = MagickFormat.WebP };

6
tests/ImageSharp.Benchmarks/Config.cs

@ -34,7 +34,8 @@ namespace SixLabors.ImageSharp.Benchmarks
public MultiFramework() => this.AddJob( public MultiFramework() => this.AddJob(
Job.Default.WithRuntime(ClrRuntime.Net472), Job.Default.WithRuntime(ClrRuntime.Net472),
Job.Default.WithRuntime(CoreRuntime.Core21), Job.Default.WithRuntime(CoreRuntime.Core21),
Job.Default.WithRuntime(CoreRuntime.Core31)); Job.Default.WithRuntime(CoreRuntime.Core31),
Job.Default.WithRuntime(CoreRuntime.Core50));
} }
public class ShortMultiFramework : Config public class ShortMultiFramework : Config
@ -42,7 +43,8 @@ namespace SixLabors.ImageSharp.Benchmarks
public ShortMultiFramework() => this.AddJob( public ShortMultiFramework() => this.AddJob(
Job.Default.WithRuntime(ClrRuntime.Net472).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3), Job.Default.WithRuntime(ClrRuntime.Net472).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3),
Job.Default.WithRuntime(CoreRuntime.Core21).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3), Job.Default.WithRuntime(CoreRuntime.Core21).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3),
Job.Default.WithRuntime(CoreRuntime.Core31).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3)); Job.Default.WithRuntime(CoreRuntime.Core31).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3),
Job.Default.WithRuntime(CoreRuntime.Core50).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3));
} }
public class ShortCore31 : Config public class ShortCore31 : Config

Loading…
Cancel
Save