diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-12-05 15:20:27 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-12-05 15:20:27 +0100 |
| commit | 7a28ce25a69d3177879d134b87eeff5f754638b5 (patch) | |
| tree | c6e7418f2d28607a2caf73a81197470ebcc37e7d /prepare | |
| parent | 4f3827b3165ec19abcd9e5a5892cf00c0db893ed (diff) | |
Remove shell overhead for benchmarking
Diffstat (limited to 'prepare')
| -rwxr-xr-x | prepare | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,9 @@ #!/usr/bin/env bash cd $(("$1")) -clang -Wall -pedantic -O3 -march=native -mtune=native -flto -s -static -o "part$2" "part$2.c" +file="part$2.c" +if test -f "part$2_fast.c" +then + file="part$2_fast.c" +fi +clang -Wall -pedantic -O3 -march=native -mtune=native -flto -s -static -o ../run "part$2.c" |
