Skip to content

Commit 873b1bc

Browse files
algoriddlefacebook-github-bot
authored andcommitted
fix perf test (facebookresearch#3253)
Summary: Pull Request resolved: facebookresearch#3253 relaxing thresholds + allow equal, duh Reviewed By: mlomeli1 Differential Revision: D53803000 fbshipit-source-id: 7b68386523d9a44a0cd8e099fc1d72b3ed7d5e43
1 parent 6d00c41 commit 873b1bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_fastscan_perf.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ TEST(TestFastScan, knnVSrange) {
6464
.count();
6565

6666
// we expect the perf of knn and range search
67-
// to be similar, at least within a factor of 2
68-
ASSERT_LT(range_time, knn_time * 2);
69-
ASSERT_LT(knn_time, range_time * 2);
67+
// to be similar, at least within a factor of 4
68+
ASSERT_LE(range_time, knn_time * 4);
69+
ASSERT_LE(knn_time, range_time * 4);
7070
}

0 commit comments

Comments
 (0)