Skip to content

Commit

Permalink
changed units in benchmark (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelrahim-hentabli authored Aug 4, 2024
1 parent 26f9318 commit 23ebfc5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/benchmark/include/hierarchy_bench.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void BM_setupHierarchy(benchmark::State &state) {
}
}

BENCHMARK(BM_setupHierarchy);
BENCHMARK(BM_setupHierarchy)->Unit(benchmark::kMillisecond);

class IntersectionCandidatesFixture : public benchmark::Fixture {
public:
Expand Down Expand Up @@ -136,6 +136,7 @@ BENCHMARK_DEFINE_F(IntersectionCandidatesFixture, NominalDirections)

BENCHMARK_REGISTER_F(IntersectionCandidatesFixture, NominalDirections)
->Name("IntersectionCandidatesByDirection")
->DenseRange(0, 5, 1);
->DenseRange(0, 5, 1)
->Unit(benchmark::kMillisecond);

#endif // __BENCHMARK_HIERARCHY_HPP__

0 comments on commit 23ebfc5

Please sign in to comment.