Skip to content

Commit

Permalink
Fix perf script
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Jan 13, 2025
1 parent 7776e3f commit c941aba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extra/perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ cargo build --release
calc(){ awk "BEGIN { print ""$*"" }"; }

echo
echo -n "Test files: $(find "$DIR"/*/* | wc -l) files, "
echo -n "$(wc -l --total=only "$DIR"/source/* "$DIR"/target/*) lines, "
echo -n "Test files: $(find "$DIR"/*/source/* "$DIR"/*/target/* | wc -l) files,"
echo -n " $(wc -l --total=only "$DIR"/*/source/* "$DIR"/*/target/*) lines, "
du -hs "$DIR" | cut -f 1
echo

Expand All @@ -19,7 +19,7 @@ hyperfine --warmup 10 \
--export-csv $TEXFMTFILE \
--command-name "tex-fmt" \
--prepare "cp -r ../tests/* $DIR" \
"../target/release/tex-fmt $DIR/source/* $DIR/target/*"
"../target/release/tex-fmt $DIR/*/source/* $DIR/*/target/*"

# latexindent
LATEXINDENTFILE="hyperfine-latexindent.csv"
Expand All @@ -28,7 +28,7 @@ hyperfine --warmup 0 \
--runs 1 \
--command-name "latexindent" \
--prepare "cp -r ../tests/* $DIR" \
"latexindent $DIR/source/* $DIR/target/*"
"latexindent $DIR/*/source/* $DIR/*/target/*"

# latexindent -m
LATEXINDENTMFILE="hyperfine-latexindent-m.csv"
Expand All @@ -37,7 +37,7 @@ hyperfine --warmup 0 \
--runs 1 \
--command-name "latexindent -m" \
--prepare "cp -r ../tests/* $DIR" \
"latexindent -m $DIR/source/* $DIR/target/*"
"latexindent -m $DIR/*/source/* $DIR/*/target/*"

# print results
TEXFMT=$(cat $TEXFMTFILE | tail -n 1 | cut -d "," -f 2)
Expand Down

0 comments on commit c941aba

Please sign in to comment.