From a635afe6fc4b1e4464940c5805b52bce48cb2e9d Mon Sep 17 00:00:00 2001
From: Jake Goulding <jake.goulding@gmail.com>
Date: Thu, 17 Oct 2024 14:33:34 -0400
Subject: [PATCH] Tweaks to get benchmarking running again after renaming

---
 comparison/benchmark.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/comparison/benchmark.sh b/comparison/benchmark.sh
index 145cabbcd..af793ef55 100755
--- a/comparison/benchmark.sh
+++ b/comparison/benchmark.sh
@@ -11,7 +11,9 @@ function capture() {
 
     raw_data="${temp_dir}/raw-data.streaming-json"
 
-    cargo criterion -p compare --message-format=json -- "${subset}" > "${raw_data}"
+    echo "Benchmarking with $(rustc --version)"
+
+    cargo criterion -p comparison --message-format=json -- "${subset}" > "${raw_data}"
 
     echo "Raw benchmark data captured to ${raw_data}"
     echo "Next, run \`${SCRIPT_INVOKED_AS} analyze ${raw_data}\`"
@@ -50,7 +52,8 @@ case "${mode}" in
         ;;
 
     *)
-        echo "Unknown command '${mode}'"
+        echo "Unknown command '${mode}'" >&2
+        echo "Known commands: capture, analyze" >&2
         exit 1
         ;;
 esac