-
Notifications
You must be signed in to change notification settings - Fork 44
Performance Improvements #6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Woah, nice! Thanks for testing! Yes, the welcome handler serves an html page with an image, which might be slower. Can I ask how you're profiling this? The charts look sick |
Profile was with Linux's built in kernel profiler and "perf" usermode tool, I couldn't find a profiler specifically for mojo yet. This technique does have the advantage of showing all user and kernel mode activity, i.e. the libc and cpython work. I suspect there is a lot of memory allocation or copying happening in the welcome handler but I'm not all that familiar with mojo and haven't found a technique to profile memory allocation. i'm also suspicious the use of python sockets might be suboptimal, but what do i know? flame graph is by https://www.brendangregg.com/perf.html
|
you might also enjoy |
Yeah 1500req/s with the base64 image removed. |
@crunchy-vonage we're actually doing |
I've made some improvements in #40 , getting 10468 reqs per second now with wrk.
|
Parallelization and performance optimizations
The text was updated successfully, but these errors were encountered: