Permalink
Browse files

Add a benchmark for addTagsToName

  • Loading branch information...
prashantv committed Jan 21, 2016
1 parent 87fa6d9 commit b26d6c4672d1fd8f063ab3a4a5fd0589b742cec8
Showing with 12 additions and 0 deletions.
  1. +12 −0 stats/reporter_test.go
View
@@ -2,6 +2,18 @@ package stats
import "testing"
func BenchmarkAddTagsToName(b *testing.B) {
tags := map[string]string{
"host": "myhost",
"endpoint": "hello",
"os": "OS X",
"browser": "Chrome",
}
for i := 0; i < b.N; i++ {
addTagsToName("recv.calls", tags)
}
}
func TestAddTagsToName(t *testing.T) {
tests := []struct {
name string

0 comments on commit b26d6c4

Please sign in to comment.