Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ferranbt/compression-test
https://github.com/ferranbt/compression-test
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ferranbt/compression-test
- Owner: ferranbt
- Created: 2019-10-01T16:44:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-23T18:18:51.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T23:58:41.764Z (5 months ago)
- Language: Go
- Size: 6.79 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Benchmarks
## Compression
One header:
```
$ go test -v ./... -run=XXX -bench=CompressOne
``````
goos: linux
goarch: amd64
pkg: github.com/ferranbt/compression-test
BenchmarkCompressOne/Snappy-8 5000000 312 ns/op 0 B/op 0 allocs/op
BenchmarkCompressOne/GoZstd-8 200000 8506 ns/op 0 B/op 0 allocs/op
BenchmarkCompressOne/Zstd-8 100000 17868 ns/op 0 B/op 0 allocs/op
```100 headers:
```
$ go test -v ./... -run=XXX -bench=CompressAll
``````
goos: linux
goarch: amd64
pkg: github.com/ferranbt/compression-test
BenchmarkCompressAll/Snappy-8 50000 61289 ns/op 0 B/op 0 allocs/op
BenchmarkCompressAll/GoZstd-8 2000 692607 ns/op 1 B/op 0 allocs/op
BenchmarkCompressAll/Zstd-8 500 2341084 ns/op 3 B/op
```## Decompression
One header:
```
$ go test -v ./... -run=XXX -bench=DecompressOne
``````
goos: linux
goarch: amd64
pkg: github.com/ferranbt/compression-test
BenchmarkDecompressOne/Snappy-8 10000000 188 ns/op 0 B/op 0 allocs/op
BenchmarkDecompressOne/GoZstd-8 5000000 355 ns/op 0 B/op 0 allocs/op
```100 headers:
```
$ go test -v ./... -run=XXX -bench=DecompressAll
``````
goos: linux
goarch: amd64
pkg: github.com/ferranbt/compression-test
BenchmarkDecompressAll/Snappy-8 100000 23061 ns/op 0 B/op 0 allocs/op
BenchmarkDecompressAll/GoZstd-8 50000 39547 ns/op 0 B/op 0 allocs/op
```