]> git.bitcoin.ninja Git - rust-lightning/commit
Add bench profiles to Cargo.toml to force codegen-units=1
authorMatt Corallo <git@bluematt.me>
Fri, 28 May 2021 14:16:20 +0000 (14:16 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 29 May 2021 19:25:00 +0000 (19:25 +0000)
commitd5144a114b7ded7554d4aede4766067cf63f8806
tree8eafc181fe485dc82d8fa2d56df70d78f89e24f6
parent32ad9b70aa2a10d795af1166eb4e34ec8224d722
Add bench profiles to Cargo.toml to force codegen-units=1

This makes a small difference for NetworkGraph deserialization
as it enables more inlining across different files, hopefully
better matching user performance as well.

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

test routing::network_graph::benches::read_network_graph  ... bench: 2,037,875,071 ns/iter (+/- 760,370)
test routing::network_graph::benches::write_network_graph ... bench: 320,561,557 ns/iter (+/- 176,343)
Cargo.toml