diff options
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 |