Parameter Description
n_days: Loockback period.
stake_adoption: Represent the percentage of stake running a software version. This is used to filter versions when comparing metrics.
Compute Units
In the Solana network, block limits play a vital role in ensuring that most network participants can keep up with the blockchain’s operations. These limits restrict the computational work—quantified in Compute Units (CUs)—that a leader (validator) can pack into a single block. CUs measure the computational resources that validators expend when processing on-chain operations within a transaction, with each operation carrying a distinct compute cost.
Validators must execute all instructions within a block’s CU limit in a fixed time window (Solana targets ~400ms per slot). If CU usage approaches or exceeds the limit, it can slow down block production or cause delays, affecting the network’s ability to maintain its high-speed consensus. Monitoring CUs per block helps identify bottlenecks. For example, consistently maxed-out blocks might signal the need to increase the CU limit or optimize transaction efficiency.
The Kolmogorov-Smirnov (KS) test
The Kolmogorov-Smirnov (KS) test leverages the Cumulative Distribution Function (CFD) to statistically compare two distributions. It calculates the maximum difference between their CDFs, testing whether they come from the same population. Unlike tests relying on specific assumptions, the KS-test is non-parametric, making it versatile for diverse datasets. This approach is valuable for detecting significant shifts in behavior. By quantifying differences in distribution shapes, the KS-test offers a robust method for hypothesis testing and identifying anomalies, ensuring data-driven insights in dynamic systems.
A KS-test provides a p-value indicating the likelihood of this difference occurring by chance. A low p-value suggests the two distributions are significantly different. When comparing the CDFs of 2 different software version, the test's direction offers additional insights:
When the Set 1's CDF is below the Set 2's CDF, this means the Set 1 values are higher than Set 2.
This directional interpretation enhances the KS-test's utility in identifying outliers and performance trends.