23 lines
2.3 KiB
Bash
Executable file
23 lines
2.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# the lane's propagation runs; output appended to results.md (every line is the simulator's)
|
|
cd /Users/joshm/Projects/igneum-wt-horizon
|
|
P="python3 sim/horizon/network/propagation.py"
|
|
O=sim/horizon/network/results.md
|
|
echo "# propagation.py results, $(date -u +%FT%TZ), Mac, under with-lock run, seed 7" > $O
|
|
echo "" >> $O; echo "## A. Run A replay: star, 41 miners through one hub, measured per-minute production, join spread 360 s" >> $O
|
|
$P --topology star --nodes 41 --bps 10 --k 124 --link 40 --hub-s0 6 --hub-s1 2 --join-spread 360 --schedule sim/horizon/network/runA-schedule.csv --seconds 1500 --out $O
|
|
$P --topology star --nodes 41 --bps 10 --k 124 --link 40 --hub-s0 0 --hub-s1 0 --join-spread 360 --schedule sim/horizon/network/runA-schedule.csv --seconds 1500 --out $O
|
|
$P --topology star --nodes 41 --bps 10 --k 124 --link 40 --hub-s0 6 --hub-s1 2 --join-spread 0 --schedule sim/horizon/network/runA-schedule.csv --seconds 1500 --out $O
|
|
echo "" >> $O; echo "## B. Star against mesh at 10 bps, constant rate, 600 s, link 40 ms" >> $O
|
|
$P --topology star --nodes 41 --bps 10 --k 124 --link 40 --hub-s0 0 --hub-s1 0 --seconds 600 --out $O
|
|
$P --topology star --nodes 41 --bps 10 --k 124 --link 40 --hub-s0 6 --hub-s1 2 --seconds 600 --out $O
|
|
$P --topology mesh --nodes 42 --degree 8 --bps 10 --k 124 --link 40 --seconds 600 --out $O
|
|
$P --topology mesh --nodes 42 --degree 4 --bps 10 --k 124 --link 40 --seconds 600 --out $O
|
|
$P --topology mesh --nodes 42 --degree 8 --bps 10 --k 124 --link 150 --seconds 600 --out $O
|
|
echo "" >> $O; echo "## C. Star at 10 bps with a genesis burst (26 blocks/s for 5 min) and the measured hub cost" >> $O
|
|
printf '# burst then target\n0,1559\n1,1559\n2,1559\n3,1559\n4,1559\n5,600\n6,600\n7,600\n8,600\n9,600\n' > sim/horizon/network/burst-schedule.csv
|
|
$P --topology star --nodes 41 --bps 10 --k 124 --link 40 --hub-s0 6 --hub-s1 2 --schedule sim/horizon/network/burst-schedule.csv --seconds 600 --out $O
|
|
$P --topology mesh --nodes 42 --degree 8 --bps 10 --k 124 --link 40 --schedule sim/horizon/network/burst-schedule.csv --seconds 600 --out $O
|
|
echo "" >> $O; echo "## D. The grid: mesh of degree 8, 42 nodes, ideal links, hop delay median 50 to 1,000 ms" >> $O
|
|
$P --grid --nodes 42 --degree 8 --seconds 400 --out $O
|
|
echo "DONE $(date -u +%T)" >> $O
|