openconfig / ygnmi

A Go gNMI client library based on ygot-generated code
Apache License 2.0
12 stars 4 forks source link

Non-linear unmarshal performance #109

Open DanG100 opened 1 year ago

DanG100 commented 1 year ago

go test ./ygnmi/ -bench ^BenchmarkLookupListParent$ -benchtime=2000x

goos: linux
goarch: amd64
pkg: github.com/openconfig/ygnmi/ygnmi
cpu: Intel(R) Xeon(R) CPU @ 2.80GHz
BenchmarkLookupListParent-48                2000           1750459 ns/op
goos: linux
goarch: amd64
pkg: github.com/openconfig/ygnmi/ygnmi
cpu: Intel(R) Xeon(R) CPU @ 2.80GHz
BenchmarkLookupListParent-48                4000           3387316 ns/op