Open hugusmaximus opened 11 months ago
I have to check. In the past, we had some performance issue. But I thought that we have solved it. Maybe it come back with an PR. Currently, our checks do not evaluate, if a PR creates some power losses.
On my system I got better performance. Naive question. Do you build the Hermit application with --release
?
No. But I got 4/5 requests/second which is several orders of magnitude below what I would expect... how much performance are you getting? (just in case I'll try with --release...).
El jue., 4 ene. 2024 19:34, Stefan Lankes @.***> escribió:
On my system I got better performance. Naive question. Do you build the Hermit application with --release?
— Reply to this email directly, view it on GitHub https://github.com/hermit-os/hermit-rs/issues/516#issuecomment-1877576780, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQVGKU5TPEAOWFSD6SIMEVLYM3Y4DAVCNFSM6AAAAABBGQ7ZBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXGU3TMNZYGA . You are receiving this because you authored the thread.Message ID: @.***>
Yeah, it's expected to be slow without --release
. We should add a hint to the README in https://github.com/hermit-os/hermit-rs-template.
Yes, with --release I got 40 req/sec. Not a rocket but it works for me. Thanks!
Network performance is something that we are actively looking into, so it should get better in the future. :)
My apologies. I'm getting much, much more. This 40 req/sec is because an experimental KASLR I was implementing and also plus SSL offloading proxy before. Just tried your vanilla code with plain HTTP and I get 10.000 req/sec, which looks pretty good!!!
hugo@anakin:~/home/hugo$ wrk -c100 -d10000 -t 10 http://10.137.0.3:9975
Running 167m test @ http://10.137.0.3:9975
10 threads and 100 connections
^C Thread Stats Avg Stdev Max +/- Stdev
Latency 8.97ms 2.27ms 25.83ms 82.25%
Req/Sec 1.08k 323.60 10.69k 86.06%
164378 requests in 15.32s, 38.22MB read
Requests/sec: 10731.98
Transfer/sec: 2.50MB
Ah, I am relieved. Thanks for clarifying!
I'm trying to make a simple benchmark to a very simple code using "tiny_http" like this:
I'm doing an extremely soft "benchmark" and getting those results:
Looks like concurrent connections are not handled also with no concurrency at all I get this:
My console output (qemu-system-aarch64):
I'm using Hermit 0.8.0. I'm missing something for sure as this low performance is not normal.... any hint?