diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 9786853..bf8eea7 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -48,7 +48,7 @@ jobs: - name: Install Python mitmproxy2swagger run: | - pip install --user "mitmproxy<12" "ruamel.yaml<0.19" "mitmproxy2swagger==0.14.0" + pip install --user "mitmproxy2swagger==0.15.0" echo "$HOME/.local/bin" >> $GITHUB_PATH python -m pip show mitmproxy2swagger | head -3 diff --git a/ci/demo/phase3.spec.ts b/ci/demo/phase3.spec.ts index 1834c6f..2c7d526 100644 --- a/ci/demo/phase3.spec.ts +++ b/ci/demo/phase3.spec.ts @@ -25,8 +25,8 @@ test.beforeAll(() => { execSync("docker rm -f swagger-ui 2>/dev/null || true"); execSync( "docker run -d --name swagger-ui -p 8088:8080 " + - "-e SWAGGER_JSON=/spec/openapi.yaml " + - "-v ${PWD}/out:/spec " + + "-e URL=./openapi.yaml " + + "-v ${PWD}/out/openapi.yaml:/usr/share/nginx/html/openapi.yaml:ro " + "swaggerapi/swagger-ui", { stdio: "inherit" }, ); diff --git a/docs/benchmarks.md b/docs/benchmarks.md index f5d27df..e6c52f0 100644 --- a/docs/benchmarks.md +++ b/docs/benchmarks.md @@ -4,7 +4,7 @@ Generated by the [benchmark workflow](.github/workflows/bench.yml). # Benchmark results -_Run: 2026-07-27 10:37 UTC, commit `eca8b476`, runner: Linux 6.17.0-1020-azure_ +_Run: 2026-08-01 18:28 UTC, commit `2ae753be`, runner: Linux 6.17.0-1020-azure_ Fixture: 89 MB, 40k requests across 8 endpoint shapes (`bench-fixtures-v1`). @@ -12,11 +12,11 @@ Fixture: 89 MB, 40k requests across 8 endpoint shapes (`bench-fixtures-v1`). | Command | Mean [s] | Min [s] | Max [s] | Relative | |:---|---:|---:|---:|---:| -| `Python mitmproxy2swagger` | 44.958 ± 0.131 | 44.821 | 45.161 | 16.84 ± 0.12 | -| `Rust mitm2openapi` | 2.670 ± 0.017 | 2.650 | 2.686 | 1.00 | +| `Python mitmproxy2swagger` | 44.838 ± 0.254 | 44.604 | 45.256 | 16.78 ± 0.13 | +| `Rust mitm2openapi` | 2.672 ± 0.013 | 2.661 | 2.694 | 1.00 | ## Peak RSS | Tool | RSS | |------|----:| -| Python mitmproxy2swagger | 45792 KB | -| Rust mitm2openapi | 7252 KB | +| Python mitmproxy2swagger | 47088 KB | +| Rust mitm2openapi | 7076 KB |