mirror of
https://github.com/zig-bd/bench.git
synced 2026-11-21 10:32:14 +00:00
Performance Benchmarking of Zig Web Server Libraries
https://bench.zig.bd
- Zig 76.8%
- CSS 12.6%
- JavaScript 4.9%
- Shell 4.2%
- Dockerfile 1.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| app | ||
| bench | ||
| frameworks | ||
| .dockerignore | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| README.md | ||
Zig Web Server Libraries Benchmark
Benchmarks Zig web server libraries for performance.
Run
bash bench/run.sh # all frameworks
bash bench/run.sh httpz zzz # specific frameworks
Results will be written to app/results.zon.
Adding new benchmarks
- Create
frameworks/<name>/that has endpoints similar to an existing one like. - Put catalog metadata in
build.zig.zonunder.metafollowing existing examples. - Add
<name>to.frameworksinbench/runner/src/benchfig.zon. - Regenerate compose and commit it:
bash bench/run.sh --write-compose - Smoke-test:
bash bench/run.sh <name>