Skip to content

Commit

Permalink
sparse: reduce ut execution time (#1041)
Browse files Browse the repository at this point in the history
Reduce ut execution time, which is from 532.62 secs to 46.50 secs on my
machine.

Signed-off-by: Shawn Wang <[email protected]>
  • Loading branch information
sparknack authored Jan 20, 2025
1 parent 7dc867d commit 0aa91b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ut/test_sparse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TEST_CASE("Test Mem Sparse Index With Float Vector", "[float metrics]") {
// 300 dim, avg doc nnz 9, avg query nnz 3
{2000, 300, 0.97, 0.99},
// 3000 dim, avg doc nnz 90, avg query nnz 30
{20000, 3000, 0.97, 0.99},
{2000, 3000, 0.97, 0.99},
}));
auto topk = 5;
int64_t nq = 10;
Expand Down Expand Up @@ -510,7 +510,7 @@ TEST_CASE("Test Mem Sparse Index CC", "[float metrics]") {
}
};

auto test_time = 10;
auto test_time = 2;

using std::make_tuple;
auto [name, gen] = GENERATE_REF(table<std::string, std::function<knowhere::Json()>>({
Expand Down

0 comments on commit 0aa91b4

Please sign in to comment.