[BENCH] Benchmark BFS traversal #151
Labels
good first issue
Good for newcomers
hacktoberfest
help wanted
Extra attention is needed
no-issue-activity
performance
Benchmarks or performance improvements
Benchmark BFS traversal
The goal of this issues is to add a benchmark for the
BFS traversal
algorithm. The algorithm implementation is located underinclude/graaflib/algorithm/graph_traversal/breadth_first_search.h
. Benchmarks are vital to our library and allow us to measure the impact of future performance improvements.We use the Google benchmark framework. For inspiration, please take a look at the existing benchmarks in
/perf
.The benchmark should be added under
/perf
in a directory which resembles the file structure of the original algorithm. i.e. if the algorithm is implemented ininclude/graaflib/algorithm/coloring/greedy_graph_coloring.h
then the benchmark should be added toperf/graaflib/algorithm/coloring/greedy_graph_coloring_benchmark.cpp
.The benchmark should measure the runtime performance of the algorithm for increasing input sizes.
Running Benchmarks
If you IDE has the necessary integrations for it, all benchmarks can be run in the IDE from the
perf/graaflib/benchmark.cpp
file.Otherwise, we can run the benchmarks from the command line:
To run an individual benchmark:
For more options, pass the
--help
flag.Definition of Done
The text was updated successfully, but these errors were encountered: