Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TechHara/go_gunzip

Repository files navigation

This repo contains a Go port of gunzip for decompression of .gz files.

Benchmark

Below shows runtime comparison with the go standard library implementation (compress/gzip).

Decompression of linux.tar.gz (Linux x64)

# Gorutines compress/gzip This
1 4.22 3.92
2 3.60

Decompression of linux.tar.gz (Linux arm64)

# Gorutines compress/gzip This
1 3.88 3.98
2 6.01

For whatever the reason, the multi-thread version runs slower on arm64 (Apple Silicon).

Build

$ go build

Run

# single gorutine
GOMAXPROC=1 ./gunzip < compressed.gz > decompressed

# two gorutines
GOMAXPROC=2 gunzip -t < compressed.gz > decompressed

About

Go port of gunzip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages