-
Notifications
You must be signed in to change notification settings - Fork 15
/
run_benchmarks.sh
executable file
·53 lines (44 loc) · 1.49 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -e
# Make sure that the build is fresh
ninja > /dev/null
# Nuke all images
rm -rf *.png
# Print useful information
echo -n "Running benchmarks "
date
whoami
uname
hostname
echo "------------------------------------------------------------"
git rev-parse HEAD
git --no-pager diff | cat
echo "============================================================"
echo " 2D benchmarks "
echo "============================================================"
echo "Text benchmark"
./benchmark/render_2d_table ../benchmark/files/prospero.frep
mkdir -p prospero
mv *.png prospero
echo "------------------------------------------------------------"
echo "Gears (2D)"
./benchmark/render_2d_table ../benchmark/files/involute_gear_2d.frep
mkdir -p gears_2d
mv *.png gears_2d
echo "============================================================"
echo " 3D benchmarks "
echo "============================================================"
echo "Architecture model"
./benchmark/render_3d_table ../benchmark/files/architecture.frep
mkdir -p architecture
mv *.png architecture
echo "------------------------------------------------------------"
echo "Gears (3D)"
./benchmark/render_3d_table ../benchmark/files/involute_gear_3d.frep
mkdir -p gears_3d
mv *.png gears_3d
echo "------------------------------------------------------------"
echo "Bear sculpt"
./benchmark/render_3d_table ../benchmark/files/bear.frep
mkdir -p bear
mv *.png bear