Skip to content

Commit

Permalink
benchmark 得分可能为负数
Browse files Browse the repository at this point in the history
  • Loading branch information
zxffffffff committed Aug 14, 2024
1 parent a20c103 commit ea75c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample-tools-test/benchmark_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TEST(benchmark, once)
double score = Benchmark::Score(use_ms);

std::cout << "benchmark score: " << score << std::endl;
ASSERT_GT(score, 0);
EXPECT_NE(score, 0);
}
}

Expand All @@ -33,5 +33,5 @@ TEST(benchmark, multi_thread)
double score = Benchmark::RunMultiThread(3);

std::cout << "benchmark multi_thread score: " << score << std::endl;
ASSERT_GT(score, 0);
EXPECT_NE(score, 0);
}

0 comments on commit ea75c7f

Please sign in to comment.