Skip to content

Commit

Permalink
Simplify code to generate benchmark input data
Browse files Browse the repository at this point in the history
  • Loading branch information
qsantos committed Jun 21, 2024
1 parent 76b6247 commit 4bcabfc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bench
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ cargo build --release
repeat() {
local count=$1
local file=$2
local args8=($file $file $file $file $file $file $file $file)
local args64=("${args8[@]}" "${args8[@]}" "${args8[@]}" "${args8[@]}" "${args8[@]}" "${args8[@]}" "${args8[@]}" "${args8[@]}")
for (( i = 0; i < $count; i++ )); do
cat "${args64[@]}"
done
yes "$file" | head -n $(( $count * 64 )) | xargs cat
}
echo "No-op"
repeat 1000 4-unicode.txt | pv >/dev/null
Expand Down

0 comments on commit 4bcabfc

Please sign in to comment.