mirror of
https://github.com/zig-bd/bench.git
synced 2026-09-22 09:09:42 +01:00
Performance Benchmarking of Zig Web Server Libraries
https://bench.zig.bd
- Zig 75.3%
- CSS 13%
- JavaScript 5.1%
- Shell 4.3%
- Dockerfile 2.3%
| 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 zap # 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>