doc: update benchmark of v0.1.0

This commit is contained in:
nanmu42
2019-12-10 15:07:41 +08:00
parent 0b509084f1
commit edd9fc4ce3
2 changed files with 8 additions and 9 deletions

3
.gitignore vendored
View File

@@ -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

View File

@@ -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
```