1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00

update README

This commit is contained in:
Rene Schallner 2023-01-15 07:02:43 +01:00
parent f00714abaa
commit 6a6a2a9345
2 changed files with 7 additions and 7 deletions

View file

@ -49,6 +49,9 @@ But, how fast is it? Being blazingly fast is relative. When compared with a
simple GO HTTP server, a simple zig zap HTTP server performed really good on my
machine:
- zig zag was nearly 30% faster than GO
- zig zag had over 50% more throughput than GO
**Update**: I was intrigued comparing to a basic rust HTTP server.
Unfortunately, knowing nothing at all about rust, I couldn't find one and hence
tried to go for the one in [The Rust Programming
@ -59,15 +62,11 @@ not read files but outputting a static text just like in the other examples.
**maybe someone with rust experience** can have a look at my
[wrk/rust/hello](wrk/rust/hello) code and tell me why it's surprisingly slow, as
I expected it to be faster than the basic GO example. I'll enable the
GitHub discussions for this matter. My suspicion is the use of mutexes.
GitHub discussions for this matter. My suspicion is bad performance of the
mutexes.
![](wrk_table_summary.png)
- zig zag was nearly 30% faster than GO
- zig zag had over 50% more throughput than GO
- let's better not talk about the rust results. I don't know what causes them.
Probably bad mutex performance.
![](wrk_summary.png)
So, being somewhere in the ballpark of basic GO performance, zig zap seems to be

View file

@ -24,7 +24,8 @@ not read files but outputting a static text just like in the other examples.
**maybe someone with rust experience** can have a look at my
[wrk/rust/hello](wrk/rust/hello) code and tell me why it's surprisingly slow, as
I expected it to be faster than the basic GO example. I'll enable the
GitHub discussions for this matter. My suspicion is the use of mutexes .
GitHub discussions for this matter. My suspicion is bad performance of the
mutexes.
![](wrk_tables.png)