From 7a28ce25a69d3177879d134b87eeff5f754638b5 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Sat, 5 Dec 2020 15:20:27 +0100 Subject: Remove shell overhead for benchmarking --- prepare | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'prepare') diff --git a/prepare b/prepare index b49cbbc..5595107 100755 --- a/prepare +++ b/prepare @@ -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" -- cgit v1.2.3