Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions ci/demo/phase3.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
);
Expand Down
10 changes: 5 additions & 5 deletions docs/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ 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`).

## Timing

| 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 |
Loading