Skip to content

Commit

Permalink
test batching
Browse files Browse the repository at this point in the history
  • Loading branch information
einar-polygon committed Nov 15, 2024
1 parent e47731d commit 55a5dd8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test_batching.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -exo

test_batch_size() {
cargo --quiet run --release --bin leader -- --runtime in-memory -b $2 -n 1 --test-only --save-inputs-on-error stdio < $1.witness.json
}

main() {
local NUM_TX=$(expr $(cast block $1 | wc -l) - 10)
for BATCH_SIZE in $(seq $NUM_TX)
do
test_batch_size $1 $BATCH_SIZE
done
}

main 748

0 comments on commit 55a5dd8

Please sign in to comment.