Replies: 2 comments 1 reply
-
Thanks for bringing this up @frankvp11. We have not done a lot of performance testing yet. Have you tested with some special app code or a basic hello world example? In both cases we would appreciate if you could share the code for better comparison. Your k6 setup is just testing the http connection -- after we find the bottleneck there it would be interesting to see how we could establish the websocket connection and simulate some user interaction... |
Beta Was this translation helpful? Give feedback.
-
I just tested with one-Button NiceGUI app on the smallest Digital Ocean droplet (Basic, Regular, 1 vCPU, 512 MB, 10 GB, 0.5 TB) with Ubuntu: from nicegui import ui
@ui.page('/')
def index():
ui.button('Click me', on_click=lambda: ui.notify('Hello World'))
ui.run(port=80) It crashed after 30-40 seconds with your test script. After enabling 1GB of swap the app stayed reachable and resulted in this test output:
Therefore, I suggest you also activate swap and then strip down you application until you find the performance issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
I've been load testing my nicegui website and it's not performing that amazing..
Now, here's the problem. I'm not sure of what to expect given the compute that I have allocated to this website ($6 droplet on digital ocean 😭)
I used k6 to test, with this script:
and I got these results:
So I have a few questions.
Have there been performance comparisons done between NiceGUI and other web development frameworks (like React, and whatnot), what can I do to improve the performance (I expect about 75 people to use / access my site at peak usage), and is the problem in my case purely the cheap droplet / provider?
I've really enjoyed the NiceGUI project overall, but because of the amount of people and the fact that it's basically just a signup form for the app, I was hoping it'd perform better..
Beta Was this translation helpful? Give feedback.
All reactions