diff --git a/README.md b/README.md index 282a40b..90eeac3 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ framework](https://facil.io). Here's what works: -- **Super easy build process**: zag's `build.zig` fetches git sub-modules, +- **Super easy build process**: zap's `build.zig` fetches git sub-modules, applies a patch to facil.io's logging for microsecond precision, builds and optionally runs everything. - _tested on Linux and macOS (arm, M1)_ @@ -49,8 +49,8 @@ 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 +- zig zap was nearly 30% faster than GO +- zig zap 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 @@ -67,7 +67,7 @@ mutexes. ![](wrk_table_summary.png) -![](wrk_summary.png) +![](wrk_charts_summary.png) So, being somewhere in the ballpark of basic GO performance, zig zap seems to be ... of reasonable performance 😎. @@ -366,7 +366,7 @@ pub fn main() !void { The following only shows the GET functionality implemented on both the `/user/` and the `/list` endpoints. See [endpoints](examples/endpoints/) for a complete -example, including a HTML + JavaScript frontend. +example, including an HTML + JavaScript frontend. [`main.zig`](examples/endpoints/main.zig): diff --git a/wrk_charts_summary.png b/wrk_charts_summary.png new file mode 100644 index 0000000..1320950 Binary files /dev/null and b/wrk_charts_summary.png differ diff --git a/wrk_requests.png b/wrk_requests.png index db0e1c2..bdafc37 100644 Binary files a/wrk_requests.png and b/wrk_requests.png differ diff --git a/wrk_summary.png b/wrk_summary.png deleted file mode 100644 index 63b201d..0000000 Binary files a/wrk_summary.png and /dev/null differ diff --git a/wrk_table_summary.png b/wrk_table_summary.png index 2eadf18..ba80cdb 100644 Binary files a/wrk_table_summary.png and b/wrk_table_summary.png differ diff --git a/wrk_tables.png b/wrk_tables.png index 96de8ea..ea520b0 100644 Binary files a/wrk_tables.png and b/wrk_tables.png differ diff --git a/wrk_transfer.png b/wrk_transfer.png index 82dc7ba..607fedc 100644 Binary files a/wrk_transfer.png and b/wrk_transfer.png differ