mirror of https://github.com/SixLabors/ImageSharp
Browse Source
Former-commit-id: 0c56d5ebf2db246bc725cac0a7dd74b82e48d579 Former-commit-id: 1041547e752303bdac6677d4a482e349784fa8aa Former-commit-id: daef0c97bd5bd5eca5bd3398cb66b719e8f7b6efpull/1/head
2 changed files with 20 additions and 20 deletions
@ -1,22 +1,22 @@ |
|||
//namespace ImageProcessorCore.Benchmarks
|
|||
//{
|
|||
// using BenchmarkDotNet.Attributes;
|
|||
namespace ImageProcessorCore.Benchmarks |
|||
{ |
|||
using BenchmarkDotNet.Attributes; |
|||
|
|||
// using CoreColor = ImageProcessorCore.Color;
|
|||
// using SystemColor = System.Drawing.Color;
|
|||
using CoreColor = ImageProcessorCore.Color; |
|||
using SystemColor = System.Drawing.Color; |
|||
|
|||
// public class ColorEquality
|
|||
// {
|
|||
// [Benchmark(Baseline = true, Description = "System.Drawing Color Equals")]
|
|||
// public bool SystemDrawingColorEqual()
|
|||
// {
|
|||
// return SystemColor.FromArgb(128, 128, 128, 128).Equals(SystemColor.FromArgb(128, 128, 128, 128));
|
|||
// }
|
|||
public class ColorEquality |
|||
{ |
|||
[Benchmark(Baseline = true, Description = "System.Drawing Color Equals")] |
|||
public bool SystemDrawingColorEqual() |
|||
{ |
|||
return SystemColor.FromArgb(128, 128, 128, 128).Equals(SystemColor.FromArgb(128, 128, 128, 128)); |
|||
} |
|||
|
|||
// [Benchmark(Description = "ImageProcessorCore Color Equals")]
|
|||
// public bool ColorEqual()
|
|||
// {
|
|||
// return new CoreColor(.5f, .5f, .5f, .5f).Equals(new CoreColor(.5f, .5f, .5f, .5f));
|
|||
// }
|
|||
// }
|
|||
//}
|
|||
[Benchmark(Description = "ImageProcessorCore Color Equals")] |
|||
public bool ColorEqual() |
|||
{ |
|||
return new CoreColor(128, 128, 128, 128).Equals(new CoreColor(128, 128, 128, 128)); |
|||
} |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue