Skip to content

Commit

Permalink
Add benchmark scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Dec 3, 2024
1 parent 9e39ec4 commit f890f96
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/run_benchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

START=874000
END=874009
NET=mainnet
LAPS=100

output="block-$START-$END-$NET.jsonl"

cargo run --release --features benchmark,structured_logging bench-block-range $START $END $NET $LAPS | tee "native-$output"

cargo run --release --features benchmark,structured_logging,only_cairo_vm bench-block-range $START $END $NET $LAPS | tee "vm-$output"
12 changes: 12 additions & 0 deletions scripts/run_tx_benchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

TX=0x01e06dfbd41e559ee5edd313ab95605331873a5aed09bf1c7312456b7aa2a1c7
BLOCK=291652
LAPS=10000
NET=testnet

output="tx-$TX-$NET.jsonl"

cargo run --release --features benchmark,structured_logging bench-tx $TX $NET $BLOCK $LAPS | tee "native-$output"

cargo run --release --features benchmark,structured_logging,only_cairo_vm bench-tx $TX $NET $BLOCK $LAPS | tee "vm-$output"

0 comments on commit f890f96

Please sign in to comment.