diff options
author | Aria Shrimpton <me@aria.rip> | 2024-03-07 20:04:50 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-03-07 20:04:50 +0000 |
commit | edea4fe292ebb2cbeaa2f53d6eabd09ec879fe7c (patch) | |
tree | dfa90edb48e3995c9318b99ea3666f470e8f506b /src/Justfile | |
parent | ec9b164e0ff3ef323958b45cb6046e25b3d865bd (diff) |
separate benchmarks into different jobs and stuff
Diffstat (limited to 'src/Justfile')
-rw-r--r-- | src/Justfile | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/Justfile b/src/Justfile index a96a779..855bd5a 100644 --- a/src/Justfile +++ b/src/Justfile @@ -7,26 +7,29 @@ impls := "std::collections::BTreeSet primrose_library::LazySortedVec std::collec proj := "std::vec::Vec std::collections::LinkedList" export RUST_LOG := "debug" -run-all-tests: - which candelabra-cli 2>/dev/null || cargo build +cost-models: rebuild rm -fr {{target_dir}}/candelabra + @IMPLS=`{{candelabra}} list-library 2>&1 | cut -d ']' -f 2 | grep ::`; for impl in $IMPLS; do just cost-model $impl; done + +selections *SELECTFLAGS: rebuild rm -fr {{tests_dir}}/target/criterion - echo "Candelabra Path: {{candelabra}}" + @cd tests/ && for i in $(ls -d */); do [ "${i%%/}" == "target" ] || just select ${i%%/} {{SELECTFLAGS}}; done - @IMPLS=`{{candelabra}} list-library 2>&1 | cut -d ']' -f 2 | grep ::`; for impl in $IMPLS; do just cost-model $impl; done - @cd tests/ && for i in $(ls -d */); do [ "${i%%/}" == "target" ] || just select ${i%%/}; done +rebuild: + which candelabra-cli 2>/dev/null || cargo build + echo "Candelabra Path: {{candelabra}}" cost-model impl: (section-start ("cost-model-" + impl)) && (section-end ("cost-model-" + impl)) {{candelabra}} -l cost-model {{impl}} -select proj: (section-start ("compare-" + proj)) && (section-end ("compare-" + proj)) - {{candelabra}} -l --manifest-path {{tests_manifest}} -p {{proj}} select - -compare proj: (section-start ("compare-" + proj)) && (section-end ("compare-" + proj)) - {{candelabra}} -l --manifest-path {{tests_manifest}} -p {{proj}} select --compare +select proj *FLAGS: (section-start ("compare-" + proj)) && (section-end ("compare-" + proj)) + {{candelabra}} -l --manifest-path {{tests_manifest}} -p {{proj}} select {{FLAGS}} @section-start NAME: echo -e "\e[0Ksection_start:`date +%s`:{{replace(NAME, ":", "-")}}\r\e[0K{{replace(NAME, ":", "-")}}" @section-end NAME: echo -e "\e[0Ksection_end:`date +%s`:{{replace(NAME, ":", "-")}}\r\e[0K" + +brief-tests *SELECTFLAGS: cost-models (selections SELECTFLAGS) +all-tests: (brief-tests --compare) |