@@ -53,39 +53,6 @@ func BenchmarkSpanWithAttributes_4(b *testing.B) {
53
53
})
54
54
}
55
55
56
- func BenchmarkSpan_SetAttributes (b * testing.B ) {
57
- b .Run ("SetAttribute" , func (b * testing.B ) {
58
- traceBenchmark (b , "Benchmark Start With 4 Attributes" , func (b * testing.B , t apitrace.Tracer ) {
59
- ctx := context .Background ()
60
- b .ResetTimer ()
61
-
62
- for i := 0 ; i < b .N ; i ++ {
63
- _ , span := t .Start (ctx , "/foo" )
64
- span .SetAttribute (key .New ("key1" ).Bool (false ))
65
- span .SetAttribute (key .New ("key2" ).String ("hello" ))
66
- span .SetAttribute (key .New ("key3" ).Uint64 (123 ))
67
- span .SetAttribute (key .New ("key4" ).Float64 (123.456 ))
68
- span .End ()
69
- }
70
- })
71
- })
72
-
73
- b .Run ("SetAttributes" , func (b * testing.B ) {
74
- traceBenchmark (b , "Benchmark Start With 4 Attributes" , func (b * testing.B , t apitrace.Tracer ) {
75
- ctx := context .Background ()
76
- b .ResetTimer ()
77
- for i := 0 ; i < b .N ; i ++ {
78
- _ , span := t .Start (ctx , "/foo" )
79
- span .SetAttributes (key .New ("key1" ).Bool (false ))
80
- span .SetAttributes (key .New ("key2" ).String ("hello" ))
81
- span .SetAttributes (key .New ("key3" ).Uint64 (123 ))
82
- span .SetAttributes (key .New ("key4" ).Float64 (123.456 ))
83
- span .End ()
84
- }
85
- })
86
- })
87
- }
88
-
89
56
func BenchmarkSpanWithAttributes_8 (b * testing.B ) {
90
57
traceBenchmark (b , "Benchmark Start With 8 Attributes" , func (b * testing.B , t apitrace.Tracer ) {
91
58
ctx := context .Background ()
0 commit comments