]> git.bitcoin.ninja Git - rust-lightning/commit
Add benchmark of deserializing a NetworkGraph.
authorMatt Corallo <git@bluematt.me>
Fri, 28 May 2021 00:47:11 +0000 (00:47 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 29 May 2021 18:44:18 +0000 (18:44 +0000)
commit32ad9b70aa2a10d795af1166eb4e34ec8224d722
treef9bcd2c72d3f6f5f1c46eda75d3b0cac4a1aff74
parent8cc9410ae176f415d90e8ed8afe590455db63dc9
Add benchmark of deserializing a NetworkGraph.

NetworkGraph is one of the largest structures we generally
deserialize, so it makes for a good benchmark, even if it isn't the
most complicated one.

As of this commit, on an Intel 2687W v3, these benchmarks take:

test routing::network_graph::benches::read_network_graph  ... bench: 2,101,420,078 ns/iter (+/- 6,649,020)
test routing::network_graph::benches::write_network_graph ... bench: 344,696,835 ns/iter (+/- 229,061)
lightning/src/routing/network_graph.rs
lightning/src/routing/router.rs