Skip to content

Instantly share code, notes, and snippets.

@imylomylo
Created June 25, 2020 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imylomylo/9f3d69c7cec36bc9f8e58f0b29a18e3c to your computer and use it in GitHub Desktop.
Save imylomylo/9f3d69c7cec36bc9f8e58f0b29a18e3c to your computer and use it in GitHub Desktop.
nn benchmark
#!/bin/bash
UTXO_TX=$(time (~/komodo/src/komodo-cli listunspent | jq '. | { "utxos" : length }' && ~/komodo/src/komodo-cli getwalletinfo | jq '{ "txcount" : .txcount }') | jq -s add)
CPU_MODEL=$(cat /proc/cpuinfo | grep -m 1 "model name" | awk -F ':' '{print $2}')
MEM=$(free | grep Mem | awk '{print $2}')
SWAP=$(free | grep Swap | awk '{print $2}')
PROCESSES=$(ps aux | wc -l)
HDD_RW=$(sudo hdparm -Tt --direct /dev/nvme0n1 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment