Skip to content

Commit

Permalink
Merge pull request #2175 from subspace/increate-pot-iterations
Browse files Browse the repository at this point in the history
Increase number of AES iterations in PoT to match 14900K
  • Loading branch information
nazar-pc authored Oct 27, 2023
2 parents 3a53b61 + de0dd43 commit d3b8313
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion crates/subspace-node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ pub fn gemini_3f_compiled() -> Result<ConsensusChainSpec<RuntimeGenesisConfig>,
)),
),
// TODO: Adjust once we bench PoT on faster hardware
pot_slot_iterations: NonZeroU32::new(183_270_000).expect("Not zero; qed"),
// About 1s on 6.0 GHz Raptor Lake CPU (14900K)
pot_slot_iterations: NonZeroU32::new(200_032_000).expect("Not zero; qed"),
enable_domains: true,
enable_balance_transfers: true,
confirmation_depth_k: 100, // TODO: Proper value here
Expand Down
4 changes: 2 additions & 2 deletions crates/subspace-proof-of-time/benches/pot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use subspace_proof_of_time::{prove, verify};
fn criterion_benchmark(c: &mut Criterion) {
let mut seed = PotSeed::default();
thread_rng().fill(seed.as_mut());
// About 1s on 5.5 GHz Raptor Lake CPU
let pot_iterations = NonZeroU32::new(183_270_000).expect("Not zero; qed");
// About 1s on 6.0 GHz Raptor Lake CPU (14900K)
let pot_iterations = NonZeroU32::new(200_032_000).expect("Not zero; qed");

c.bench_function("prove", |b| {
b.iter(|| {
Expand Down

0 comments on commit d3b8313

Please sign in to comment.