Zen is designed to have minimal impact on your application's performance. We run benchmarks on every commit to ensure this remains true.
make benchmarkThis finds all packages containing benchmarks and runs them.
We benchmark the middleware for each supported framework to measure the overhead added to HTTP request handling:
BenchmarkMiddleware(gin) -instrumentation/sources/gin-gonic/ginBenchmarkMiddleware(echo) -instrumentation/sources/labstack/echo.v4BenchmarkMiddleware(chi) -instrumentation/sources/go-chi/chi
BenchmarkDetectSQLInjection-vulnerabilities/sqlinjection
Measures the performance of SQL injection detection across various input patterns.
BenchmarkSmallBody(1KB) -internal/httpBenchmarkLargeBody(5MB) -internal/http
Measures JSON body parsing performance for different payload sizes.
Benchmarks run automatically on every push to main and on pull requests. Results are displayed in the GitHub Actions job summary.