ethresearch / sharding-p2p-poc

Proof of Concept of Ethereum Serenity Peer-to-Peer Layer on libp2p PubSub System
40 stars 19 forks source link

Testing: Gather data with percentage #141

Closed mhchia closed 5 years ago

mhchia commented 5 years ago

What was wrong?

Previously the test_time_broadcasting_data_single_shard only returns the time when the last node in the barbell receives the broadcasted data. What we prefer is to know how much time it takes to broadcast the data to X% nodes.

How was it fixed?

Gather the time data into a list, sort the list, and fetch the time of the num_nodes * X%th node

Cute Animal Picture

put a cute animal picture link inside the parentheses