Handle grep failure in benchmark

This commit is contained in:
thePR0M3TH3AN
2025-05-20 13:32:51 -04:00
parent c59fcc8c5c
commit ef2c77cf6c
5 changed files with 30 additions and 3 deletions

2
bench/dirty-vs-full.sh Executable file → Normal file
View File

@@ -82,7 +82,7 @@ echo "Results written to bench/dirty-vs-full.md"
# slower full-scan is relative to dirty-scan (baseline = 1.00).
SPEEDUP=$(grep '\`full-scan\`' bench/dirty-vs-full.md \
| awk -F'|' '{print $5}' \
| xargs)
| xargs || echo "N/A")
echo
echo "→ Summary:"