forked from lac-dcc/elixir-pbbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_benchmarks.sh
executable file
·35 lines (23 loc) · 1.56 KB
/
run_benchmarks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
docker build . -t elixir-pbbs
image_id=$(docker images | awk '{print $3}' | awk 'NR==2')
container_id=$(docker run -d -it "$image_id" /bin/bash)
echo "Container id: $container_id"
docker exec -it "$container_id" sh -c "mix benchmark -a histogram"
docker cp "$container_id":/app/output_histogram.csv experiments_results/output_histogram.csv
docker exec -it "$container_id" sh -c "mix benchmark -a remove_duplicates"
docker cp "$container_id":/app/output_ddup.csv experiments_results/output_ddup.csv
docker exec -it "$container_id" sh -c "mix benchmark -a word_count"
docker cp "$container_id":/app/output_wc.csv experiments_results/output_wc.csv
docker exec -it "$container_id" sh -c "mix benchmark -a ray_cast"
docker cp "$container_id":/app/output_ray_cast.csv experiments_results/output_ray_cast.csv
docker exec -it "$container_id" sh -c "mix benchmark -a convex_hull"
docker cp "$container_id":/app/output_convex_hull.csv experiments_results/output_convex_hull.csv
docker exec -it "$container_id" sh -c "mix benchmark -a suffix_array"
docker cp "$container_id":/app/output_suffix_array.csv experiments_results/output_suffix_array.csv
docker exec -it "$container_id" sh -c "mix benchmark -a integer_sort"
docker cp "$container_id":/app/output_integer_sort.csv experiments_results/output_integer_sort.csv
docker exec -it "$container_id" sh -c "mix benchmark -a comparison_sort"
docker cp "$container_id":/app/output_comparison_sort.csv experiments_results/output_comparison_sort.csv
echo "Experiments done, killing container $container_id..."
docker kill "$container_id"