diff options
author | Martin StensgÄrd <mastensg@users.noreply.github.com> | 2016-11-02 02:22:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-02 02:22:42 +0100 |
commit | 73da8a3ac056cb1c442fc3a24b0148037b180392 (patch) | |
tree | 45ffc7233b8bc234d876cab68b20b0664de35694 /test-profile-arcs.sh | |
parent | 706da965d3c7892ef09b83bdf6120f104faa2ede (diff) | |
parent | c1a4ed37fe2a1e069a9b827d0012cab38984ee8f (diff) |
Merge pull request #1 from mortehu/master
Make a headless entry point for benchmarking purposes
Diffstat (limited to 'test-profile-arcs.sh')
-rwxr-xr-x | test-profile-arcs.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test-profile-arcs.sh b/test-profile-arcs.sh new file mode 100755 index 0000000..e8d390e --- /dev/null +++ b/test-profile-arcs.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -e + +autoreconf -f -i + +echo >&2 "Baseline" +./configure CFLAGS='-O3 -march=native' CC=gcc >/dev/null +make clean >/dev/null +make >/dev/null +./ray-headless + + +echo >&2 "Profiling" +./configure CFLAGS='-O3 -march=native -fprofile-generate' CC=gcc >/dev/null +make clean >/dev/null +make >/dev/null +./ray-headless + +echo >&2 "Using profile" +./configure CFLAGS='-O3 -march=native -fprofile-use -fprofile-correction' CC=gcc >/dev/null +make clean >/dev/null +make >/dev/null +./ray-headless |