Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write README about the benchmark #43

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.