FileOnQ / Imaging.Heif

A C#/.NET wrapper around libheif for decoding and processing high efficiency image formats (heif, heic).
GNU Lesser General Public License v3.0
15 stars 4 forks source link

Testing Benchmark Forked PR Flow #52

Closed SkyeHoefling closed 2 years ago

SkyeHoefling commented 2 years ago

Fixes:

Description

Merge Checklist

github-actions[bot] commented 2 years ago

Hello World, this is GitHub Actions 👋

SkyeHoefling commented 2 years ago

Everything looks good so far, let's wait to see what happens when the benchmark job completes. It should post the benchmark results. Then we will need to test the command manually. If all of that works we should be good to go with wrapping up this work.

github-actions[bot] commented 2 years ago

Hello World, this is GitHub Actions 👋

github-actions[bot] commented 2 years ago

Benchmark Comparison

Benchmarking comparison between this Pull Request and the comitted values at benchmarks/results

thumbnail


Welcome to .NET 5.0!
---------------------
SDK Version: 5.0.404

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
summary:
worse: 3, geomean: 1.251
total diff: 3

| Slower                                                       | diff/base | Base Median (ns) | Diff Median (ns) | Modality|
| ------------------------------------------------------------ | ---------:| ----------------:| ----------------:| --------:|
| FileOnQ.Imaging.Heif.Benchmarks.Thumbnail.Thumbnail_ToStream |      1.30 |      47627000.00 |      62007200.00 |         |
| FileOnQ.Imaging.Heif.Benchmarks.Thumbnail.Thumbnail_ToArray  |      1.28 |      47949500.00 |      61469100.00 |         |
| FileOnQ.Imaging.Heif.Benchmarks.Thumbnail.Thumbnail_ToSpan   |      1.17 |      49832700.00 |      58424300.00 |         |

No Faster results for the provided threshold = 10% and noise filter = 0.3ns.

No file given

primary

 No differences found between the benchmark results with threshold 10%.

Benchmark Results

thumbnail

``` ini BenchmarkDotNet=v0.13.0, OS=Windows 10.0.17763.2366 (1809/October2018Update/Redstone5) Intel Xeon Platinum 8171M CPU 2.60GHz, 1 CPU, 2 logical and 2 physical cores .NET SDK=5.0.404 [Host] : .NET 5.0.13 (5.0.1321.56516), X64 RyuJIT Job-JLJTJO : .NET 5.0.13 (5.0.1321.56516), X64 RyuJIT Runtime=.NET 5.0 InvocationCount=1 LaunchCount=1 UnrollFactor=1 ``` | Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated | Allocated native memory | Native memory leak | |------------------- |---------:|---------:|---------:|------:|------:|------:|----------:|------------------------:|-------------------:| | Thumbnail_Write | 59.10 ms | 0.171 ms | 0.134 ms | - | - | - | 288 B | 5,125,165 B | 12 B | | Thumbnail_ToArray | 61.47 ms | 0.561 ms | 0.525 ms | - | - | - | 66,408 B | 5,124,325 B | - | | Thumbnail_ToSpan | 58.59 ms | 0.396 ms | 0.351 ms | - | - | - | 120 B | 5,124,325 B | - | | Thumbnail_ToStream | 62.02 ms | 1.124 ms | 0.877 ms | - | - | - | 66,472 B | 5,124,325 B | - |

primary

``` ini BenchmarkDotNet=v0.13.0, OS=Windows 10.0.17763.2366 (1809/October2018Update/Redstone5) Intel Xeon Platinum 8171M CPU 2.60GHz, 1 CPU, 2 logical and 2 physical cores .NET SDK=5.0.404 [Host] : .NET 5.0.13 (5.0.1321.56516), X64 RyuJIT Job-IZHVQX : .NET 5.0.13 (5.0.1321.56516), X64 RyuJIT Runtime=.NET 5.0 InvocationCount=1 LaunchCount=1 UnrollFactor=1 ``` | Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated | Allocated native memory | Native memory leak | |---------------------- |--------:|---------:|---------:|------:|------:|------:|------------:|------------------------:|-------------------:| | PrimaryImage_Write | 2.774 s | 0.0501 s | 0.0536 s | - | - | - | 3,032 B | 222,030,604 B | - | | PrimaryImage_ToArray | 3.088 s | 0.0610 s | 0.0678 s | - | - | - | 1,943,008 B | 222,029,856 B | - | | PrimaryImage_ToSpan | 2.921 s | 0.0548 s | 0.0513 s | - | - | - | 136 B | 222,029,456 B | - | | PrimaryImage_ToStream | 2.901 s | 0.0574 s | 0.1493 s | - | - | - | 1,943,072 B | 222,029,568 B | - |

SkyeHoefling commented 2 years ago

Looks like everything works. Closing this PR as it just adds whitespace, it was created just to test automation