Skip to content

Commit

Permalink
Update lib/go/test/tests/string_parse_allocation_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yuxuan 'fishy' Wang <fishywang@gmail.com>
  • Loading branch information
k-walton and fishy committed Mar 18, 2024
1 parent c3c7916 commit 9bbe19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/go/test/tests/string_parse_allocation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestSimpleJsonStringParse_Allocations(t *testing.T) {
byteAllocationLimit := 100 * 1024 // 100 KB
res := testing.Benchmark(BenchmarkSimpleJsonStringParse_Allocations)
if res.AllocedBytesPerOp() > int64(byteAllocationLimit) {
t.Errorf("Total memory allocation size too high: %d", res.AllocedBytesPerOp())
t.Errorf("Total memory allocation size too high: %d (> %d)", res.AllocedBytesPerOp(), byteAllocationLimit)
}
}

Expand Down

0 comments on commit 9bbe19a

Please sign in to comment.