Skip to content

Commit 5c4c1b6

Browse files
committed
benchmark with s2 demo
1 parent 67ecfa4 commit 5c4c1b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/demoinfocs/demoinfocs_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func TestConcurrent(t *testing.T) {
493493
func parseDefaultDemo(tb testing.TB) {
494494
tb.Helper()
495495

496-
f := openFile(tb, defaultDemPath)
496+
f := openFile(tb, s2DemPath)
497497
defer mustClose(tb, f)
498498

499499
p := demoinfocs.NewParser(f)
@@ -599,15 +599,15 @@ func BenchmarkDemoInfoCs(b *testing.B) {
599599
}
600600

601601
func BenchmarkInMemory(b *testing.B) {
602-
f := openFile(b, defaultDemPath)
602+
f := openFile(b, s2DemPath)
603603
defer mustClose(b, f)
604604

605605
inf, err := f.Stat()
606-
assert.NoError(b, err, "failed to stat file %q", defaultDemPath)
606+
assert.NoError(b, err, "failed to stat file %q", s2DemPath)
607607

608608
d := make([]byte, inf.Size())
609609
n, err := f.Read(d)
610-
assert.NoError(b, err, "failed to read file %q", defaultDemPath)
610+
assert.NoError(b, err, "failed to read file %q", s2DemPath)
611611
assert.Equal(b, int64(n), inf.Size(), "byte count not as expected")
612612

613613
b.ResetTimer()

0 commit comments

Comments
 (0)