diff options
| author | chenzizhan <[email protected]> | 2023-11-24 19:20:07 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-11-24 19:20:07 +0800 |
| commit | 89d86cd271cde803734cb3d7874aa3b8eba3c4d8 (patch) | |
| tree | 5b76e02a22c867093a8453554c334fe26b29769f /test/test_merge.cpp | |
| parent | 04d5d38bf1d1c9c77967cc9f4dac905a45edfc38 (diff) | |
only high64 is better
Diffstat (limited to 'test/test_merge.cpp')
| -rw-r--r-- | test/test_merge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_merge.cpp b/test/test_merge.cpp index 2ac7e32..465cf18 100644 --- a/test/test_merge.cpp +++ b/test/test_merge.cpp @@ -434,7 +434,7 @@ TEST(unit_test_merge, merge_accuracy_test_gen_dest_full_all_inserted_given_src_f flows_in_dest.insert(flows_in_dest.end(), std::make_move_iterator(flows_in_src.begin()), std::make_move_iterator(flows_in_src.end())); double accuracy = test_cal_accuracy_given_expected_key(flows_in_dest, flows_in_merged); - EXPECT_TRUE(accuracy > 0.99); // should be 1.0 + EXPECT_GT(accuracy, 0.99); // should be 1.0 fieldstat_free(instance_src); fieldstat_free(instance_dest); @@ -466,7 +466,7 @@ TEST(unit_test_merge, merge_accuracy_test_gen_dest_full_some_inserted_and_some_m flows_in_dest.insert(flows_in_dest.end(), std::make_move_iterator(flows_in_src.begin()), std::make_move_iterator(flows_in_src.end())); double accuracy = test_cal_accuracy_given_expected_key(flows_in_dest, flows_in_merged); - EXPECT_TRUE(accuracy >= 0.93); // by heavy keeper benchmark, with K = 100, merging result should be about 0.96, for adding the flows will also cause some inaccuracy, so here we set 0.93 + EXPECT_GE(accuracy, 0.93); // by heavy keeper benchmark, with K = 100, merging result should be about 0.96, for adding the flows will also cause some inaccuracy, so here we set 0.93 printf("merge_accuracy_test_gen_dest_full_some_inserted_and_some_merged_and_some_fail_to_add accuracy is %lf\n", accuracy); fieldstat_free(instance_src); |
