test/integration/logs: remove useless stats case

The same effect can be achieved with `-bench=BenchmarkEncoding/none`.
This commit is contained in:
Patrick Ohly 2022-12-21 14:05:14 +01:00
parent 97a8d72a67
commit a862a269b0
2 changed files with 2 additions and 7 deletions

View File

@ -6,7 +6,7 @@ must be benchmarked before and after the change.
## Running the benchmark ## Running the benchmark
``` ```
$ go test -bench=. -test.benchmem -benchmem . go test -v -bench=. -benchmem -benchtime=10s .
``` ```
## Real log data ## Real log data
@ -59,5 +59,5 @@ While loading a file, some statistics about it are collected. Those are shown
when running with: when running with:
``` ```
$ go test -v -bench=. -test.benchmem -benchmem . go test -v -bench=BenchmarkEncoding/none -run=none .
``` ```

View File

@ -70,11 +70,6 @@ func BenchmarkEncoding(b *testing.B) {
v, _ = strconv.Atoi(vMatch[1]) v, _ = strconv.Atoi(vMatch[1])
} }
fileSizes := map[string]int{} fileSizes := map[string]int{}
b.Run("stats", func(b *testing.B) {
// Nothing to do. Use this for "go test -v
// -bench=BenchmarkLogging/.*/stats" to print
// just the statistics.
})
b.Run("printf", func(b *testing.B) { b.Run("printf", func(b *testing.B) {
b.ResetTimer() b.ResetTimer()
output = 0 output = 0