aboutsummaryrefslogtreecommitdiff
path: root/benchmark.sh
diff options
context:
space:
mode:
authorMikkel Thestrup <mithe24@student.sdu.dk>2025-12-05 17:19:56 +0100
committerMikkel Thestrup <mithe24@student.sdu.dk>2025-12-05 17:19:56 +0100
commitd02d9e5018ff177f39b953f5d7f2a5a558a3d81a (patch)
tree36ae9378cf6132ef3f5020f12c85997aa4dc7a8a /benchmark.sh
parent152241c31e5861453f6b1b274924f0091d819fb0 (diff)
downloadcycle-detector-d02d9e5018ff177f39b953f5d7f2a5a558a3d81a.tar.gz
cycle-detector-d02d9e5018ff177f39b953f5d7f2a5a558a3d81a.zip
less ugly benchmark script output
Diffstat (limited to 'benchmark.sh')
-rwxr-xr-xbenchmark.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/benchmark.sh b/benchmark.sh
index 07f91aa..a1d5388 100755
--- a/benchmark.sh
+++ b/benchmark.sh
@@ -4,7 +4,7 @@ PROGRAM="src/detectCycles"
# Build release version
echo "Building release version..."
-make -C src release
+make -C src release -q
if [ ! -f "$PROGRAM" ]; then
echo "Error: Build failed."
@@ -12,17 +12,13 @@ if [ ! -f "$PROGRAM" ]; then
fi
echo "Benchmarking $PROGRAM"
-echo "======================================"
+echo -n "======================================"
# Run benchmark on each test file
time { for TEST_FILE in "$DATA_DIR"/*; do
if [ -f "$TEST_FILE" ]; then
FILENAME=$(basename "$TEST_FILE")
- echo "Testing: $FILENAME"
-
"$PROGRAM" "$TEST_FILE" > /dev/null 2>&1
-
- echo ""
fi
done }