mirror of
https://github.com/uutils/sed.git
synced 2026-06-10 16:14:15 -07:00
Have benchmarked output go to a file
This is more realistic and allows to benchmark copy_file_range(2) performance.
This commit is contained in:
+2
-2
@@ -22,7 +22,7 @@ SCRIPTS=tests/fixtures/sed/script
|
||||
# Run hyperfine with the specified name and command and collect the results.
|
||||
bench_run()
|
||||
{
|
||||
if hyperfine --command-name "$1" --warmup 2 --export-csv out.csv "$2" ; then
|
||||
if hyperfine --command-name "$1" --warmup 2 --export-csv out.csv --output ./out.txt "$2" ; then
|
||||
# Output the results sans-heading.
|
||||
sed 1d out.csv >>"$OUT"
|
||||
else
|
||||
@@ -30,7 +30,7 @@ bench_run()
|
||||
echo "$1,,,,,,," >>"$OUT"
|
||||
fi
|
||||
|
||||
rm out.csv
|
||||
rm out.csv out.txt
|
||||
}
|
||||
|
||||
# Shared heading
|
||||
|
||||
Reference in New Issue
Block a user