|
1 | 1 | ## log |
2 | | -<img align="right" src="https://raw.githubusercontent.com/go-playground/log/master/logo.png"> |
| 2 | +<img align="right" src="https://raw.githubusercontent.com/go-playground/log/master/logo.png"> |
3 | 3 | [](https://semaphoreci.com/joeybloggs/log) |
4 | 4 | [](https://coveralls.io/github/go-playground/log?branch=master) |
5 | 5 | [](https://goreportcard.com/report/github.com/go-playground/log) |
@@ -204,20 +204,17 @@ things for you the community. |
204 | 204 |
|
205 | 205 | Benchmarks |
206 | 206 | ---------- |
207 | | -###### Run on MacBook Pro (Retina, 15-inch, Late 2013) 2.6 GHz Intel Core i7 16 GB 1600 MHz DDR3 using Go version go1.6.2 darwin/amd64 |
| 207 | +###### Run on i5-7600 16 GB DDR4-2400 using Go version go1.8 linux/amd64 |
208 | 208 | NOTE: only putting benchmarks at others request, by no means does the number of allocations |
209 | 209 | make one log library better than another! |
210 | 210 | ```go |
211 | | -go test -cpu=4 -bench=. -benchmem=true |
212 | | - |
213 | | -PASS |
214 | | -BenchmarkLogConsoleTenFieldsParallel-4 1000000 1985 ns/op 1113 B/op 35 allocs/op |
215 | | -BenchmarkLogConsoleSimpleParallel-4 3000000 455 ns/op 88 B/op 4 allocs/op |
216 | | -BenchmarkLogrusText10Fields-4 300000 4179 ns/op 4291 B/op 63 allocs/op |
217 | | -BenchmarkLogrusTextSimple-4 2000000 655 ns/op 672 B/op 15 allocs/op |
218 | | -BenchmarkLog1510Fields-4 100000 16376 ns/op 4378 B/op 92 allocs/op |
219 | | -BenchmarkLog15Simple-4 1000000 1983 ns/op 320 B/op 9 allocs/op |
220 | | -ok github.com/go-playground/log/benchmarks 10.716s |
| 211 | +go test --bench=. -benchmem=true |
| 212 | +BenchmarkLogConsoleTenFieldsParallel-4 1000000 1294 ns/op 1065 B/op 32 allocs/op |
| 213 | +BenchmarkLogConsoleSimpleParallel-4 3000000 549 ns/op 104 B/op 5 allocs/op |
| 214 | +BenchmarkLogrusText10Fields-4 500000 2079 ns/op 2179 B/op 39 allocs/op |
| 215 | +BenchmarkLogrusTextSimple-4 3000000 402 ns/op 312 B/op 14 allocs/op |
| 216 | +BenchmarkLog1510Fields-4 200000 10915 ns/op 4362 B/op 91 allocs/op |
| 217 | +BenchmarkLog15Simple-4 1000000 1292 ns/op 320 B/op 9 allocs/op |
221 | 218 | ``` |
222 | 219 |
|
223 | 220 | Special Thanks |
|
0 commit comments