diff --git a/README.md b/README.md index ae734cd..f3305f8 100644 --- a/README.md +++ b/README.md @@ -242,19 +242,19 @@ Deep details live in [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) and [docs/WORK ## Performance -Same 4-stage pipeline (drop nulls → dual filter → group-by aggregates → fill + count), executed by pandas 3.0.5 and Xazz on real Seoul air-quality data (8 source files, 2008–2026). Median of 3 runs after warmup, wall-clock timing. +Same 4-stage pipeline (drop nulls → dual filter → group-by aggregates → fill + count), executed by pandas 3.0.6 and Xazz on real Seoul air-quality data (8 source files, 2008–2026). Median of 3 runs after warmup; each engine reports its own internal pipeline time.
-Benchmark: latency scaling across 228K/912K/4.09M rows and speedup bars — 0.76x, 1.44x, 1.30x vs pandas +Benchmark: latency scaling across 228K/912K/4.09M rows and speedup bars — 2.04x, 3.84x, 2.14x vs pandas
-- **Faster past the small file**: 1.44× vs pandas at 912K rows (467 ms vs 671 ms) and 1.30× at 4.09M rows (3,070 ms vs 3,981 ms) — with lower peak RSS at the largest scale (567 MB vs 656 MB). At 228K rows the two engines are roughly break-even (0.76×): the fixed load/filter overhead dominates a file pandas already reads in ~0.2 s. +- **Faster at every scale**: 2.04× vs pandas at 228K rows (76 ms vs 155 ms), 3.84× at 912K rows (143 ms vs 548 ms) and 2.14× at 4.09M rows (1,148 ms vs 2,457 ms) — with lower peak RSS at every scale (405 MB vs 635 MB at 4.09M rows). The gap is widest at 912K rows and narrows again at 4.09M rows. - Both sides are measured as **pipeline execution only** — the Python interpreter boot (~0.3–0.7 s) is excluded from pandas, and Xazz reports its own `[xazz:timing]` pipeline marker, so the comparison is apples-to-apples. Peak RSS uses the process tree for both engines. - Source comes from Apache Arrow columnar memory + Polars LazyFrame query optimization + multithreaded native execution. - **Out-of-core execution:** `load()` now returns a lazy scan (`scan_csv`/`scan_parquet`/`scan_ipc`), so sources stay on disk until the terminal collect — no full-file materialization upfront. For very large workloads set `XAZZ_STREAMING=1` to collect through Polars' streaming engine (unsupported plans fall back to in-memory automatically). See [docs/ROADMAP.md](docs/ROADMAP.md) Track A2. - Honest footnote: Polars' multithreading trades higher peak RSS for latency — pandas holds more rows per thread, Polars parallelizes across them. Note the benchmark data itself is not committed (it is built from the Seoul air-quality sources). -**Measurement provenance.** The committed numbers were captured on a single development host and **predate provenance capture**, so the full CPU/OS/RAM spec is not recorded — read them as directional. `benches/run_readme_benchmark.py` now writes a `provenance` block (platform, OS, CPU model, physical/logical cores, total RAM, and the pandas/polars/Python versions) into `benches/benchmark_results.json`, so the next run on a stable host is fully attributed. Reproduce it yourself: +**Measurement provenance.** Measured 2026-10-13 on one Windows 11 host: Intel Core Ultra 9 185H (16 physical / 22 logical cores), 63.5 GiB RAM, Python 3.12.12, pandas 3.0.6, NumPy 2.5.3, release build of commit `f1e55cb`. The host spec, library versions, binary SHA-256s and input-file hashes are recorded in the `provenance` block of `benches/benchmark_results.json`, and `benches/results/windows-cpu-readme-2026-10-13.verification.json` is an independent row-by-row re-check of the same run. These figures replace the earlier 0.76×/1.44×/1.30× numbers, which came from a different, unrecorded host and an older runtime (before `load()` became a lazy scan); the input data and pipeline are unchanged. Reproduce it yourself: ```bash git lfs pull # fetch examples/data (Git LFS) @@ -348,7 +348,7 @@ Xazz is pre-1.0. We would rather state what is **not** verified than let you dis - **No native Python extension yet.** `import xazz` is a pure-Python adapter over the CLI, not a PyO3 module — it returns the same diagnostics as the CLI but pays a subprocess boundary. The PyO3 path and the NumPy/Pandas → Arrow handoff are deferred. See [docs/ROADMAP.md](docs/ROADMAP.md) Track C4. - **`xazz emit rust` is a reference emitter, not a second runtime.** New language features land in `xazz-exec` first; the emitted Rust can lag on some training options (e.g. single-run `validation_split` / early stopping, per-epoch sweep columns). `xazz run` is the source of truth — treat the emitted code as readable reference output. - **The container image and clean-host smoke are pending the next tag.** The `Dockerfile` and `docker compose up` demo work from a local build, but the GHCR multi-arch image is published only on a `v*` tag, and the [clean-host smoke checklist](docs/DOCKER.md#smoke-checklist-clean-host) has not been recorded against a published tag yet. -- **Benchmarks are single-host and not yet provenance-stamped.** The numbers in [Performance](#performance) come from one development host and predate provenance capture — treat them as directional, not as a guarantee. `benches/run_readme_benchmark.py` now records host/OS/CPU/RAM/versions so the next run is reproducible. +- **Benchmarks are single-host.** The numbers in [Performance](#performance) are provenance-stamped but come from one Windows laptop; they have not been reproduced on a second host or on Linux/macOS yet, so read the ratios as representative, not as a guarantee. - **Not a sandbox.** `xazz-runner` is process isolation with an execution timeout, not an OS-level sandbox. Policy-as-Code blocks known-bad pipeline shapes before execution; see [docs/SECURITY_GUARDRAIL.md](docs/SECURITY_GUARDRAIL.md) for the `PATH`-shadowing deployment caveat. **Non-goals:** replacing pandas / Polars / DuckDB as compute engines, replacing PyTorch as a training framework, or competing on GPU kernel performance. Xazz is the compile-and-governance layer *above* those engines. diff --git a/README_kr.md b/README_kr.md index f04eb05..e17a4f4 100644 --- a/README_kr.md +++ b/README_kr.md @@ -236,19 +236,19 @@ Xazz는 모듈화된 Rust 워크스페이스입니다. CLI는 2–5 MB 경량 ## 성능 -동일한 4단계 파이프라인(널 제거 → 이중 필터 → 그룹 집계 → fill + count)을 실제 서울시 공기질 데이터(2008–2026, 원본 8개 파일)에 대해 pandas 3.0.5와 Xazz로 실행했습니다. 워밍업 1회 후 3회 측정의 중앙값, wall-clock 기준입니다. +동일한 4단계 파이프라인(널 제거 → 이중 필터 → 그룹 집계 → fill + count)을 실제 서울시 공기질 데이터(2008–2026, 원본 8개 파일)에 대해 pandas 3.0.6과 Xazz로 실행했습니다. 워밍업 1회 후 3회 측정의 중앙값이며, 각 엔진이 보고하는 내부 파이프라인 시간 기준입니다.
-벤치마크: 228K/912K/409만 행에서의 지연 시간 스케일링과 속도 향상 — pandas 대비 0.76배, 1.44배, 1.30배 +벤치마크: 228K/912K/409만 행에서의 지연 시간 스케일링과 속도 향상 — pandas 대비 2.04배, 3.84배, 2.14배
-- **작은 파일 이후로 더 빠름**: 912K 행에서 pandas 대비 1.44배(467 ms vs 671 ms), 409만 행에서 1.30배(3,070 ms vs 3,981 ms) — 최대 구간에서 피크 RSS도 더 낮습니다(567 MB vs 656 MB). 228K 행에서는 두 엔진이 대략 동등합니다(0.76배): 이 규모에서는 파일 로드·필터의 고정 오버헤드가 지배적이며 pandas도 약 0.2초면 읽습니다. +- **모든 규모에서 더 빠름**: 228K 행에서 pandas 대비 2.04배(76 ms vs 155 ms), 912K 행에서 3.84배(143 ms vs 548 ms), 409만 행에서 2.14배(1,148 ms vs 2,457 ms) — 모든 규모에서 피크 RSS도 더 낮습니다(409만 행 기준 405 MB vs 635 MB). 격차는 912K 행에서 가장 크고 409만 행에서 다시 좁혀집니다. - 양쪽 모두 **파이프라인 실행 시간만** 측정합니다 — Python 인터프리터 부팅(~0.3–0.7초)은 pandas에서 제외하고, Xazz는 자체 `[xazz:timing]` 파이프라인 마커를 보고하므로 공정한 비교입니다. 피크 RSS는 두 엔진 모두 프로세스 트리 기준으로 측정합니다. - 성능의 원천은 Apache Arrow 컬럼형 메모리 + Polars LazyFrame 쿼리 최적화 + 멀티스레드 네이티브 실행입니다. - **Out-of-core 실행:** `load()`가 이제 lazy 스캔(`scan_csv`/`scan_parquet`/`scan_ipc`)을 반환하므로, 소스는 최종 collect 전까지 디스크에 남아 있습니다 — 앞단에서 파일 전체를 메모리에 올리지 않습니다. 매우 큰 워크로드에서는 `XAZZ_STREAMING=1`을 설정해 Polars 스트리밍 엔진으로 collect하세요(미지원 플랜은 자동으로 인메모리로 폴백). [docs/ROADMAP.md](docs/ROADMAP.md) Track A2 참고. - 정직한 주석: Polars의 멀티스레딩은 지연 시간을 줄이는 대신 더 높은 피크 RSS를 치른다는 트레이드오프가 있습니다. 벤치마크 데이터 자체는 커밋되어 있지 않습니다(서울시 공기질 원본에서 생성). -**측정 프로비넌스.** 커밋된 수치는 개발 호스트 한 대에서 측정되었고 **프로비넌스 캡처 이전** 값이라 전체 CPU/OS/RAM 사양이 기록되어 있지 않습니다 — 방향성 지표로 보세요. 이제 `benches/run_readme_benchmark.py`가 `benches/benchmark_results.json`에 `provenance` 블록(플랫폼, OS, CPU 모델, 물리/논리 코어 수, 총 RAM, pandas/polars/Python 버전)을 기록하므로, 안정된 호스트에서 다음 실행을 하면 완전히 귀속된 수치가 됩니다. 직접 재현해 볼 수 있습니다: +**측정 프로비넌스.** 2026-10-13에 Windows 11 호스트 한 대에서 측정했습니다: Intel Core Ultra 9 185H(물리 16 / 논리 22코어), RAM 63.5 GiB, Python 3.12.12, pandas 3.0.6, NumPy 2.5.3, 커밋 `f1e55cb`의 release 빌드. 호스트 사양·라이브러리 버전·바이너리 SHA-256·입력 파일 해시는 `benches/benchmark_results.json`의 `provenance` 블록에 기록돼 있고, `benches/results/windows-cpu-readme-2026-10-13.verification.json`은 같은 실행을 행 단위로 다시 대조한 독립 검증 보고서입니다. 이 수치는 이전의 0.76배/1.44배/1.30배를 대체합니다. 이전 값은 사양이 기록되지 않은 다른 호스트에서 `load()`가 lazy 스캔이 되기 전 런타임으로 측정한 것이며, 입력 데이터와 파이프라인은 같습니다. 직접 재현해 볼 수 있습니다: ```bash git lfs pull # examples/data 가져오기 (Git LFS) @@ -342,7 +342,7 @@ Xazz는 pre-1.0입니다. 설치한 뒤에 알게 되는 것보다, **검증되 - **네이티브 Python 확장은 아직 없습니다.** `import xazz`는 CLI 위의 순수 Python 어댑터이며 PyO3 모듈이 아닙니다 — CLI와 동일한 진단을 돌려주지만 서브프로세스 경계 비용을 지불합니다. PyO3 경로와 NumPy/Pandas → Arrow 핸드오프는 보류 상태입니다. [docs/ROADMAP.md](docs/ROADMAP.md) Track C4 참고. - **`xazz emit rust`는 참조용 emitter이며 두 번째 런타임이 아닙니다.** 신규 기능은 `xazz-exec`에 먼저 들어가고, 생성된 Rust는 일부 학습 옵션(예: 단일 실행 `validation_split`/조기 종료, 스윕의 per-epoch 열)에서 뒤처질 수 있습니다. 정본은 `xazz run`이며, emit 결과는 읽기 좋은 참조 코드로 취급하세요. - **컨테이너 이미지·클린 호스트 스모크는 다음 태그 대기 중입니다.** `Dockerfile`과 `docker compose up` 데모는 로컬 빌드로 동작하지만, GHCR 멀티아키 이미지는 `v*` 태그에서만 게시되며, [클린 호스트 스모크 체크리스트](docs/DOCKER.md#smoke-checklist-clean-host)는 아직 게시된 태그에 대해 기록되지 않았습니다. -- **벤치마크는 단일 호스트 측정이며 프로비넌스가 아직 기록되지 않았습니다.** [성능](#성능) 섹션의 수치는 개발 호스트 한 대에서 나온 것이고 프로비넌스 캡처 이전 값입니다 — 보장이 아니라 방향성 지표로 보세요. 이제 `benches/run_readme_benchmark.py`가 호스트/OS/CPU/RAM/버전을 기록하므로 다음 실행은 재현 가능합니다. +- **벤치마크는 단일 호스트 측정입니다.** [성능](#성능) 섹션의 수치는 프로비넌스가 기록돼 있지만 Windows 노트북 한 대에서 나온 값입니다. 아직 두 번째 호스트나 Linux/macOS에서 재현하지 않았으므로 비율은 대표값으로 보고 보장으로 읽지 마세요. - **샌드박스가 아닙니다.** `xazz-runner`는 실행 타임아웃을 동반한 프로세스 격리이지 OS 수준 샌드박스가 아닙니다. Policy-as-Code는 실행 전에 알려진 위험 파이프라인 형태를 차단하며, `PATH` 섀도잉 배포 주의사항은 [docs/SECURITY_GUARDRAIL.md](docs/SECURITY_GUARDRAIL.md)를 참고하세요. **비목표:** pandas / Polars / DuckDB를 연산 엔진으로 대체하거나, PyTorch를 학습 프레임워크로 대체하거나, GPU 커널 성능으로 경쟁하는 것이 아닙니다. Xazz는 그 엔진들 *위의* 컴파일·거버넌스 계층입니다. diff --git a/benches/benchmark_results.json b/benches/benchmark_results.json index e8f36bd..98be96d 100644 --- a/benches/benchmark_results.json +++ b/benches/benchmark_results.json @@ -1,128 +1,459 @@ { "small": { + "rows": 227760, "pandas": { - "latency_ms": 172.2, - "peak_mb": 100.0, + "latency_ms": 155.1, + "peak_mb": 101.4, "runs": [ { - "latency_ms": 161.4, - "peak_mb": 99.9 + "latency_ms": 149.3538, + "peak_mb": 99.5 }, { - "latency_ms": 172.3, - "peak_mb": 100.4 + "latency_ms": 155.0584, + "peak_mb": 105.77734375 }, { - "latency_ms": 172.2, - "peak_mb": 100.0 + "latency_ms": 171.0942, + "peak_mb": 101.41015625 } ] }, "xazz": { - "latency_ms": 225.2, - "peak_mb": 90.9, + "latency_ms": 76.1, + "peak_mb": 60.8, "runs": [ { - "latency_ms": 218.8, - "peak_mb": 91.4, - "fallback_to_wallclock": false + "latency_ms": 81.4703, + "peak_mb": 59.8359375, + "fallback_to_wallclock": false, + "collections": [ + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + } + ] }, { - "latency_ms": 225.2, - "peak_mb": 87.8, - "fallback_to_wallclock": false + "latency_ms": 74.3399, + "peak_mb": 61.0546875, + "fallback_to_wallclock": false, + "collections": [ + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + } + ] }, { - "latency_ms": 237.5, - "peak_mb": 90.9, - "fallback_to_wallclock": false + "latency_ms": 76.0959, + "peak_mb": 60.78515625, + "fallback_to_wallclock": false, + "collections": [ + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + } + ] + } + ], + "collection_diagnostics_verified": true, + "warmup_collections": [ + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" } ] - }, - "rows": 227760 + } }, "medium": { + "rows": 911662, "pandas": { - "latency_ms": 671.3, - "peak_mb": 198.6, + "latency_ms": 548.0, + "peak_mb": 192.1, "runs": [ { - "latency_ms": 654.8, - "peak_mb": 198.2 + "latency_ms": 560.9774, + "peak_mb": 192.1328125 }, { - "latency_ms": 705.1, - "peak_mb": 198.6 + "latency_ms": 524.9185, + "peak_mb": 193.328125 }, { - "latency_ms": 671.3, - "peak_mb": 199.1 + "latency_ms": 547.9917, + "peak_mb": 186.0078125 } ] }, "xazz": { - "latency_ms": 466.6, - "peak_mb": 240.4, + "latency_ms": 142.8, + "peak_mb": 128.8, "runs": [ { - "latency_ms": 440.4, - "peak_mb": 242.7, - "fallback_to_wallclock": false + "latency_ms": 142.8084, + "peak_mb": 128.83984375, + "fallback_to_wallclock": false, + "collections": [ + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + } + ] }, { - "latency_ms": 466.6, - "peak_mb": 240.4, - "fallback_to_wallclock": false + "latency_ms": 136.1128, + "peak_mb": 126.40234375, + "fallback_to_wallclock": false, + "collections": [ + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + } + ] }, { - "latency_ms": 476.6, - "peak_mb": 238.9, - "fallback_to_wallclock": false + "latency_ms": 173.52190000000002, + "peak_mb": 145.14453125, + "fallback_to_wallclock": false, + "collections": [ + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + } + ] + } + ], + "collection_diagnostics_verified": true, + "warmup_collections": [ + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" } ] - }, - "rows": 911662 + } }, "large": { + "rows": 4089216, "pandas": { - "latency_ms": 3981.1, - "peak_mb": 655.9, + "latency_ms": 2456.6, + "peak_mb": 634.9, "runs": [ { - "latency_ms": 3786.7, - "peak_mb": 655.7 + "latency_ms": 2663.5783, + "peak_mb": 630.23046875 }, { - "latency_ms": 3981.1, - "peak_mb": 655.9 + "latency_ms": 2432.5831, + "peak_mb": 634.875 }, { - "latency_ms": 5148.6, - "peak_mb": 655.9 + "latency_ms": 2456.6109, + "peak_mb": 641.48828125 } ] }, "xazz": { - "latency_ms": 3070.4, - "peak_mb": 566.8, + "latency_ms": 1148.1, + "peak_mb": 404.8, "runs": [ { - "latency_ms": 2927.7, - "peak_mb": 566.8, - "fallback_to_wallclock": false + "latency_ms": 1167.8485, + "peak_mb": 404.78515625, + "fallback_to_wallclock": false, + "collections": [ + { + "engine": "streaming", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "streaming", + "requested": "auto", + "status": "ok" + } + ] }, { - "latency_ms": 3070.4, - "peak_mb": 565.4, - "fallback_to_wallclock": false + "latency_ms": 1148.1143, + "peak_mb": 403.3046875, + "fallback_to_wallclock": false, + "collections": [ + { + "engine": "streaming", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "streaming", + "requested": "auto", + "status": "ok" + } + ] }, { - "latency_ms": 3195.2, - "peak_mb": 567.0, - "fallback_to_wallclock": false + "latency_ms": 1141.3046, + "peak_mb": 412.796875, + "fallback_to_wallclock": false, + "collections": [ + { + "engine": "streaming", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "streaming", + "requested": "auto", + "status": "ok" + } + ] + } + ], + "collection_diagnostics_verified": true, + "warmup_collections": [ + { + "engine": "streaming", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "in-memory", + "requested": "auto", + "status": "ok" + }, + { + "engine": "streaming", + "requested": "auto", + "status": "ok" } ] + } + }, + "provenance": { + "recorded": true, + "platform": "Windows-11-10.0.26200-SP0", + "system": "Windows", + "release": "11", + "machine": "AMD64", + "processor": "Intel64 Family 6 Model 170 Stepping 4, GenuineIntel", + "cpu_model": "Intel64 Family 6 Model 170 Stepping 4, GenuineIntel", + "cpu_physical_cores": 16, + "cpu_logical_cores": 22, + "total_ram_gb": 63.5, + "python": "3.12.12", + "pandas": "3.0.6", + "polars": null, + "numpy": "2.5.3", + "xazz": "xazz 0.3.1", + "xazz_version_verified": true, + "xazz_binary": "C:\\Users\\SSAFY\\Desktop\\Xazz\\target\\release\\xazz.exe", + "binary_sha256": { + "xazz.exe": "2bda42637284c49f2b05093ea87a6e20a55322fb0c0b38d964f783c94a863de0", + "xazz-runner.exe": "7d69909ccb707a0081c8a7c357d7e52c5cdebfe4340f011b6981366311053850", + "xazz-exec.exe": "935404f17d87f0b72a9d3f8a5d400e3427bf92053f9a3c157da752fbe71afa44" }, - "rows": 4089216 + "streaming_requested_modes": [ + "auto" + ], + "streaming_actual_engine_verified": false, + "streaming_note": "각 실행의 네 수집 완료 마커로 런타임이 선택한 Polars 수집 API를 검증합니다. Polars 내부 모든 노드의 스트리밍 실행이나 메모리 상한을 보증하지 않습니다.", + "rss_method": "프로세스 트리 RSS 합계의 3ms 폴링 최댓값(MiB)", + "latency_method": "각 엔진 내부 파이프라인 실행시간; wall-clock 대체 금지", + "recorded_at_utc": "2026-10-13T00:57:30.006522+00:00", + "git_head": "f1e55cb1428af26eea1c3c17db155078f4a45e38", + "git_worktree_status": "?? benches/benchmark_results-logs-s5int_be/", + "runtime_source_sha256": "5bad98bc3d0ec311ab15053b55162f2fb2af4e044142e339ca0812876603a18a", + "benchmark_script_sha256": "481dd8c3a113bb65b336878385c49ae934f34b188ec6f5e0f73e6c448e5d0807", + "pipeline_template_sha256": "c877ce70b9716b19e1a0a07458d065b0f93d922c83c9aa05587945ae47507e47", + "pandas_pipeline_sha256": "f1a52693e63d73a0130a5783d29e7e9063c4f353a7d6ae6548cc0d0653e18bf3", + "summary_latency_resolution_ms": 0.1, + "warmup_runs": 1, + "measured_runs": 3, + "timeout_seconds": 120.0, + "max_memory_mb": 4096.0, + "raw_logs": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be", + "inputs": { + "small": { + "file": "scale_small.csv", + "rows": 227760, + "bytes": 7357329, + "sha256": "97798b9ce37584f36b9d94c10fdac94b50e3bbffd61e3bb381d6db56243fafc9" + }, + "medium": { + "file": "scale_medium.csv", + "rows": 911662, + "bytes": 29572815, + "sha256": "ccbd994082967e33e034e643a1d3cf11c85e1ccaefa4e0831dc9639cfa710fee" + }, + "large": { + "file": "scale_large.csv", + "rows": 4089216, + "bytes": 132764264, + "sha256": "fa64aeb438facff214f46e78659a9648a9fbcfa17b2c8140c085c9af0846f5ac" + } + } } } \ No newline at end of file diff --git a/benches/render_benchmark_chart.py b/benches/render_benchmark_chart.py index 45553b4..9ef74fb 100644 --- a/benches/render_benchmark_chart.py +++ b/benches/render_benchmark_chart.py @@ -52,7 +52,7 @@ ax.annotate(f"{x:,.0f} ms", (i, x), textcoords="offset points", xytext=(0, -15), ha="center", fontsize=9, color=NAVY, fontweight="bold") ax.set_yscale("log") -ax.set_ylim(100, 12000) +ax.set_ylim(40, 12000) ax.set_ylabel("Pipeline latency (ms, log scale)", color=INK) ax.set_title("End-to-end pipeline latency", fontsize=12, fontweight="bold", color=INK, pad=10) ax.yaxis.grid(True, color=GRID, linewidth=0.8) diff --git a/benches/results/windows-cpu-readme-2026-10-13-evidence.zip b/benches/results/windows-cpu-readme-2026-10-13-evidence.zip new file mode 100644 index 0000000..aab1439 Binary files /dev/null and b/benches/results/windows-cpu-readme-2026-10-13-evidence.zip differ diff --git a/benches/results/windows-cpu-readme-2026-10-13.verification.json b/benches/results/windows-cpu-readme-2026-10-13.verification.json new file mode 100644 index 0000000..db8288b --- /dev/null +++ b/benches/results/windows-cpu-readme-2026-10-13.verification.json @@ -0,0 +1,498 @@ +{ + "status": "ok", + "results": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results.json", + "raw_logs": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be", + "recorded_raw_logs": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be", + "limitations": [ + "P2/P3/P4는 실제 출력 행 수를 대조했으며 전체 셀은 로그에 없어 대조하지 않았습니다.", + "지연·RSS·중앙값과 수집 API 마커는 이 계산 결과 대조기의 검사 대상이 아닙니다. 별도 측정기가 검사·기록합니다.", + "P3 합계·P4 평균 top10은 독립 계산값이며 실제 엔진 셀과 일치한다고 보증하지 않습니다.", + "pandas는 result_rows만 출력하므로 pandas P7 셀은 대조하지 않았습니다.", + "P7 5위 동점에서 선택되는 측정소와 동점끼리의 순서는 고정하지 않습니다." + ], + "scales": { + "small": { + "independent": { + "rows": 227760, + "bytes": 7357329, + "sha256": "97798b9ce37584f36b9d94c10fdac94b50e3bbffd61e3bb381d6db56243fafc9", + "result_rows": { + "p2": 151346, + "p3": 26, + "p4": 10, + "p7": 5 + }, + "p3_sums": { + "강남구": 225672.0, + "강동구": 237728.0, + "강북구": 233342.0, + "강서구": 251593.0, + "관악구": 238039.0, + "광진구": 222831.0, + "구로구": 210917.0, + "금천구": 213323.0, + "노원구": 246396.0, + "도봉구": 195223.0, + "동대문구": 224325.0, + "동작구": 254636.0, + "마포구": 207780.0, + "서대문구": 195081.0, + "서초구": 191593.0, + "성동구": 228531.0, + "성북구": 226140.0, + "송파구": 237441.0, + "양천구": 246143.0, + "영등포구": 227346.0, + "용산구": 239090.0, + "은평구": 206130.0, + "종로구": 228811.0, + "중구": 214166.0, + "중랑구": 232194.0, + "평균": 234932.0 + }, + "p4_top10": [ + { + "station": "구로구", + "pm10": 44.96205499893413 + }, + { + "station": "강서구", + "pm10": 42.63565497373327 + }, + { + "station": "성동구", + "pm10": 41.445593035908594 + }, + { + "station": "서초구", + "pm10": 41.06150878696957 + }, + { + "station": "성북구", + "pm10": 40.83423618634886 + }, + { + "station": "강북구", + "pm10": 40.18980365139511 + }, + { + "station": "강동구", + "pm10": 40.06201550387597 + }, + { + "station": "관악구", + "pm10": 39.56765292553192 + }, + { + "station": "동대문구", + "pm10": 39.29322122963742 + }, + { + "station": "서대문구", + "pm10": 39.180759188592084 + } + ], + "p7_counts": { + "평균": 1270, + "강남구": 1178, + "강동구": 1400, + "강북구": 1330, + "강서구": 1648, + "관악구": 1298, + "광진구": 1085, + "구로구": 1565, + "노원구": 1311, + "도봉구": 1126, + "동대문구": 1249, + "동작구": 1429, + "마포구": 957, + "서대문구": 1103, + "서초구": 1355, + "성동구": 1359, + "성북구": 1486, + "용산구": 1170, + "종로구": 1120, + "중구": 987, + "중랑구": 1204, + "송파구": 1274, + "양천구": 1400, + "은평구": 1204, + "금천구": 1134, + "영등포구": 1128 + } + }, + "checked_runs": [ + { + "engine": "pandas", + "run": 0, + "warmup": true, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_small-pandas-0" + }, + { + "engine": "pandas", + "run": 1, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_small-pandas-1" + }, + { + "engine": "pandas", + "run": 2, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_small-pandas-2" + }, + { + "engine": "pandas", + "run": 3, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_small-pandas-3" + }, + { + "engine": "xazz-auto", + "run": 0, + "warmup": true, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_small-xazz-auto-0" + }, + { + "engine": "xazz-auto", + "run": 1, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_small-xazz-auto-1" + }, + { + "engine": "xazz-auto", + "run": 2, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_small-xazz-auto-2" + }, + { + "engine": "xazz-auto", + "run": 3, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_small-xazz-auto-3" + } + ] + }, + "medium": { + "independent": { + "rows": 911662, + "bytes": 29572815, + "sha256": "ccbd994082967e33e034e643a1d3cf11c85e1ccaefa4e0831dc9639cfa710fee", + "result_rows": { + "p2": 619170, + "p3": 26, + "p4": 10, + "p7": 5 + }, + "p3_sums": { + "강남구": 975664.0, + "강동구": 1029062.0, + "강북구": 1024026.0, + "강서구": 1064328.0, + "관악구": 1006420.0, + "광진구": 954340.0, + "구로구": 911033.0, + "금천구": 989470.0, + "노원구": 1023632.0, + "도봉구": 859788.0, + "동대문구": 972625.0, + "동작구": 1081167.0, + "마포구": 915280.0, + "서대문구": 848756.0, + "서초구": 949825.0, + "성동구": 981956.0, + "성북구": 935093.0, + "송파구": 1009931.0, + "양천구": 1062524.0, + "영등포구": 967314.0, + "용산구": 1016149.0, + "은평구": 898162.0, + "종로구": 1010526.0, + "중구": 949368.0, + "중랑구": 985493.0, + "평균": 1017536.0 + }, + "p4_top10": [ + { + "station": "구로구", + "pm10": 46.25472177091795 + }, + { + "station": "서초구", + "pm10": 45.655883483945395 + }, + { + "station": "강서구", + "pm10": 43.902487315926244 + }, + { + "station": "성북구", + "pm10": 43.395813996658624 + }, + { + "station": "동작구", + "pm10": 42.18859015881687 + }, + { + "station": "양천구", + "pm10": 42.18206359919012 + }, + { + "station": "강동구", + "pm10": 42.13150460593654 + }, + { + "station": "강북구", + "pm10": 42.130585040730686 + }, + { + "station": "관악구", + "pm10": 41.840026606801366 + }, + { + "station": "송파구", + "pm10": 40.801995798319325 + } + ], + "p7_counts": { + "서대문구": 5836, + "성동구": 6157, + "종로구": 6329, + "노원구": 6270, + "강동구": 6934, + "강북구": 6879, + "도봉구": 5743, + "중랑구": 6029, + "평균": 6403, + "광진구": 5795, + "동대문구": 6134, + "성북구": 7126, + "강남구": 5710, + "강서구": 7864, + "관악구": 6427, + "금천구": 5928, + "동작구": 7166, + "마포구": 5058, + "서초구": 7693, + "송파구": 6365, + "양천구": 7223, + "영등포구": 5750, + "용산구": 6273, + "중구": 5789, + "구로구": 7472, + "은평구": 6170 + } + }, + "checked_runs": [ + { + "engine": "pandas", + "run": 0, + "warmup": true, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_medium-pandas-0" + }, + { + "engine": "pandas", + "run": 1, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_medium-pandas-1" + }, + { + "engine": "pandas", + "run": 2, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_medium-pandas-2" + }, + { + "engine": "pandas", + "run": 3, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_medium-pandas-3" + }, + { + "engine": "xazz-auto", + "run": 0, + "warmup": true, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_medium-xazz-auto-0" + }, + { + "engine": "xazz-auto", + "run": 1, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_medium-xazz-auto-1" + }, + { + "engine": "xazz-auto", + "run": 2, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_medium-xazz-auto-2" + }, + { + "engine": "xazz-auto", + "run": 3, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_medium-xazz-auto-3" + } + ] + }, + "large": { + "independent": { + "rows": 4089216, + "bytes": 132764264, + "sha256": "fa64aeb438facff214f46e78659a9648a9fbcfa17b2c8140c085c9af0846f5ac", + "result_rows": { + "p2": 2983785, + "p3": 26, + "p4": 10, + "p7": 5 + }, + "p3_sums": { + "강남구": 5265250.0, + "강동구": 5349594.0, + "강북구": 5146155.0, + "강서구": 5440645.0, + "관악구": 5471203.0, + "광진구": 5056013.0, + "구로구": 5259408.0, + "금천구": 5270811.0, + "노원구": 5195750.0, + "도봉구": 4861583.0, + "동대문구": 5219100.0, + "동작구": 5261200.0, + "마포구": 5292812.0, + "서대문구": 4788836.0, + "서초구": 5327744.0, + "성동구": 5362205.0, + "성북구": 4982908.0, + "송파구": 5206832.0, + "양천구": 5432739.0, + "영등포구": 5510197.0, + "용산구": 5254194.0, + "은평구": 5030277.0, + "종로구": 5245501.0, + "중구": 5115876.0, + "중랑구": 5163301.0, + "평균": 5571191.0 + }, + "p4_top10": [ + { + "station": "서초구", + "pm10": 48.547460885887936 + }, + { + "station": "구로구", + "pm10": 48.14279699027882 + }, + { + "station": "강서구", + "pm10": 47.48668959257061 + }, + { + "station": "관악구", + "pm10": 46.885041218914424 + }, + { + "station": "강동구", + "pm10": 46.733997850946544 + }, + { + "station": "성동구", + "pm10": 46.599099686280645 + }, + { + "station": "영등포구", + "pm10": 46.28006416824847 + }, + { + "station": "서대문구", + "pm10": 45.99608121866416 + }, + { + "station": "양천구", + "pm10": 45.81496879743633 + }, + { + "station": "성북구", + "pm10": 45.71684939676132 + } + ], + "p7_counts": { + "평균": 43404, + "강남구": 42471, + "강동구": 45001, + "강북구": 39842, + "강서구": 47130, + "관악구": 45866, + "광진구": 40552, + "구로구": 46688, + "금천구": 40527, + "노원구": 40692, + "도봉구": 38860, + "동대문구": 42151, + "동작구": 41932, + "마포구": 43214, + "서대문구": 41872, + "서초구": 47966, + "성동구": 45121, + "성북구": 40716, + "송파구": 41294, + "양천구": 44240, + "영등포구": 46060, + "용산구": 40097, + "은평구": 41136, + "종로구": 41339, + "중구": 38905, + "중랑구": 41738 + } + }, + "checked_runs": [ + { + "engine": "pandas", + "run": 0, + "warmup": true, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_large-pandas-0" + }, + { + "engine": "pandas", + "run": 1, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_large-pandas-1" + }, + { + "engine": "pandas", + "run": 2, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_large-pandas-2" + }, + { + "engine": "pandas", + "run": 3, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_large-pandas-3" + }, + { + "engine": "xazz-auto", + "run": 0, + "warmup": true, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_large-xazz-auto-0" + }, + { + "engine": "xazz-auto", + "run": 1, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_large-xazz-auto-1" + }, + { + "engine": "xazz-auto", + "run": 2, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_large-xazz-auto-2" + }, + { + "engine": "xazz-auto", + "run": 3, + "warmup": false, + "log_base": "C:\\Users\\SSAFY\\Desktop\\Xazz\\benches\\benchmark_results-logs-s5int_be\\scale_large-xazz-auto-3" + } + ] + } + } +} \ No newline at end of file diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 60dad65..2257c43 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -10,7 +10,7 @@ Xazz is already a **correct, secure, documented** compiler+runtime: Typed IR (single-pass, backend-independent), 3-gate policy guardrails, (ε,δ) DP accounting, SHA-256 audit chain, -and a 1.44×-vs-pandas benchmark (at 912K rows; 1.30× at 4.09M rows, break-even at 228K). What it is not yet is **scalable** — in four distinct senses: +and a 2–4×-vs-pandas benchmark (2.04× at 228K, 3.84× at 912K, 2.14× at 4.09M rows). What it is not yet is **scalable** — in four distinct senses: | Sense of scale | Current ceiling | To grow past it | | :--- | :--- | :--- | @@ -41,6 +41,7 @@ datasets. This track makes Xazz handle real workloads. - [x] Extend `benches/` scale suite to 200M rows (synthetic, `--xlarge` opt-in) - [x] Document peak-RSS vs latency tradeoff already noted in README - Measured 2026-09-28: 0.76×/1.44×/1.30× vs pandas at 228K/912K/4.09M rows; lower peak RSS at scale. +- Measured 2026-10-13 (provenance-stamped, Windows / Core Ultra 9 185H): 2.04×/3.84×/2.14× at 228K/912K/4.09M rows; lower peak RSS at every scale. Supersedes the 2026-09-28 figures. ### A3. External source connectors — issue #54 - [x] Embedded DuckDB source (`load("duckdb://...")`), SQL text in `.xzz` — `duckdb://:memory:?sql=...` diff --git a/docs/assets/benchmark_chart.png b/docs/assets/benchmark_chart.png index 96c07a4..7c8622c 100644 Binary files a/docs/assets/benchmark_chart.png and b/docs/assets/benchmark_chart.png differ