Skip to content

Commit 93282c5

Browse files
author
Brian W Bush
committed
Completed simulations
1 parent b7eccad commit 93282c5

File tree

8 files changed

+150
-36
lines changed

8 files changed

+150
-36
lines changed

analysis/sims/2025w27/combine-results.sh

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,41 @@
11
#!/usr/bin/env nix-shell
2-
#!nix-shell -i bash -p gzip
2+
#!nix-shell -i bash -p gnused gzip pigz "rWrapper.override { packages = with rPackages; [ data_table R_utils bit64 ggplot2 magrittr stringr ]; }"
33

44
set -e
55

6-
for d in tsr
6+
mkdir -p results
7+
for f in lifecycle resources receipts cpus
78
do
8-
mkdir -p results/$d
9-
for f in cpus lifecycle resources receipts
10-
do
11-
DIR=$(find $d -type f -name $f.csv.gz \( -not -empty \) -printf %h\\n -quit)
12-
HL=$(sed -n -e '1p' "$DIR/case.csv")
13-
HR=$(zcat "$DIR/$f.csv.gz" | sed -n -e '1p')
14-
(
15-
echo "$HL,$HR"
16-
for g in $(find $d -type f -name $f.csv.gz \( -not -empty \) -printf %h\\n)
17-
do
18-
if [ ! -e "$g/stderr" ]
19-
then
20-
echo "Skipping $g because it has no stderr." >> /dev/stderr
21-
elif [ -s "$g/stderr" ]
22-
then
23-
echo "Skipping $g because its stderr is not empty." >> /dev/stderr
24-
else
25-
BL=$(sed -n -e '2p' "$g/case.csv")
26-
zcat "$g/$f.csv.gz" | sed -e "1d;s/^/$BL,/;s/null/NA/g"
27-
fi
28-
done
29-
) | pigz -p 3 -9c > results/$d/$f.csv.gz &
30-
done
9+
DIR=$(find tsr -type f -name $f.csv.gz \( -not -empty \) -printf %h\\n -quit)
10+
HL=$(sed -n -e '1p' "$DIR/case.csv")
11+
HR=$(zcat "$DIR/$f.csv.gz" | sed -n -e '1p')
12+
if [[ "$f" == "lifecycle" || "$f" == "resources" ]]
13+
then
14+
FRACT=1.00
15+
else
16+
FRACT=0.20
17+
fi
18+
(
19+
echo "$HL,$HR"
20+
for g in $(find tsr -type f -name $f.csv.gz \( -not -empty \) -printf %h\\n)
21+
do
22+
if [ ! -e "$g/stderr" ]
23+
then
24+
echo "Skipping $g because it has no stderr." >> /dev/stderr
25+
elif [ -s "$g/stderr" ]
26+
then
27+
echo "Skipping $g because its stderr is not empty." >> /dev/stderr
28+
else
29+
BL=$(sed -n -e '2p' "$g/case.csv")
30+
zcat "$g/$f.csv.gz" | gawk 'FNR > 1 && rand() <= '"$FRACT"' { print "'"$BL"'" "," $0}'
31+
fi
32+
done
33+
) | pigz -p 3 -9c > results/$f.csv.gz
34+
R --vanilla << EOI > /dev/null
35+
require(data.table)
36+
sampleSize <- $FRACT
37+
print(sampleSize)
38+
$f <- fread("results/$f.csv.gz", stringsAsFactors=TRUE)
39+
save($f, sampleSize, file="results/$f.Rdata", compression_level=9)
40+
EOI
3141
done
32-
wait
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Simulator,timestamp-resolution-ms
2+
Rust,0.025
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
praos: 618701 transactions(s) were generated in total.
2+
praos: 72 naive praos block(s) were published.
3+
praos: 1128 slot(s) had no naive praos blocks.
4+
praos: 618701 transaction(s) (185.61 MB) finalized in a naive praos block.
5+
praos: 0 transaction(s) (0 B) did not reach a naive praos block.
6+
praos: Pool 1 published 1 naive praos block(s)
7+
praos: Pool 3 published 2 naive praos block(s)
8+
praos: Pool 4 published 1 naive praos block(s)
9+
praos: Pool 35 published 2 naive praos block(s)
10+
praos: Pool 40 published 3 naive praos block(s)
11+
praos: Pool 43 published 1 naive praos block(s)
12+
praos: Pool 44 published 0 naive praos block(s)
13+
praos: Pool 44 failed to publish 1 naive praos block(s) due to slot battles.
14+
praos: Pool 54 published 1 naive praos block(s)
15+
praos: Pool 56 published 1 naive praos block(s)
16+
praos: Pool 57 published 1 naive praos block(s)
17+
praos: Pool 58 published 1 naive praos block(s)
18+
praos: Pool 59 published 1 naive praos block(s)
19+
praos: Pool 67 published 1 naive praos block(s)
20+
praos: Pool 70 published 1 naive praos block(s)
21+
praos: Pool 74 published 1 naive praos block(s)
22+
praos: Pool 77 published 1 naive praos block(s)
23+
praos: Pool 81 published 1 naive praos block(s)
24+
praos: Pool 83 published 2 naive praos block(s)
25+
praos: Pool 87 published 1 naive praos block(s)
26+
praos: Pool 90 published 1 naive praos block(s)
27+
praos: Pool 95 published 1 naive praos block(s)
28+
praos: Pool 96 published 1 naive praos block(s)
29+
praos: Pool 110 published 2 naive praos block(s)
30+
praos: Pool 115 published 1 naive praos block(s)
31+
praos: Pool 118 published 2 naive praos block(s)
32+
praos: Pool 120 published 1 naive praos block(s)
33+
praos: Pool 125 published 1 naive praos block(s)
34+
praos: Pool 134 published 1 naive praos block(s)
35+
praos: Pool 138 published 1 naive praos block(s)
36+
praos: Pool 139 published 1 naive praos block(s)
37+
praos: Pool 361 published 1 naive praos block(s)
38+
praos: Pool 362 published 1 naive praos block(s)
39+
praos: Pool 364 published 1 naive praos block(s)
40+
praos: Pool 365 published 1 naive praos block(s)
41+
praos: Pool 367 published 1 naive praos block(s)
42+
praos: Pool 369 published 0 naive praos block(s)
43+
praos: Pool 369 failed to publish 1 naive praos block(s) due to slot battles.
44+
praos: Pool 377 published 1 naive praos block(s)
45+
praos: Pool 429 published 1 naive praos block(s)
46+
praos: Pool 430 published 1 naive praos block(s)
47+
praos: Pool 444 published 2 naive praos block(s)
48+
praos: Pool 446 published 1 naive praos block(s)
49+
praos: Pool 447 published 1 naive praos block(s)
50+
praos: Pool 474 published 2 naive praos block(s)
51+
praos: Pool 475 published 1 naive praos block(s)
52+
praos: Pool 481 published 1 naive praos block(s)
53+
praos: Pool 510 published 1 naive praos block(s)
54+
praos: Pool 514 published 1 naive praos block(s)
55+
praos: Pool 515 published 1 naive praos block(s)
56+
praos: Pool 517 published 1 naive praos block(s)
57+
praos: Pool 518 published 1 naive praos block(s)
58+
praos: Pool 519 published 1 naive praos block(s)
59+
praos: Pool 520 published 1 naive praos block(s)
60+
praos: Pool 522 published 1 naive praos block(s)
61+
praos: Pool 525 published 1 naive praos block(s)
62+
praos: Pool 526 published 1 naive praos block(s)
63+
praos: Pool 526 failed to publish 1 naive praos block(s) due to slot battles.
64+
praos: Pool 533 published 1 naive praos block(s)
65+
praos: Pool 534 published 1 naive praos block(s)
66+
praos: Pool 542 published 1 naive praos block(s)
67+
praos: Pool 543 published 1 naive praos block(s)
68+
praos: Pool 554 published 1 naive praos block(s)
69+
praos: Pool 555 published 1 naive praos block(s)
70+
praos: Pool 557 published 1 naive praos block(s)
71+
praos: Pool 558 published 1 naive praos block(s)
72+
praos: Pool 561 published 1 naive praos block(s)
73+
praos: Pool 562 published 1 naive praos block(s)
74+
leios: 2295 IB(s) were generated, on average 1.913 IB(s) per slot.
75+
leios: 618701 out of 618701 transaction(s) were included in at least one IB.
76+
leios: The average age of the pending transactions is NaNs (stddev NaN).
77+
leios: Each transaction was included in an average of 1.104 IB(s) (stddev 0.321).
78+
leios: Each IB contained an average of 297.740 transaction(s) (stddev 347.808) and an average of 9.83 kB (stddev 11.). 1026 IB(s) were empty.
79+
leios: Each node received an average of 2294.979 IB(s) (stddev 0.144).
80+
leios: 593 EB(s) were generated; on average there were 0.494 EB(s) per slot.
81+
leios: Each EB contained an average of 38.083 IB(s) (stddev 6.724). 0 EB(s) were empty.
82+
leios: Each IB was included in an average of 9.957 EB(s) (stddev 3.036).
83+
leios: 2268 out of 2295 IBs were included in at least one EB.
84+
leios: 0 out of 2295 IBs expired before they reached an EB.
85+
leios: 106 out of 593 EBs expired before an EB from their stage reached an RB.
86+
leios: 618701 out of 618701 transaction(s) were included in at least one EB.
87+
leios: 1010362 total votes were generated.
88+
leios: Each stake pool produced an average of 4677.602 vote(s) (stddev 888.603).
89+
leios: Each EB received an average of 1727.115 vote(s) (stddev 678.883).
90+
leios: There were 40525 bundle(s) of votes. Each bundle contained 24.932 vote(s) (stddev 29.419).
91+
leios: 75 L1 block(s) had a Leios endorsement.
92+
leios: 618701 tx(s) (185.61 MB) were referenced by a Leios endorsement.
93+
leios: 0 tx(s) (0 B) were included directly in a Praos block.
94+
leios: Spatial efficiency: 185.61 MB/24.72 MB (750.833%) of Leios bytes were unique transactions.
95+
leios: 4485521 tx(s) (87.879%) referenced by a Leios endorsement were redundant.
96+
leios: Each transaction took an average of 66.003s (stddev 66.646) to be included in an IB.
97+
leios: Each transaction took an average of 79.713s (stddev 66.567) to be included in an EB.
98+
leios: Each transaction took an average of 106.105s (stddev 67.675) to be included in a block.
99+
network: 463407049 TX message(s) were sent. 463407049 of them were received (100.000%).
100+
network: 1718949 IB message(s) were sent. 1718939 of them were received (99.999%).
101+
network: 444157 EB message(s) were sent. 444157 of them were received (100.000%).
102+
network: 30353225 Vote message(s) were sent. 30353225 of them were received (100.000%).

