-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Create simple test for /stake/delegators/{delegatorAddr} #2307
Comments
@NodeGuy sounds great! Few questions.
To do this, why do you then need to create a node and an LCD service? What benchmarks are you trying to capture? One thing you can immediately do to get a good starting sense, is to run a pprof. This will tell you where the biggest bottleneck is in the current test. We can go from there. |
We're consuming the endpoint so it should create an LCD service. I don't want extra REST calls executed to set up the state because then it's testing other endpoints inadvertently.
@fedekunze can answer this question better than I. |
Is there any chance @NodeGuy has some time to tackle this soon?? 🤞 |
I think the endpoint is still slow, but I agree that this is not of priority right now. We can close the issue and reopen it, when we want to refactor the LCD tests. |
@faboweb Like that approach. Going to go ahead and do that. |
Summary
Moved to the SDK repo from luniehq/lunie#1193.
Voyager has a critical performance bug—it takes 45 seconds to display information after a user click.
To fix the problem we need a test that we can use to measure the performance bottlenecks.
Problem Definition
The existing test that covers this endpoint, TestBonding, is complex (> 150 lines of code, creates non-deterministic state, exercises other REST calls, and tests 23 assertions), making it difficult to isolate the performance bottlenecks.
This is related to #2180 and #1553.
Proposal
Write new test function that:
For Admin Use
The text was updated successfully, but these errors were encountered: