Skip to content

Commit

Permalink
Remove obsolete test.
Browse files Browse the repository at this point in the history
  • Loading branch information
akrennmair committed Oct 26, 2023
1 parent 340ebc8 commit 9e38281
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,48 +412,3 @@ func runBenchmarkQuery(b *testing.B, idx *Index) {
require.NoError(b, err)
}
}

/*
func BenchmarkQueryCustomers(b *testing.B) {
f, err := os.Open("testdata/out.updog")
if err != nil {
b.Skipf("failed to open test file")
}
idx, err := NewIndexFromReader(f)
require.NoError(b, err)
countries := []string{
"Eritrea",
"Germany",
"American Samoa",
"Mozambique",
"Panama",
"Mauritania",
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
q := &Query{
Expr: &ExprOr{
Exprs: []Expression{
&ExprEqual{
Column: "Country",
Value: countries[i%len(countries)],
},
&ExprEqual{
Column: "Country",
Value: countries[(i*(i-1))%len(countries)],
},
},
},
}
_, err := q.Execute(idx)
require.NoError(b, err)
}
}
*/

0 comments on commit 9e38281

Please sign in to comment.