Skip to content

Instantly share code, notes, and snippets.

@anuragpeshne
Created October 6, 2017 13:46
Show Gist options
  • Save anuragpeshne/1ef9f6c2f42a9fd6f1c7e23aea9196df to your computer and use it in GitHub Desktop.
Save anuragpeshne/1ef9f6c2f42a9fd6f1c7e23aea9196df to your computer and use it in GitHub Desktop.
shell script to benchmark, can be generalized
#! /bin/bash
declare -a topologies=("full" "2D" "line" "imp2D")
for node_num in `seq 100 100 2000`; do
printf "$node_num, "
for topo in "${topologies[@]}"; do
result="$(./project2 $node_num $topo gossip)"
printf "$result, "
sleep 2
done
printf "\n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment