diff options
| author | Andreas Kapp Lindquist <andkaplin05@gmail.com> | 2025-10-28 15:09:38 +0100 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | e6d6a140643fcaa23f416044bb151f75156af621 (patch) | |
| tree | 11dc29ea468079e378093700b5867b5c6ad16662 | |
| parent | 541874c7d91013cda51edf12334890305b3988d5 (diff) | |
| download | sorter-e6d6a140643fcaa23f416044bb151f75156af621.tar.gz sorter-e6d6a140643fcaa23f416044bb151f75156af621.zip | |
test(benchmark.sh): Simplified usage of perf stat
Diffstat (limited to '')
| -rwxr-xr-x | test/benchmark.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/benchmark.sh b/test/benchmark.sh index b8bc156..9d98861 100755 --- a/test/benchmark.sh +++ b/test/benchmark.sh @@ -14,7 +14,7 @@ for TEST_FILE in "$DATA_DIR"/*; do echo "Benchmarking $FILE_NAME using $ALGORITHM ..." - time=$(perf stat -e task-clock $SORTER -a "$ALGORITHM" "$TEST_FILE" >/dev/null 2> perf_out.txt) + perf stat -e task-clock $SORTER -a "$ALGORITHM" "$TEST_FILE" >/dev/null 2> perf_out.txt elapsed=$(grep "seconds time elapsed" perf_out.txt | awk '{print $1}') # Remove prefix and suffix |