AntelopeIO / spring

C++ implementation of the Antelope protocol with Savanna consensus
Other
7 stars 3 forks source link

add an option to replay blocks at their approximate original real time interval #832

Open spoonincode opened 6 days ago

spoonincode commented 6 days ago

To more reliably reproduce external-to-nodeos performance characteristics (such as disk IO, memory caching, etc) during live operation of the chain, it seems like it might be useful to replay blocks at their approximate real time interval. Otherwise when replaying 1000 blocks in a few seconds it's harder to know, for example, how disk writes behaved during the 500 original seconds those blocks arrived in, when instead during replay they're compressed down to being replayed in a handful of seconds where short term buffering may mask performance characteristics.

bhazzard commented 18 hours ago

Is there a value of a "replay pace" where you can set 0.5x, 1x, 2x, etc?

Would you want to skip over gaps of time (like if there was an hour between blocks in "real life")?