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
@@ -324,14 +324,12 @@ bench-download os hypervisor cpu tag="":
324
324
tar -zxvf target/benchmarks_{{os}}_{{ hypervisor }}_{{ cpu }}.tar.gz -C target/criterion/ --strip-components=1
325
325
326
326
# Warning: compares to and then OVERWRITES the given baseline
327
-
bench-cibaselinetarget="release"features="":
328
-
@# Benchmarks should only be run with release builds for meaningful results
329
-
@if [ "{{ target }}"!="release" ]; then echo "Error: Benchmarks can only be run with release builds. Use 'just bench-ci <baseline> release' instead."; exit 1; fi
327
+
bench-cibaselinefeatures="":
328
+
@# Benchmarks are always run with release builds for meaningful results
330
329
cargo bench --profile=release {{if features =="" {''} else { "--features "+ features } }} -- --verbose --save-baseline {{ baseline }}
331
330
332
-
benchtarget="release"features="":
333
-
@# Benchmarks should only be run with release builds for meaningful results
334
-
@if [ "{{ target }}"!="release" ]; then echo "Error: Benchmarks can only be run with release builds. Use 'just bench release' instead."; exit 1; fi
331
+
benchfeatures="":
332
+
@# Benchmarks are always run with release builds for meaningful results
335
333
cargo bench --profile=release {{if features =="" {''} else { "--features "+ features } }} -- --verbose
0 commit comments