You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove unnecessary target parameter from bench commands
- Remove target parameter from bench and bench-ci commands since they only accept release builds
- Update GitHub workflows to remove target parameter usage
- Simplify command signatures based on @syntactically's feedback
Co-authored-by: syntactically <[email protected]>
Signed-off-by: Simon Davies <[email protected]>
Copy file name to clipboardExpand all lines: Justfile
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -326,14 +326,12 @@ bench-download os hypervisor cpu tag="":
326
326
tar -zxvf target/benchmarks_{{os}}_{{ hypervisor }}_{{ cpu }}.tar.gz -C target/criterion/ --strip-components=1
327
327
328
328
# Warning: compares to and then OVERWRITES the given baseline
329
-
bench-cibaselinetarget="release"features="":
330
-
@# Benchmarks should only be run with release builds for meaningful results
331
-
@if [ "{{ target }}"!="release" ]; then echo "Error: Benchmarks can only be run with release builds. Use 'just bench-ci <baseline> release' instead."; exit 1; fi
329
+
bench-cibaselinefeatures="":
330
+
@# Benchmarks are always run with release builds for meaningful results
332
331
cargo bench --profile=release {{if features =="" {''} else { "--features "+ features } }} -- --verbose --save-baseline {{ baseline }}
333
332
334
-
benchtarget="release"features="":
335
-
@# Benchmarks should only be run with release builds for meaningful results
336
-
@if [ "{{ target }}"!="release" ]; then echo "Error: Benchmarks can only be run with release builds. Use 'just bench release' instead."; exit 1; fi
333
+
benchfeatures="":
334
+
@# Benchmarks are always run with release builds for meaningful results
337
335
cargo bench --profile=release {{if features =="" {''} else { "--features "+ features } }} -- --verbose
0 commit comments