mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
test/integration/logs: remove useless stats case
The same effect can be achieved with `-bench=BenchmarkEncoding/none`.
This commit is contained in:
parent
97a8d72a67
commit
a862a269b0
@ -6,7 +6,7 @@ must be benchmarked before and after the change.
|
||||
## Running the benchmark
|
||||
|
||||
```
|
||||
$ go test -bench=. -test.benchmem -benchmem .
|
||||
go test -v -bench=. -benchmem -benchtime=10s .
|
||||
```
|
||||
|
||||
## Real log data
|
||||
@ -59,5 +59,5 @@ While loading a file, some statistics about it are collected. Those are shown
|
||||
when running with:
|
||||
|
||||
```
|
||||
$ go test -v -bench=. -test.benchmem -benchmem .
|
||||
go test -v -bench=BenchmarkEncoding/none -run=none .
|
||||
```
|
||||
|
@ -70,11 +70,6 @@ func BenchmarkEncoding(b *testing.B) {
|
||||
v, _ = strconv.Atoi(vMatch[1])
|
||||
}
|
||||
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.ResetTimer()
|
||||
output = 0
|
||||
|
Loading…
Reference in New Issue
Block a user