RaiBlocks: How Fast Actually Is It? About 1.7 Second Transaction Times

Brian Pugh
2 min readJan 2, 2018

--

Testing Methodology

These experiments were done between a rai_node v9.0 on a consumer computer running Ubuntu in my house (computer 1), and a rai_node v9.0 running on a $5 Digital Ocean Droplet (computer 2). All PoW was pregenerated because this experiment is more about the network rather than hardware specific PoW performance. The router in my house is an Apple Airport Extreme, in case that matters.

During experiments, 3 times were recorded on computer 1:

  1. Time before the send RPC command was sent
  2. Time the “pong” was received from computer 2
  3. Time the “block_found” was received from computer 2

The script on computer 2 has a websocket open and listens for hashes from computer 1. As soon as computer 1 sends out the transaction, it sends the transaction hash via websocket to computer 2. Computer 2 then continuously polls the local rai_node for that block. Once the block is observed, a response is sent back to computer 1 over the websocket.

The distribution of times are as followed. 1000 send transactions were performed. Half of the initial ping time is subtracted as an approximation to account for latency over the websocket.

Min: 0.632 seconds
Median: 1.682 seconds
Mean: 2.4334 seconds

Like stuff like this? Support me at:
xrb_1y6fjssau9mhmnprwfxemfnahz759tx7qrdrfz7kbzd4jbkd4mgrurq7tfmf

--

--