BenchmarkDotNet=v0.10.1, OS=Microsoft Windows NT 6.2.9200.0
Processor=Intel(R) Core(TM) i7-6600U CPU 2.60GHz, ProcessorCount=4
Frequency=2742185 Hz, Resolution=364.6727 ns, Timer=TSC
[Host] : Clr 4.0.30319.42000, 64bit RyuJIT-v4.7.2046.0
DefaultJob : Clr 4.0.30319.42000, 64bit RyuJIT-v4.7.2046.0
Method | Mean | StdDev | Scaled | Scaled-StdDev | Allocated |
---|---|---|---|---|---|
'System.Drawing Resize' | 61.8849 ms | 1.5651 ms | 1.00 | 0.00 | 512 B |
'ImageSharp Resize' | 28.9082 ms | 0.6396 ms | 0.47 | 0.01 | 16.91 MB |
in-place resizing could work (block resize followed by bilinear pass?), but I bet they're not destroying the source buffer, so indeed 512Bytes seems impossible. You could try to measure the # of memory allocated using windows performance analyzer, it does have counters for that.