Skip to content

Commit 2bf9c84

Browse files
committed
Better tests, fixing vtproto test compatibility
Signed-off-by: Shivansh Vij <[email protected]>
1 parent ffa0da4 commit 2bf9c84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/benchmarks.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
check-latest: true
1616
cache: true
1717
- name: Run Benchmarks
18-
run: make benchmark
19-
working-directory: benchmarks/vtproto
18+
run: make benchmark-polyglot
19+
working-directory: benchmarks

benchmarks/vtproto_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func BenchmarkDecodeVTProto(b *testing.B) {
252252

253253
b.ResetTimer()
254254
for i := 0; i < b.N; i++ {
255-
vtData.Reset()
255+
vtData.Bytes = nil
256256
err = vtData.UnmarshalVT(vtBuf)
257257
if err != nil {
258258
b.Fatal(err)

0 commit comments

Comments
 (0)