Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 557 Bytes

File metadata and controls

37 lines (26 loc) · 557 Bytes

LoggingDrain

Introduce

LoggingDrain is go implemented for drain3

Example

go run examples/stdin.go

Test

run unittest

go test .

run benchmark

go test -bench=.
goos: darwin
goarch: arm64
pkg: github.com/palanqu/loggingdrain
BenchmarkBuildTree-8       	 1632832	       699.0 ns/op
BenchmarkMatchTree-8       	 3431210	       349.4 ns/op
BenchmarkUnmarshalJson-8   	  378432	      3172 ns/op
PASS
ok  	github.com/palanqu/loggingdrain	4.840s