Skip to content

Instantly share code, notes, and snippets.

@delta1
Last active September 11, 2020 09:47
Show Gist options
  • Save delta1/8e6fa5c2855054eda5fc2ec44266780f to your computer and use it in GitHub Desktop.
Save delta1/8e6fa5c2855054eda5fc2ec44266780f to your computer and use it in GitHub Desktop.
Tari stress test log script
#!/bin/zsh
# you need RipGrep installed `brew install ripgrep`
# run this script in your Tari base node log directory (normall ~/.tari/log) - you might need to make it executable first `chmod +x script.zsh`
# make sure to remove log entries outside of the date/times you're searching for...
# -------------------------------- Receiver --------------------------------
echo Transaction Replies queued with Message
rg -iu "^.*?(?:\b|_)Transaction Reply(?:\b|_).*?(?:\b|_)queued with Message(?:\b|_).*?$" ./base_layer*.log | wc -l
# -------------------------------- Receiver --------------------------------
echo Finalized Transaction received
rg -iu "^.*?(?:\b|_)Finalized Transaction with(?:\b|_).*?(?:\b|_)received from(?:\b|_).*?$" ./base_layer*.log | wc -l
# -------------------------------- Sender & Receiver --------------------------------
echo Completed Transaction detected as Broadcast to Base Node Mempool in UnconfirmedPool
rg -iu "^.*?(?:\b|_)Completed Transaction(?:\b|_).*?(?:\b|_)detected as Broadcast to Base Node Mempool in UnconfirmedPool(?:\b|_).*?$" ./base_layer*.log | wc -l
# -------------------------------- Sender & Receiver --------------------------------
echo Transaction detected as mined on the Base Layer
rg -iu "^.*?(?:\b|_)Transaction(?:\b|_).*?(?:\b|_)detected as mined on the Base Layer(?:\b|_).*?$" ./base_layer*.log | wc -l
@delta1
Copy link
Author

delta1 commented Sep 11, 2020

Transaction Replies queued with Message
    3060
Finalized Transaction received
    3014
Completed Transaction detected as Broadcast to Base Node Mempool in UnconfirmedPool
    2817
Transaction detected as mined on the Base Layer
    1769

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment