2021-12-23 05:54:41 +08:00
|
|
|
//go:build linux
|
2020-10-26 21:24:59 +08:00
|
|
|
// +build linux
|
|
|
|
|
|
|
|
package net
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func BenchmarkGetConnectionsInet(b *testing.B) {
|
|
|
|
b.ResetTimer()
|
|
|
|
for i := 0; i < b.N; i++ {
|
|
|
|
Connections("inet")
|
|
|
|
}
|
|
|
|
}
|
2021-12-23 05:54:41 +08:00
|
|
|
|
2020-10-26 21:24:59 +08:00
|
|
|
func BenchmarkGetConnectionsAll(b *testing.B) {
|
|
|
|
b.ResetTimer()
|
|
|
|
for i := 0; i < b.N; i++ {
|
|
|
|
Connections("all")
|
|
|
|
}
|
|
|
|
}
|