Browse Source

rename stuff in Benchmarks

pull/744/head
Anton Firszov 8 years ago
parent
commit
5fda8d38be
  1. 4
      tests/ImageSharp.Benchmarks/Color/Bulk/FromRgba32Bytes.cs
  2. 4
      tests/ImageSharp.Benchmarks/Color/Bulk/FromVector4.cs
  3. 2
      tests/ImageSharp.Benchmarks/General/PixelConversion/PixelConversion_ConvertFromRgba32.cs

4
tests/ImageSharp.Benchmarks/Color/Bulk/PackFromXyzw.cs → tests/ImageSharp.Benchmarks/Color/Bulk/FromRgba32Bytes.cs

@ -13,7 +13,7 @@ using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk
{ {
public abstract class PackFromXyzw<TPixel> public abstract class FromRgba32Bytes<TPixel>
where TPixel : struct, IPixel<TPixel> where TPixel : struct, IPixel<TPixel>
{ {
private IMemoryOwner<TPixel> destination; private IMemoryOwner<TPixel> destination;
@ -65,7 +65,7 @@ namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk
} }
} }
public class PackFromXyzw_Rgba32 : PackFromXyzw<Rgba32> public class FromRgba32BytesRgba32 : FromRgba32Bytes<Rgba32>
{ {
} }
} }

4
tests/ImageSharp.Benchmarks/Color/Bulk/PackFromVector4.cs → tests/ImageSharp.Benchmarks/Color/Bulk/FromVector4.cs

@ -17,7 +17,7 @@ using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk
{ {
[Config(typeof(Config.ShortClr))] [Config(typeof(Config.ShortClr))]
public abstract class PackFromVector4<TPixel> public abstract class FromVector4<TPixel>
where TPixel : struct, IPixel<TPixel> where TPixel : struct, IPixel<TPixel>
{ {
protected IMemoryOwner<Vector4> source; protected IMemoryOwner<Vector4> source;
@ -69,7 +69,7 @@ namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk
} }
} }
public class PackFromVector4_Rgba32 : PackFromVector4<Rgba32> public class FromVector4Rgba32 : FromVector4<Rgba32>
{ {
[Benchmark] [Benchmark]
public void FallbackIntrinsics128() public void FallbackIntrinsics128()

2
tests/ImageSharp.Benchmarks/General/PixelConversion/PixelConversion_ConvertFromRgba32.cs

@ -133,6 +133,6 @@ namespace SixLabors.ImageSharp.Benchmarks.General.PixelConversion
* !!! Conclusion !!! * !!! Conclusion !!!
* All memory-incompatible (permuted) variants are equivalent with the the "FromBytes" solution. * All memory-incompatible (permuted) variants are equivalent with the the "FromBytes" solution.
* In memory compatible cases we should use the optimized Bulk-copying variant anyways, * In memory compatible cases we should use the optimized Bulk-copying variant anyways,
* so there is no benefit introducing non-bulk API-s other than PackFromBytes() OR PackFromRgba32(). * so there is no benefit introducing non-bulk API-s other than FromBytes() OR FromRgba32().
*/ */
} }
Loading…
Cancel
Save