JBSP
ImageSharp slow asf for some reason
Webp encoding is currently slower since it’s currently lacking some intrinsics but that code you’ve written concerns me. The task thrashing and locking is going to yield poor benchmark accuracy.
You need to compare like for like also. SkiaSharp will be doing a lower quality resize by default for example. Use BenchmarkDotNet and do proper benchmarks for each operation. Here’s a good example https://github.com/bleroy/core-imaging-playground
p.s Webp is a terrible format. It’s massively slow to encode compared to jpeg and sacrifices size for quality.
23 replies