Closed antoninbas closed 11 months ago
Merging #329 (58dd8ff) into main (614e68c) will not change coverage. The diff coverage is
n/a
.
@dreamtalen For BenchmarkAddRecord
, I have also observed that. It's because the IPv4 benchmarks is not the same as the IPv6 one (more checks). Although I will update it so that they do the same. It doesn't really make sense to have them be different.
For BenchmarkAggregateMsgByFlowKey
, the IPv4 one is faster for me, as expected.
BenchmarkAggregateMsgByFlowKey/ipv4-12 181294 6341 ns/op 696 B/op 12 allocs/op
BenchmarkAggregateMsgByFlowKey/ipv6-12 164910 7327 ns/op 792 B/op 13 allocs/op
@dreamtalen I unified the test code, PTAL
For BenchmarkAggregateMsgByFlowKey
, you could give it another try (I recommend adding -test.benchmem
as well). Your computer may have been running something else at the time.
@dreamtalen I unified the test code, PTAL
For
BenchmarkAggregateMsgByFlowKey
, you could give it another try (I recommend adding-test.benchmem
as well). Your computer may have been running something else at the time.
Thank you. As expected, the IPv4 one now performs slightly better in both benchmark tests.
A few new benchmarks, which can be useful when validating improvements to the implementation.