rm unused benches/bench.sh script

This commit is contained in:
Noah Hellman 2023-02-12 12:51:59 +01:00
parent 0fa0f8fd5b
commit be63583257
2 changed files with 0 additions and 20 deletions

View file

@ -13,7 +13,6 @@ documentation = "https://docs.rs/jotdown"
exclude = [ exclude = [
".gitmodules", ".gitmodules",
"Makefile", "Makefile",
"benches",
"modules", "modules",
"tests", "tests",
] ]

View file

@ -1,19 +0,0 @@
#!/bin/sh
cmd=$*
test_html=$(echo "abc" | $cmd | tr -d ' \n')
[ "$test_html" != "<p>abc</p>" ] && echo "failed simple gen: '$test_html'" && exit 1
for f in *.dj; do
tmp=$(mktemp)
for i in $(seq 500); do
cat "$f" >> $tmp
done
t=$(cat "$tmp" \
| (LANG=C time -p $cmd > /dev/null) 2>&1 \
| grep real \
| awk '{print $2}')
printf "$t\t$f\n"
rm -f "$tmp"
done | sort -rn