-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from ajfAfg/write-readme-of-benchmark
Write README about the benchmark
- Loading branch information
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
21 changes: 12 additions & 9 deletions
21
...easure_execution_time_of_function_that_solve_optimal_supervision_tree/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
measure_execution_time_of_function_that_solve_optimal_supervision_tree | ||
===== | ||
# Benchmark to measure the execution time of the function to solve an optimal supervision tree | ||
|
||
An escript | ||
Benchmark to verify that the proposed algorithm is fast enough for many realistic cases. In the experiment, a randomly generated graph is input to the proposed algorithm and the execution time is measured. The number of vertices and edges are varied, with the number of vertices varying from 10, 20, ..., 70, and the number of edges is 1, 2, or 3 times the number of vertices. 100 trials are performed for each variable combination. | ||
|
||
Build | ||
----- | ||
The benchmark is run as follows: | ||
|
||
$ rebar3 escriptize | ||
```sh | ||
./benchmark | ||
``` | ||
|
||
Run | ||
--- | ||
The benchmark program outputs a CSV file that records the number of vertices and edges and the execution time. The experimental results can be converted to a figure as follows: | ||
|
||
$ _build/default/bin/measure_execution_time_of_function_that_solve_optimal_supervision_tree | ||
```sh | ||
python3 generate_figure.py | ||
``` | ||
|
||
The figure also displays the median time for each number of vertices. |