You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/net/net_linux_netlink_test.go

21 lines
304 B
Go

3 years ago
//go:build linux
// +build linux
package net
import "testing"
func BenchmarkGetConnectionsInet(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
Connections("inet")
}
}
3 years ago
func BenchmarkGetConnectionsAll(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
Connections("all")
}
}