Skip to content

Commit

Permalink
tweak benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeGoldsmith committed Nov 28, 2023
1 parent 051636a commit 6204d49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions beeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,21 @@ func BenchmarkCreateSpan(b *testing.B) {
}
}

func BenchmarkBeelineAddField(b *testing.B) {
func BenchmarkBeelineAddField_PrefixedKey(b *testing.B) {
setupLibhoney(b)

ctx, _ := StartSpan(context.Background(), "parent")
for n := 0; n < b.N; n++ {
AddField(ctx, "foo", 1)
AddField(ctx, "app.foo", 1)
}
}

func BenchmarkBeelineAddField_WithPrefix(b *testing.B) {
func BenchmarkBeelineAddField_ConsistentKey(b *testing.B) {
setupLibhoney(b)

ctx, _ := StartSpan(context.Background(), "parent")
for n := 0; n < b.N; n++ {
AddField(ctx, "app.foo", 1)
AddField(ctx, "foo", 1)
}
}

Expand Down

0 comments on commit 6204d49

Please sign in to comment.