From 55a5dd815400093819798824456e6f97bb351496 Mon Sep 17 00:00:00 2001 From: Einar Rasmussen Date: Fri, 15 Nov 2024 16:34:51 +0100 Subject: [PATCH] test batching --- test_batching.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 test_batching.sh diff --git a/test_batching.sh b/test_batching.sh new file mode 100755 index 000000000..26a06985d --- /dev/null +++ b/test_batching.sh @@ -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