paritytech / polkadot-stps

Polkadot Standard Transactions Per Second (sTPS) performance benchmarking
The Unlicense
14 stars 5 forks source link

Fix stuck event counter loop, and accurately represent time-diff #49

Closed bredamatt closed 1 year ago

bredamatt commented 1 year ago

The while let Ok(events) = extrinsic.events().await block in the calc_para_tps method blocks, hence this was fixed with a simple let events = extrinsic.events().await?; call.

Additionally, the time_diff parameter was scaled to be represented in seconds rather than milliseconds.