Browse Source

rename stuff in Benchmarks

af/merge-core
Anton Firszov 7 years ago
parent
commit
b8a4741da4
  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
{
public abstract class PackFromXyzw<TPixel>
public abstract class FromRgba32Bytes<TPixel>
where TPixel : struct, IPixel<TPixel>
{
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
{
[Config(typeof(Config.ShortClr))]
public abstract class PackFromVector4<TPixel>
public abstract class FromVector4<TPixel>
where TPixel : struct, IPixel<TPixel>
{
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]
public void FallbackIntrinsics128()

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

@ -133,6 +133,6 @@ namespace SixLabors.ImageSharp.Benchmarks.General.PixelConversion
* !!! Conclusion !!!
* 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,
* 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