perf: use autocommit for single-statement reads

This commit is contained in:
2026-10-16 01:41:12 +03:00
parent dad0d35622
commit e2be4787c7
10 changed files with 133 additions and 40 deletions
+64
View File
@@ -0,0 +1,64 @@
# Что доказывает: перед основным замером H7 прошли проверки приложения,
# транзакционного отката и отказов; короткая самопроверка стенда успешна.
# Дата UTC: 2026-10-15 (16 октября по Europe/Moscow).
# Окружение: Apple M4, macOS 26.6.2; Docker 28.0.4,
# Compose 2.34.0-desktop.1; pytest на Python 3.13.7.
# Код: src_sha256 5880b0252c5fd7bb68fd1771ab198c48da080e847753e7612635775fab02b4aa.
# Git: изменения H7 поверх dad0d35, до локального коммита кандидата.
# Стенды: отдельные isolated (LB, две реплики), failures, vlad-bench.
# Вывод сокращён (...); полные журналы текущего запуска:
# /tmp/lab3-h7-isolated.log, /tmp/lab3-h7-failure.log,
# /tmp/lab3-h7-quick.log. Числа quick не используются как результат исследования.
$ make fmt
uv run ruff format .
101 files left unchanged
uv run ruff check --fix .
All checks passed!
$ make lint
uv run ruff format --check .
101 files already formatted
uv run ruff check .
All checks passed!
$ make check
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
$ make requirements-check
uv export --frozen --no-dev --no-emit-project --no-header --format requirements.txt | diff -u requirements.txt - && echo "requirements.txt matches uv.lock"
requirements.txt matches uv.lock
$ make test-isolated
python3 student-tests/stand.py isolated
...
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
...
====================== 84 passed, 15 deselected in 11.60s ======================
...
{"observed_instances_before": 2, "successful_writes": 116, "failed_attempts": 0, "first_recovery_seconds": 1.081}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
...
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
[isolated] cleanup
[isolated] results: {'test': 0, 'student-test': 0, 'test-failover': 0, 'test-persistence': 0}
$ make failure-checks
python3 student-tests/stand.py failures
...
====================== 15 passed, 84 deselected in 42.43s ======================
[failures] cleanup
[failures] results: {'fault': 0}
$ make bench-scaling-quick
...
[01:40:11] done: evidence/scaling/quick-scaling-20261015T223534Z
# Проверка meta.json и searches.csv этой самопроверки Python-скриптом:
Quick label: quick-scaling-20261015T223534Z
finished: 2026-10-15T22:40:11Z aborted: None
host_warnings: []
...
Quick validation: PASS
# В searches.csv две ячейки, flags пусты, generator_bound=False у обеих.