@@ -336,15 +336,15 @@ jobs:
336336 echo "Checking out $BASELINE_REF..."
337337 git checkout "$BASELINE_REF"
338338
339- # Check if bench_throughput binary is defined in Cargo.toml
340- if ! grep -q 'name = "bench_throughput "' Cargo.toml 2>/dev/null; then
339+ # Check if bench-throughput binary is defined in Cargo.toml
340+ if ! grep -q 'name = "bench-throughput "' Cargo.toml 2>/dev/null; then
341341 echo "exists=false" >> $GITHUB_OUTPUT
342- echo "❌ Benchmark tool 'bench_throughput ' not found in $BASELINE_REF"
342+ echo "❌ Benchmark tool 'bench-throughput ' not found in $BASELINE_REF"
343343 exit 0
344344 fi
345345
346346 # Check if the source file exists
347- if ! grep -A 2 'name = "bench_throughput "' Cargo.toml | grep -q 'path.*='; then
347+ if ! grep -A 2 'name = "bench-throughput "' Cargo.toml | grep -q 'path.*='; then
348348 echo "exists=false" >> $GITHUB_OUTPUT
349349 echo "❌ Benchmark tool source file not found in $BASELINE_REF"
350350 exit 0
@@ -362,15 +362,15 @@ jobs:
362362 echo "Checking out $CURRENT_REF..."
363363 git checkout "$CURRENT_REF"
364364
365- # Check if bench_throughput binary is defined in Cargo.toml
366- if ! grep -q 'name = "bench_throughput "' Cargo.toml 2>/dev/null; then
365+ # Check if bench-throughput binary is defined in Cargo.toml
366+ if ! grep -q 'name = "bench-throughput "' Cargo.toml 2>/dev/null; then
367367 echo "exists=false" >> $GITHUB_OUTPUT
368- echo "❌ Benchmark tool 'bench_throughput ' not found in $CURRENT_REF"
368+ echo "❌ Benchmark tool 'bench-throughput ' not found in $CURRENT_REF"
369369 exit 0
370370 fi
371371
372372 # Check if the source file exists
373- if ! grep -A 2 'name = "bench_throughput "' Cargo.toml | grep -q 'path.*='; then
373+ if ! grep -A 2 'name = "bench-throughput "' Cargo.toml | grep -q 'path.*='; then
374374 echo "exists=false" >> $GITHUB_OUTPUT
375375 echo "❌ Benchmark tool source file not found in $CURRENT_REF"
376376 exit 0
@@ -390,7 +390,7 @@ jobs:
390390 const current_exists = '${{ steps.check_current_tool.outputs.exists }}' === 'true';
391391
392392 let message = '❌ **Benchmark comparison failed**\n\n';
393- message += '**Reason**: The benchmark tool (`bench_throughput `) does not exist in ';
393+ message += '**Reason**: The benchmark tool (`bench-throughput `) does not exist in ';
394394
395395 if (!baseline_exists && !current_exists) {
396396 message += `both refs:\n- \`${baseline_ref}\` (baseline/older)\n- \`${current_ref}\` (current/newer)`;
@@ -429,16 +429,15 @@ jobs:
429429 git checkout "$BASELINE_REF"
430430
431431 echo "Building benchmark tool..."
432- if ! cargo build --release --bin bench_throughput 2>&1 | tee build_baseline.log; then
432+ if ! cargo build --release --bin bench-throughput 2>&1 | tee build_baseline.log; then
433433 echo "❌ Failed to build benchmark tool for $BASELINE_REF"
434434 exit 1
435435 fi
436436
437437 echo "Running benchmarks on baseline..."
438- ./target/release/bench_throughput \
438+ ./target/release/bench-throughput \
439439 --sizes "$SIZES" \
440440 --iterations "$ITERATIONS" \
441- --format json \
442441 --output benchmark_baseline.json
443442
444443 - name : Benchmark current (newer commit)
@@ -454,16 +453,15 @@ jobs:
454453
455454 # Rebuild in case dependencies changed
456455 echo "Building benchmark tool..."
457- if ! cargo build --release --bin bench_throughput 2>&1 | tee build_current.log; then
456+ if ! cargo build --release --bin bench-throughput 2>&1 | tee build_current.log; then
458457 echo "❌ Failed to build benchmark tool for $CURRENT_REF"
459458 exit 1
460459 fi
461460
462461 echo "Running benchmarks on current..."
463- ./target/release/bench_throughput \
462+ ./target/release/bench-throughput \
464463 --sizes "$SIZES" \
465464 --iterations "$ITERATIONS" \
466- --format json \
467465 --output benchmark_current.json
468466
469467 - name : Compare results
0 commit comments