analysis/sims/2025w27/tsr/0.050/case.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Simulator,timestamp-resolution-ms
2+
Rust,0.100

analysis/sims/2025w27/tsr/0.050/config.yaml renamed to analysis/sims/2025w27/tsr/0.100/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ multiplex-mini-protocols: true
1717
simulate-transactions: true
1818
treat-blocks-as-full: false
1919
cleanup-policies: ["cleanup-expired-vote"]
20-
timestamp-resolution-ms: 0.050
20+
timestamp-resolution-ms: 0.100
2121

2222
################################################################################
2323
# Leios Protocol Configuration
File renamed without changes.

analysis/sims/2025w27/tsr/0.050/summary.txt renamed to analysis/sims/2025w27/tsr/0.100/summary.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ praos: Pool 4 published 1 naive praos block(s)
99
praos: Pool 35 published 2 naive praos block(s)
1010
praos: Pool 40 published 3 naive praos block(s)
1111
praos: Pool 43 published 1 naive praos block(s)
12+
praos: Pool 44 published 0 naive praos block(s)
1213
praos: Pool 44 failed to publish 1 naive praos block(s) due to slot battles.
1314
praos: Pool 54 published 1 naive praos block(s)
1415
praos: Pool 56 published 1 naive praos block(s)
@@ -73,14 +74,14 @@ leios: 2295 IB(s) were generated, on average 1.913 IB(s) per slot.
7374
leios: 618701 out of 618701 transaction(s) were included in at least one IB.
7475
leios: The average age of the pending transactions is NaNs (stddev NaN).
7576
leios: Each transaction was included in an average of 1.104 IB(s) (stddev 0.321).
76-
leios: Each IB contained an average of 297.729 transaction(s) (stddev 347.791) and an average of 9.83 kB (stddev 11.). 1026 IB(s) were empty.
77+
leios: Each IB contained an average of 297.732 transaction(s) (stddev 347.802) and an average of 9.83 kB (stddev 11.). 1026 IB(s) were empty.
7778
leios: Each node received an average of 2294.979 IB(s) (stddev 0.144).
7879
leios: 593 EB(s) were generated; on average there were 0.494 EB(s) per slot.
7980
leios: Each EB contained an average of 38.083 IB(s) (stddev 6.724). 0 EB(s) were empty.
8081
leios: Each IB was included in an average of 9.957 EB(s) (stddev 3.036).
8182
leios: 2268 out of 2295 IBs were included in at least one EB.
8283
leios: 0 out of 2295 IBs expired before they reached an EB.
83-
leios: 107 out of 593 EBs expired before an EB from their stage reached an RB.
84+
leios: 106 out of 593 EBs expired before an EB from their stage reached an RB.
8485
leios: 618701 out of 618701 transaction(s) were included in at least one EB.
8586
leios: 1010362 total votes were generated.
8687
leios: Each stake pool produced an average of 4677.602 vote(s) (stddev 888.603).
@@ -89,11 +90,11 @@ leios: There were 40525 bundle(s) of votes. Each bundle contained 24.932 vote(s)
8990
leios: 75 L1 block(s) had a Leios endorsement.
9091
leios: 618701 tx(s) (185.61 MB) were referenced by a Leios endorsement.
9192
leios: 0 tx(s) (0 B) were included directly in a Praos block.
92-
leios: Spatial efficiency: 185.61 MB/24.72 MB (750.859%) of Leios bytes were unique transactions.
93-
leios: 4483282 tx(s) (87.873%) referenced by a Leios endorsement were redundant.
94-
leios: Each transaction took an average of 66.008s (stddev 66.640) to be included in an IB.
95-
leios: Each transaction took an average of 79.717s (stddev 66.561) to be included in an EB.
96-
leios: Each transaction took an average of 106.110s (stddev 67.670) to be included in a block.
93+
leios: Spatial efficiency: 185.61 MB/24.72 MB (750.852%) of Leios bytes were unique transactions.
94+
leios: 4503780 tx(s) (87.922%) referenced by a Leios endorsement were redundant.
95+
leios: Each transaction took an average of 66.010s (stddev 66.644) to be included in an IB.
96+
leios: Each transaction took an average of 79.720s (stddev 66.566) to be included in an EB.
97+
leios: Each transaction took an average of 106.114s (stddev 67.672) to be included in a block.
9798
network: 463407049 TX message(s) were sent. 463407049 of them were received (100.000%).
9899
network: 1718949 IB message(s) were sent. 1718939 of them were received (99.999%).
99100
network: 444157 EB message(s) were sent. 444157 of them were received (100.000%).

0 commit comments

Comments
 (0)