This commit is contained in:
Joel Wetzell
2026-05-20 22:28:05 -05:00
parent cf41bcae85
commit fb3c775765
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ func BenchmarkJsonDecode(b *testing.B) {
count := 0
for b.Loop() {
_, err := processorInstance.Process(b.Context(), common.WrappedPayload{Payload: []byte(fmt.Sprintf("{\"key\":%d}", count))})
_, err := processorInstance.Process(b.Context(), common.WrappedPayload{Payload: fmt.Appendf(nil, "{\"key\":%d}", count)})
if err != nil {
b.Fatalf("json.decode processing failed: %s", err)
}