Go encoder/decoder for JPEG.
Based on jpegli from libjxl compiled to WASM and used with wazero runtime (CGo-free).
goos: linux
goarch: amd64
pkg: github.com/gen2brain/jpegli
cpu: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
BenchmarkDecodeStd-8 549 2187227 ns/op 407120 B/op 7 allocs/op
BenchmarkDecode-8 554 2172405 ns/op 154672 B/op 44 allocs/op
BenchmarkEncodeStd-8 260 4601558 ns/op 6109 B/op 7 allocs/op
BenchmarkEncode-8 314 3791604 ns/op 394816 B/op 13 allocs/op
BenchmarkEncodeRGBAStd-8 228 5237803 ns/op 9762 B/op 8 allocs/op
BenchmarkEncodeRGBA-8 261 4558648 ns/op 4862 B/op 13 allocs/op