-
Notifications
You must be signed in to change notification settings - Fork 0
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
Performance Test #15
Comments
Messages Typed : Manually (bare hands) RESULT : |
Messages Typed : Automatically (Selenium) RESULT : |
Messages Typed : Automatically (Selenium) RESULT : |
All tests done till now were performed with single pc and multiple chrome instances. So due to hardware limitations it's stress test is still incomplete. |
Shocking test results:We tried to do the same stress tests for whatsapp under same network conditions with the help of selenium library. And we found shocking results. My Instincts about this result :May be it is WhatsApp api who provide message delivery in few miliseconds but on browser it's not that fast. |
great 🔥 |
By some bash scripting and selenium I fired up multiple chrome instance which will create random users into application. And they all send random messages as programmed. code is here |
Here are the response time of various api's used by web-chat backend server. The term Load means our browser will send a status of data it has cached about the server and if new data is present then server will only provide with new data. To Load (without cache) : 230 ms At the time of testing, sqlite3 database is choosed which is present with backend |
Here are the response time of these api's but from backend perspective. These completely depends on amount to data present on server. |
Channel Creation Why does API take longer? Do you know the reason? |
Generally one database operation takes 10 - 15 ms.
so overall it takes 25 to 30 ms |
So, how can we reduce the time? think about it... when you are free tommorow for the meet ? |
Approach to reduce response time :The problem we are facing is due to calling of multiple database requests. In the Load api also we are calling (n+3) requests. And in create channel api we fires 2 requests. So if we can reduce these requests, we can reduce the response time too. By using Native SQL Commands :ORM's provide a way to run an sql command too. But if we take advantage of |
Great 🥳, we can try that. And for the Create Channel process, we will use UUID and ACID operations & ( sync to async func.. ) to reduce the processing time. We will discuss these things again, so schedule a meeting tomorrow when you are free. Also create another branch for this repo, so that we can easily manage the main branch. |
We successfully executed compound SQL (creating new tables in database and updating its details in another table) and it generally took 8 to 9 ms.
According to this create new channel will take approximately 15 to 17 ms. 🥳 |
cool 🔥 |
To send message in a channel : 12 ms |
Test web-chat under various stress full conditions.
Give analysis of experiences under these conditions.
The text was updated successfully, but these errors were encountered: