diff --git a/primitives/benches/advz.rs b/primitives/benches/advz.rs index eac51e431..7017e7a17 100644 --- a/primitives/benches/advz.rs +++ b/primitives/benches/advz.rs @@ -38,12 +38,17 @@ mod feature_gated { <::OutputSize as ArrayLength>::ArrayType: Copy, { // play with these items - const RATE: usize = 4; // ratio of num_storage_nodes : polynomial_degree + // + // CODE_RATE is merely a convenient way to automatically choose polynomial + // degree as a function of storage node count. + // If desired, you could set polynomial degrees independent of storage node + // count. + const CODE_RATE: usize = 4; // ratio of num_storage_nodes : polynomial_degree let storage_node_counts = [512, 1024]; let payload_byte_lens = [1 * MB]; // more items as a function of the above - let poly_degrees_iter = storage_node_counts.iter().map(|c| c / RATE); + let poly_degrees_iter = storage_node_counts.iter().map(|c| c / CODE_RATE); let supported_degree = poly_degrees_iter.clone().max().unwrap(); let vid_sizes_iter = poly_degrees_iter.zip(storage_node_counts); let mut rng = jf_utils::test_rng();