Browse Source

add a README

pull/1687/head
Anton Firszov 5 years ago
parent
commit
2e91fc8363
  1. 7
      tests/ImageSharp.Benchmarks/LoadResizeSave/README.md
  2. 1
      tests/ImageSharp.Tests.ProfilingSandbox/LoadResizeSaveParallelMemoryStress.cs
  3. 2
      tests/ImageSharp.Tests.ProfilingSandbox/Program.cs

7
tests/ImageSharp.Benchmarks/LoadResizeSave/README.md

@ -0,0 +1,7 @@
The benchmarks have been adapted from the
[PhotoSauce's MemoryStress project](https://github.com/saucecontrol/core-imaging-playground/tree/beeees/MemoryStress).
### Setup
Download the [Bee Heads album](https://www.flickr.com/photos/usgsbiml/albums/72157633925491877) from the USGS Bee Inventory flickr
and extract to folder `<solution-dir>\tests\Images\ActualOutput\MemoryStress\`.

1
tests/ImageSharp.Tests.ProfilingSandbox/LoadResizeSaveParallelMemoryStress.cs

@ -8,6 +8,7 @@ using SixLabors.ImageSharp.Benchmarks.LoadResizeSave;
namespace SixLabors.ImageSharp.Tests.ProfilingSandbox namespace SixLabors.ImageSharp.Tests.ProfilingSandbox
{ {
// See ImageSharp.Benchmarks/LoadResizeSave/README.md
internal class LoadResizeSaveParallelMemoryStress internal class LoadResizeSaveParallelMemoryStress
{ {
private readonly LoadResizeSaveStressRunner benchmarks; private readonly LoadResizeSaveStressRunner benchmarks;

2
tests/ImageSharp.Tests.ProfilingSandbox/Program.cs

@ -39,7 +39,7 @@ namespace SixLabors.ImageSharp.Tests.ProfilingSandbox
// RunToVector4ProfilingTest(); // RunToVector4ProfilingTest();
// RunResizeProfilingTest(); // RunResizeProfilingTest();
Console.ReadLine(); // Console.ReadLine();
} }
private static void RunJpegEncoderProfilingTests() private static void RunJpegEncoderProfilingTests()

Loading…
Cancel
Save