Skip to content

Benchmark get_route in CI #798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 15, 2021

Conversation

TheBlueMatt
Copy link
Collaborator

I needed to create this for another thing anyway, so figured I'd PR. It uses rust unstable features, but its mostly for CI.

@codecov
Copy link

codecov bot commented Feb 12, 2021

Codecov Report

Merging #798 (454e01d) into main (879e309) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #798      +/-   ##
==========================================
- Coverage   90.84%   90.82%   -0.02%     
==========================================
  Files          44       44              
  Lines       24073    24073              
==========================================
- Hits        21868    21865       -3     
- Misses       2205     2208       +3     
Impacted Files Coverage Δ
lightning/src/ln/functional_tests.rs 97.12% <ø> (-0.06%) ⬇️
lightning/src/routing/router.rs 95.40% <ø> (ø)
lightning/src/util/chacha20.rs 91.39% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 879e309...454e01d. Read the comment docs.

@TheBlueMatt
Copy link
Collaborator Author

Note for reviewers, the graph snapshot has 33,895 channels in it, which is lower than the 37,851 that 1ml lists today, but not by enough for it to matter too much.

@TheBlueMatt TheBlueMatt force-pushed the 2021-02-route-bench branch 2 times, most recently from 9cfaae9 to 6ebab85 Compare February 15, 2021 21:49
Sadly rust upstream never really figured out the benchmark story,
and it looks like the API we use here may not be long for this
world. Luckily, we can switch to criterion with largely the same
API if that happens before upstream finishes ongoing work with the
custom test framework stuff.

Sadly, it requires fetching the current network graph, which I did
using Val's route-testing script written to test the MPP router.
@ariard
Copy link

ariard commented Feb 15, 2021

Code Review ACK 454e01d

@TheBlueMatt
Copy link
Collaborator Author

This doesn't touch "real" code, so gonna merge with one ACK.

@TheBlueMatt TheBlueMatt merged commit 1c84014 into lightningdevkit:main Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants