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>
Tue, 1 Jun 2021 15:47:01 +0000 (15:47 +0000)
commitc7113bcd9220ed6c432b13ad89e0526438196ddf
tree1bb9d0eda0d085294d33c9b33ee8d2fcb95f4585
parent4cc320bb602972ddd46c463208fe0440cff66498
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