Skip to content
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

runtime test #1023

Open
stafred opened this issue Mar 4, 2024 · 2 comments
Open

runtime test #1023

stafred opened this issue Mar 4, 2024 · 2 comments

Comments

@stafred
Copy link

stafred commented Mar 4, 2024

Hello. I am using your project for my own purposes, but I encountered the following problem. Why is there such a big time difference between requests (the code is the same)? How to fix it? (Windows OS)
изображение
изображение

@walkor
Copy link
Owner

walkor commented Mar 7, 2024

I cannot tell you the exact reason. It is generally caused by business logic, and you need to troubleshoot it yourself. The troubleshooting method is to find suspicious code snippets, record the execution time of the code snippets, and continue until you find the key code. In addition, the first request after the process starts may be slightly slower because it needs to load the code from the disk into memory and initialize the database connection.

@xpader
Copy link

xpader commented Mar 7, 2024

May another reason is multiple worker processes.
First connection to a worker that have hot code or data loaded, but next request to another worker is not.

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

No branches or pull requests

3 participants