Handle grep failure in benchmark

This commit is contained in:
thePR0M3TH3AN committed 2025-05-20 13:32:51 -04:00
1 parent c59fcc8c5c
commit ef2c77cf6c
5 files changed
+30 -3

No files matched your search

Executable → Regular
+1 -1
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:"