Skip to content

Commit

Permalink
Interleaved comparing test
Browse files Browse the repository at this point in the history
  • Loading branch information
bazhenov committed Nov 29, 2023
1 parent 092f5f2 commit 33e3158
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions scripts/interleaved.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -eo pipefail

CRITERION=./target/criterion.txt
TANGO=./target/tango.txt


cargo export ./target/benchmarks -- bench --bench=criterion
cargo export target/benchmarks -- bench --bench='tango-*'

while :
do
date

./target/benchmarks/criterion --bench str_length_495 \
--warm-up-time 1 --measurement-time 1 | tee -a "${CRITERION}"
./target/benchmarks/criterion --bench str_length_500 \
--warm-up-time 1 --measurement-time 1 | tee -a "${CRITERION}"

./target/benchmarks/tango_faster compare ./target/benchmarks/tango_slower \
-t 1000 -o -f 'str_length_limit' | tee -a "${TANGO}"

echo "Sleeping..."
sleep 60
done
2 changes: 1 addition & 1 deletion scripts/tango.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cargo export target/benchmarks -- bench --bench='tango-*'
time (
for i in {1..30}; do
./target/benchmarks/tango_faster compare ./target/benchmarks/tango_slower \
-t 1000 -f 'str_length_limit' >> "${FILE}"
-t 1000 -o -f 'str_length_limit' >> "${FILE}"
done
)

Expand Down

0 comments on commit 33e3158

Please sign in to comment.