aboutsummaryrefslogtreecommitdiff
path: root/plugin/etcd/msg/service_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/etcd/msg/service_test.go')
-rw-r--r--plugin/etcd/msg/service_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/etcd/msg/service_test.go b/plugin/etcd/msg/service_test.go
index 5b16d2d91..2b38eeee1 100644
--- a/plugin/etcd/msg/service_test.go
+++ b/plugin/etcd/msg/service_test.go
@@ -123,3 +123,11 @@ func TestGroup(t *testing.T) {
t.Fatalf("Failure to group seventh set: %v", sx)
}
}
+
+func BenchmarkNewSRV(b *testing.B) {
+ s := &Service{Host: "www,example.org", Port: 8080}
+ for n := 0; n < b.N; n++ {
+ srv := s.NewSRV("www.example.org.", 16)
+ srv = srv
+ }
+}