Skip to content

Commit cd5d190

Browse files
authored
Additional empirical analyses of Apply/Reapply costs (#523)
* Extended analysis for apply/reapply * Quantile regression results based on sample of data * Extended analysis of `Apply` and `Reapply` * Update logbook
1 parent 4b58dcc commit cd5d190

File tree

3 files changed

+968
-2
lines changed

3 files changed

+968
-2
lines changed

Logbook.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## 2025-08-26
44

5+
### Quantile regressions for ledger "apply" and "reapply" operations
6+
7+
The [analysis of the ledger "apply" and "reapply"](analysis/timings/ReadMe.ipynb) has been extended with quantile regressions at the 50th, 95th, and 99th percentiles. There was a concern that the validation time spent on reapplying transactions to EB could interfere with the release of Praos blocks. The following table shows predictions for full EBs with various intensities of Plutus scripts. Note that the "apply" operation occurs in Leios as transactions arrive and is spread out over many slots and computational threads. The "reapply" operation starts as soon as an EB is received and must be completed before a new RB and EB are built upon that EB when it is newly certified.
8+
9+
| Tx count | Tx size [kB] | Tx exec [Gstep] | 50th %tile of Apply [ms] | 95th %tile of Apply [ms] | 99th %tile of Apply [ms] | 50th %tile of Repply [ms] | 95th %tile of Reapply [ms] | 99th %tile of Reapply [ms] |
10+
|---------:|-------------:|----------------:|-------------------------:|-------------------------:|-------------------------:|--------------------------:|---------------------------:|---------------------------:|
11+
| 8000 | 12,000 | 0 | 1940.058 | 3039.944 | 4154.505 | 183.0863 | 374.7629 | 661.7723 |
12+
| 8000 | 12,000 | 20 | 1962.509 | 3082.334 | 4210.954 | 183.7547 | 376.0958 | 661.8747 |
13+
| 8000 | 12,000 | 2000 | 4185.128 | 7278.955 | 9799.408 | 249.9268 | 508.0527 | 672.0193 |
14+
515
### Network degradation experiment
616

717
The simulation experiment [analysis/sims/degraded/](analysis/sims/degraded/) studied Leios's behavior when network topology is thinned. The number of connections to/from each node was randomly thinned by up to 87% of its original mainnet-like topology. Beyond that level (i.e., more than 88% of connections lost), the network topology splits into disconnected regions where some nodes can no longer communicate with each other. That degradation resulted in the diameter of the network increasing from 5 hops to 8 hops and the number of connections per node dropping form 23.5 to 6.0. Both honest cases and cases where adversaries delay the release or transactions and EBs were studied. The experiment was inconclusive, in that the protocol operated properly when 87% of connections where lost.

analysis/sims/kernels.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ in
3232
igraph
3333
lubridate
3434
mongolite
35+
quantreg
3536
RPostgres
3637
R_utils
3738
stringr

analysis/timings/ReadMe.ipynb

Lines changed: 957 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)