mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
remove bench
This commit is contained in:
parent
c663115ff1
commit
f1b71a3e7b
1 changed files with 0 additions and 12 deletions
|
|
@ -76,18 +76,6 @@ func BenchmarkTraceLogging(b *testing.B) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkVmodule(b *testing.B) {
|
|
||||||
out := new(bytes.Buffer)
|
|
||||||
glog := NewGlogHandler(NewTerminalHandlerWithLevel(out, LevelTrace, false))
|
|
||||||
glog.Verbosity(LevelCrit)
|
|
||||||
logger := NewLogger(glog)
|
|
||||||
glog.Vmodule("logger_test.go=5")
|
|
||||||
for i := 0; i < b.N; i++ {
|
|
||||||
logger.Warn("This should not be seen", "ignored", "true")
|
|
||||||
logger.Trace("a message", "foo", "bar")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func BenchmarkTerminalHandler(b *testing.B) {
|
func BenchmarkTerminalHandler(b *testing.B) {
|
||||||
l := NewLogger(NewTerminalHandler(io.Discard, false))
|
l := NewLogger(NewTerminalHandler(io.Discard, false))
|
||||||
benchmarkLogger(b, l)
|
benchmarkLogger(b, l)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue