ScaleChain/scalechain

Stress test : multi-thread test for proto-codec layer

Closed this issue · 1 comments

what

We are assuming that proto-codec layer can encode/decode blocks and transactions using multi-threads. Verify that the assumption is correct.

why

Need to make sure that each layer is working correctly in multi-threaded environment.

how

  1. Create raw transactions in files using generaterawtransaction RPC.
  2. Read the transactions from the files, encode/decode transactions and blocks simultaneously.

Done, verified proto-codec parses/serializes 800K transactions in 40 threads.