mirror of
https://github.com/nanmu42/gzip.git
synced 2025-12-24 11:51:04 +08:00
doc: update benchmark of v0.1.0
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -14,5 +14,6 @@
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Test coverage
|
||||
# Test coverage and profile
|
||||
coverage.txt
|
||||
*.prof
|
||||
|
||||
@@ -1,21 +1,19 @@
|
||||
# Command
|
||||
|
||||
```bash
|
||||
go test -benchmem -bench .
|
||||
go test -benchmem -cpuprofile cpu.prof -memprofile mem.prof -bench=.
|
||||
```
|
||||
|
||||
# v0.1.0
|
||||
|
||||
```
|
||||
$ go test -benchmem -bench .
|
||||
goos: linux
|
||||
goarch: amd64
|
||||
pkg: github.com/nanmu42/gzip
|
||||
BenchmarkSoleGin_SmallPayload-12 7977210 156 ns/op 64 B/op 2 allocs/op
|
||||
BenchmarkGinWithDefaultHandler_SmallPayload-12 1242836 980 ns/op 224 B/op 6 allocs/op
|
||||
BenchmarkSoleGin_BigPayload-12 7137006 189 ns/op 64 B/op 2 allocs/op
|
||||
BenchmarkGinWithDefaultHandler_BigPayload-12 1908733 576 ns/op 224 B/op 6 allocs/op
|
||||
BenchmarkSoleGin_SmallPayload-12 7222698 244 ns/op 64 B/op 2 allocs/op
|
||||
BenchmarkGinWithDefaultHandler_SmallPayload-12 1000000 1076 ns/op 224 B/op 6 allocs/op
|
||||
BenchmarkSoleGin_BigPayload-12 6688381 265 ns/op 64 B/op 2 allocs/op
|
||||
BenchmarkGinWithDefaultHandler_BigPayload-12 1000000 1063 ns/op 224 B/op 6 allocs/op
|
||||
PASS
|
||||
ok github.com/nanmu42/gzip 6.861s
|
||||
|
||||
ok github.com/nanmu42/gzip 6.222s
|
||||
```
|
||||
Reference in New Issue
Block a user