(Go: >> BACK << -|- >> HOME <<)

Skip to content

gen2brain/jpegli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jpegli

Status Go Reference

Go encoder/decoder for JPEG.

Based on jpegli from libjxl compiled to WASM and used with wazero runtime (CGo-free).

Benchmark

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	      32 allocs/op

BenchmarkEncodeStd-8       	     260	   4601558 ns/op	    6109 B/op	       7 allocs/op
BenchmarkEncode-8          	     314	   3791604 ns/op	    1526 B/op	      12 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

Resources