We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d55c284 commit ea5f441Copy full SHA for ea5f441
1 file changed
multiaddr_test.go
@@ -1132,3 +1132,17 @@ func FuzzSplitRoundtrip(f *testing.F) {
1132
}
1133
})
1134
1135
+
1136
+func BenchmarkComponentValidation(b *testing.B) {
1137
+ comp, err := NewComponent("ip4", "127.0.0.1")
1138
+ if err != nil {
1139
+ b.Fatal(err)
1140
+ }
1141
+ b.ReportAllocs()
1142
+ for i := 0; i < b.N; i++ {
1143
+ _, err := validateComponent(comp)
1144
1145
1146
1147
1148
+}
0 commit comments