{ "label": "baseline", "status": "complete", "started_at": "2026-10-23T15:06:49+00:00", "command": "uv run python bench/run.py --profile reconcile --label baseline", "git": { "commit": "d8b8ae3", "dirty": false }, "overrides": {}, "host_state": { "start": { "swap_used_mib": 1267.69, "swap_total_mib": 2048.0, "swapouts": 1541596, "memory_free_percent": 65, "power": "AC Power", "battery_percent": 80 }, "end": { "swap_used_mib": 1251.69, "swap_total_mib": 2048.0, "swapouts": 1541596, "memory_free_percent": 60, "power": "AC Power", "battery_percent": 80 }, "swapouts_delta": 0, "slept_seconds": 0 }, "host_warnings": [], "other_containers": [], "app_image": { "tag": "mtusi-messenger:bench", "id": "sha256:a23df86b071acb886f5e93bd60c65d41d6e8cb19b257355d6e3e9e15c923c973", "versions": { "python": "3.12.14", "fastapi": "0.141.1", "starlette": "1.7.0", "pydantic": "2.13.5", "uvicorn": "0.54.0", "sqlalchemy": "2.1.1", "asyncpg": "0.31.0", "redis": "8.1.0" } }, "generator": { "image": "grafana/k6:2.3.0@sha256:9c2dee7f8ed74d317e4027c06a10f169b625638189de8d4555d0b3486a5aeb34", "version": "k6 v2.3.0 (commit/e088784614, go1.27.1, linux/arm64)" }, "docker": { "server": "29.9.2", "vm_os": "Docker Desktop", "kernel": "7.0.14-linuxkit", "vm_cpus": 12, "vm_memory_gib": 7.7, "cgroup": "2", "logging_driver": "local" }, "host": { "os": "macOS 26.6.2", "machine": "Apple M3 Pro", "memory_gib": 18.0, "performance_cores": 6, "efficiency_cores": 6 }, "profile": { "name": "reconcile", "sizes": [], "concurrency": [], "repeats": 3, "read_warmup_s": 0, "read_measure_s": 0, "write_warmup": 0, "write_measure": 0, "prefill_chunk": 25000, "prefill_vus": 32, "text_length": 64, "page_limit": 50, "walk_limit": 100, "cursor_pool": 1000, "members": 1, "seed": 20260930, "warmup_seed_shift": 1000003, "generator_cpu_limit": 4.0, "cpus": "1", "memory": "512m", "db_cpus": "2", "db_memory": "1g", "cache_cpus": "0.5", "cache_memory": "128m", "session_ttl_seconds": 21600, "background": [], "index_variants": [ [ "chat_only", "(chat_id)" ], [ "covering", "(chat_id, created_at, id) INCLUDE (sender_id, text)" ] ], "write_probe_rows": 20000, "write_probe_repeats": 3, "restore": false, "restore_jobs": 4, "restore_write_load": 5000, "restore_write_vus": 10, "replicas": 2, "lb_cpus": "1", "lb_memory": "256m", "failover_modes": [], "failover_write_rate": 0, "failover_read_rate": 0, "failover_before_s": 0, "failover_down_s": 0, "failover_after_s": 0, "failover_success": 0.99, "failover_pre_vus": 600, "failover_max_vus": 1500, "rollout_from": "", "rollout_before_s": 0, "rollout_budget_s": 0, "rollout_after_s": 0, "sample_resources": false, "uploads_variants": [], "uploads_before": "", "uploads_sizes": [], "uploads_clients": [], "uploads_ramp_s": 3, "uploads_window_s": 20, "uploads_unlimited_env": [ [ "UPLOADS__MAX_CONCURRENT", "1000" ], [ "UPLOADS__MAX_WAITING", "0" ] ], "uploads_sample_interval_s": 0.2, "s3_cpus": "1", "s3_memory": "512m", "cleaner_cpus": "0.25", "cleaner_memory": "256m", "reconcile_stages": [ [ "A", true, 1000, 1048576, [ "batch", "deep", "deep-fast" ] ], [ "B", true, 10000, 4096, [ "batch", "head", "deep" ] ], [ "C", false, 30000, 4096, [ "batch", "head" ] ], [ "D", false, 100000, 4096, [ "batch", "stand", "stand-unlimited", "fast-unlimited", "fast-limited" ] ] ], "reconcile_before": "7f4e626", "reconcile_s4_clean": 10000, "reconcile_s4_candidates": [ 1000, 10000 ], "reconcile_s4_max_changes": 100, "reconcile_grace_s": 30, "reconcile_fresh_wait_s": 2, "reconcile_fast_cpus": "1", "reconcile_default_rate": 2000, "reconcile_background": [ [ "download", 300 ], [ "write", 50 ], [ "read", 50 ] ], "reconcile_downloads": 5000, "reconcile_bg_max_vus": 600, "reconcile_quiet_s": 30, "reconcile_fill_processes": 3, "reconcile_fill_threads": 24, "reconcile_sample_interval_s": 0.5, "reconcile_metrics_port": 9327, "reconcile_h1_stages": [ "B", "C", "D" ], "reconcile_h2_stages": [ "B", "C" ], "reconcile_h3_stages": [ "B", "A" ], "reconcile_s4_base": "B", "db_max_connections": 100, "series": "", "configs": [], "write_chats": 1, "mix": [], "fixed_rps": [], "ladder_base": 100, "step_factor": 1.25, "start_rps_per_replica": 300, "bisect_steps": 2, "max_steps": 12, "first_warmup_s": 15, "step_warmup_s": 5, "step_measure_s": 20, "cooldown_s": 10, "slo_p95_ms": 200, "slo_error_ratio": 0.01, "abort_error_ratio": 0.5, "abort_p95_ms": 2000, "request_timeout_s": 15, "prevus_per_rps": 0.05, "vus_per_rps": 0.2, "generator_cpus": "", "generator_memory": "", "sampler_cpus": "0.25", "sampler_memory": "128m", "sample_interval_s": 1.0, "order_seed": 20261011 }, "sizes": [], "reconcile": { "before_commit": "7f4e626", "plan": [ { "pass": "A-deep-fast-r1", "stage": "A", "cell": "deep-fast", "repeat": 1, "order": 1, "load": false }, { "pass": "A-batch-r1", "stage": "A", "cell": "batch", "repeat": 1, "order": 2, "load": false }, { "pass": "A-deep-r1", "stage": "A", "cell": "deep", "repeat": 1, "order": 3, "load": false }, { "pass": "A-batch-r2", "stage": "A", "cell": "batch", "repeat": 2, "order": 4, "load": false }, { "pass": "A-deep-r2", "stage": "A", "cell": "deep", "repeat": 2, "order": 5, "load": false }, { "pass": "A-deep-fast-r2", "stage": "A", "cell": "deep-fast", "repeat": 2, "order": 6, "load": false }, { "pass": "A-deep-r3", "stage": "A", "cell": "deep", "repeat": 3, "order": 7, "load": false }, { "pass": "A-batch-r3", "stage": "A", "cell": "batch", "repeat": 3, "order": 8, "load": false }, { "pass": "A-deep-fast-r3", "stage": "A", "cell": "deep-fast", "repeat": 3, "order": 9, "load": false }, { "pass": "B-head-r1", "stage": "B", "cell": "head", "repeat": 1, "order": 10, "load": false }, { "pass": "B-deep-r1", "stage": "B", "cell": "deep", "repeat": 1, "order": 11, "load": false }, { "pass": "B-batch-r1", "stage": "B", "cell": "batch", "repeat": 1, "order": 12, "load": false }, { "pass": "B-head-r2", "stage": "B", "cell": "head", "repeat": 2, "order": 13, "load": false }, { "pass": "B-deep-r2", "stage": "B", "cell": "deep", "repeat": 2, "order": 14, "load": false }, { "pass": "B-batch-r2", "stage": "B", "cell": "batch", "repeat": 2, "order": 15, "load": false }, { "pass": "B-head-r3", "stage": "B", "cell": "head", "repeat": 3, "order": 16, "load": false }, { "pass": "B-deep-r3", "stage": "B", "cell": "deep", "repeat": 3, "order": 17, "load": false }, { "pass": "B-batch-r3", "stage": "B", "cell": "batch", "repeat": 3, "order": 18, "load": false }, { "pass": "C-batch-r1", "stage": "C", "cell": "batch", "repeat": 1, "order": 19, "load": false }, { "pass": "C-head-r1", "stage": "C", "cell": "head", "repeat": 1, "order": 20, "load": false }, { "pass": "C-batch-r2", "stage": "C", "cell": "batch", "repeat": 2, "order": 21, "load": false }, { "pass": "C-head-r2", "stage": "C", "cell": "head", "repeat": 2, "order": 22, "load": false }, { "pass": "C-batch-r3", "stage": "C", "cell": "batch", "repeat": 3, "order": 23, "load": false }, { "pass": "C-head-r3", "stage": "C", "cell": "head", "repeat": 3, "order": 24, "load": false }, { "pass": "D-batch-r1", "stage": "D", "cell": "batch", "repeat": 1, "order": 25, "load": false }, { "pass": "D-batch-r2", "stage": "D", "cell": "batch", "repeat": 2, "order": 26, "load": false }, { "pass": "D-batch-r3", "stage": "D", "cell": "batch", "repeat": 3, "order": 27, "load": false }, { "pass": "D-fast-limited-r1", "stage": "D", "cell": "fast-limited", "repeat": 1, "order": 28, "load": true }, { "pass": "D-stand-unlimited-r1", "stage": "D", "cell": "stand-unlimited", "repeat": 1, "order": 29, "load": true }, { "pass": "D-stand-r1", "stage": "D", "cell": "stand", "repeat": 1, "order": 30, "load": true }, { "pass": "D-fast-unlimited-r1", "stage": "D", "cell": "fast-unlimited", "repeat": 1, "order": 31, "load": true }, { "pass": "D-stand-unlimited-r2", "stage": "D", "cell": "stand-unlimited", "repeat": 2, "order": 32, "load": true }, { "pass": "D-fast-limited-r2", "stage": "D", "cell": "fast-limited", "repeat": 2, "order": 33, "load": true }, { "pass": "D-stand-r2", "stage": "D", "cell": "stand", "repeat": 2, "order": 34, "load": true }, { "pass": "D-fast-unlimited-r2", "stage": "D", "cell": "fast-unlimited", "repeat": 2, "order": 35, "load": true }, { "pass": "D-stand-r3", "stage": "D", "cell": "stand", "repeat": 3, "order": 36, "load": true }, { "pass": "D-fast-unlimited-r3", "stage": "D", "cell": "fast-unlimited", "repeat": 3, "order": 37, "load": true }, { "pass": "D-fast-limited-r3", "stage": "D", "cell": "fast-limited", "repeat": 3, "order": 38, "load": true }, { "pass": "D-stand-unlimited-r3", "stage": "D", "cell": "stand-unlimited", "repeat": 3, "order": 39, "load": true }, { "pass": "S4-1000-after-r1", "stage": "S4-1000", "cell": "after", "repeat": 1, "order": 40, "load": false }, { "pass": "S4-1000-before-r1", "stage": "S4-1000", "cell": "before", "repeat": 1, "order": 41, "load": false }, { "pass": "S4-1000-after-r2", "stage": "S4-1000", "cell": "after", "repeat": 2, "order": 42, "load": false }, { "pass": "S4-1000-before-r2", "stage": "S4-1000", "cell": "before", "repeat": 2, "order": 43, "load": false }, { "pass": "S4-1000-after-r3", "stage": "S4-1000", "cell": "after", "repeat": 3, "order": 44, "load": false }, { "pass": "S4-1000-before-r3", "stage": "S4-1000", "cell": "before", "repeat": 3, "order": 45, "load": false }, { "pass": "S4-10000-after-r1", "stage": "S4-10000", "cell": "after", "repeat": 1, "order": 46, "load": false }, { "pass": "S4-10000-before-r1", "stage": "S4-10000", "cell": "before", "repeat": 1, "order": 47, "load": false }, { "pass": "S4-10000-after-r2", "stage": "S4-10000", "cell": "after", "repeat": 2, "order": 48, "load": false }, { "pass": "S4-10000-before-r2", "stage": "S4-10000", "cell": "before", "repeat": 2, "order": 49, "load": false }, { "pass": "S4-10000-after-r3", "stage": "S4-10000", "cell": "after", "repeat": 3, "order": 50, "load": false }, { "pass": "S4-10000-before-r3", "stage": "S4-10000", "cell": "before", "repeat": 3, "order": 51, "load": false } ], "seed": 20260930, "period": 400, "classes": [ "orphan_object", "missing_object", "size_mismatch", "stale_pending" ], "stages": [ { "stage": "A", "fresh": true, "objects_total": 1000, "object_bytes": 1048576, "cells": [ "batch", "deep", "deep-fast" ], "model": { "objects": 997, "ready_rows": 994, "pending_rows": 3, "found": { "orphan_object": 3, "missing_object": 3, "size_mismatch": 3, "stale_pending": 3 } } }, { "stage": "B", "fresh": true, "objects_total": 10000, "object_bytes": 4096, "cells": [ "batch", "head", "deep" ], "model": { "objects": 9975, "ready_rows": 9950, "pending_rows": 25, "found": { "orphan_object": 25, "missing_object": 25, "size_mismatch": 25, "stale_pending": 25 } } }, { "stage": "C", "fresh": false, "objects_total": 30000, "object_bytes": 4096, "cells": [ "batch", "head" ], "model": { "objects": 29925, "ready_rows": 29850, "pending_rows": 75, "found": { "orphan_object": 75, "missing_object": 75, "size_mismatch": 75, "stale_pending": 75 } } }, { "stage": "D", "fresh": false, "objects_total": 100000, "object_bytes": 4096, "cells": [ "batch", "stand", "stand-unlimited", "fast-unlimited", "fast-limited" ], "model": { "objects": 99750, "ready_rows": 99500, "pending_rows": 250, "found": { "orphan_object": 250, "missing_object": 250, "size_mismatch": 250, "stale_pending": 250 } } } ], "object_bytes": { "A": 1048576, "B": 4096, "C": 4096, "D": 4096 }, "s4_clean": 10000, "s4_candidates": [ 1000, 10000 ], "s4_max_changes": 100, "s4_base_stage": "B", "h1_stages": [ "B", "C", "D" ], "h2_stages": [ "B", "C" ], "h3_small_stage": "B", "h3_large_stage": "A", "cleaner_cpus": { "stand": "0.25", "fast": "1" }, "grace_seconds": 30, "default_rate": 2000, "background": { "download": 300, "write": 50, "read": 50, "downloads": 5000, "quiet_s": 30 }, "metrics_port": 9327, "images": { "checkout": "sha256:a23df86b071acb886f5e93bd60c65d41d6e8cb19b257355d6e3e9e15c923c973", "before": "sha256:86aa70b5c4c40c4b2d70ff4cae42c47788978c4992b1d01faac3771f3ca0c052" }, "s3_command": [ "server", "-ip=127.0.0.1", "-ip.bind=127.0.0.1", "-master.telemetry=false", "-master.electionTimeout=1s", "-volume.preStopSeconds=0", "-filer", "-s3", "-s3.ip.bind=0.0.0.0", "-s3.port=8333", "-s3.port.iceberg=0", "-s3.port.lance=0", "-s3.iam=false", "-s3.concurrentUploadLimitMB=64", "-metricsPort=9327" ], "bg_interrupted": { "D": { "download": 0, "write": 0, "read": 0 } } }, "limits": { "api": { "nano_cpus": 1000000000, "memory": 536870912, "memory_swap": 536870912, "published_ports": {}, "healthcheck": [ "NONE" ], "log_driver": "local" }, "postgres": { "nano_cpus": 2000000000, "memory": 1073741824, "memory_swap": 1073741824, "published_ports": {}, "healthcheck": [ "CMD-SHELL", "pg_isready -h 127.0.0.1 -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\"" ], "log_driver": "local" }, "valkey": { "nano_cpus": 500000000, "memory": 134217728, "memory_swap": 134217728, "published_ports": {}, "healthcheck": [ "CMD-SHELL", "test \"$(valkey-cli -p \"$VALKEY_PORT\" ping)\" = PONG" ], "log_driver": "local" }, "haproxy": { "nano_cpus": 1000000000, "memory": 268435456, "memory_swap": 268435456, "published_ports": {}, "healthcheck": [ "CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/8404 && printf 'GET /lb/ready HTTP/1.0\\r\\n\\r\\n' >&3 && head -n 1 <&3 | grep -q ' 200 '" ], "log_driver": "local" }, "k6": { "nano_cpus": 0, "memory": 0, "memory_swap": 0, "published_ports": {}, "healthcheck": null, "log_driver": "local" }, "s3": { "nano_cpus": 1000000000, "memory": 536870912, "memory_swap": 536870912, "published_ports": {}, "healthcheck": [ "CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:9333/cluster/healthz && wget -q -O - http://127.0.0.1:9333/dir/status | grep -qF '\"DataNodes\":[{' && wget -q -O /dev/null http://127.0.0.1:8888/healthz && wget -q -O /dev/null \"http://127.0.0.1:$S3_PORT/healthz\"" ], "log_driver": "local" }, "api_replicas": 2, "max_connections": 100, "cleaner": { "1": { "nano_cpus": 1000000000, "memory": 268435456, "memory_swap": 268435456, "published_ports": {}, "healthcheck": [ "NONE" ], "log_driver": "local" }, "0.25": { "nano_cpus": 250000000, "memory": 268435456, "memory_swap": 268435456, "published_ports": {}, "healthcheck": [ "NONE" ], "log_driver": "local" } } }, "stand": { "s3": { "image": "chrislusf/seaweedfs:4.48@sha256:4e61d15fd35994cb1e43e1e553dff106794841fd9a99ade2fc8c8bfce4d7872d", "id": "sha256:4e61d15fd35994cb1e43e1e553dff106794841fd9a99ade2fc8c8bfce4d7872d" }, "api_tcp_rmem": "4096 131072 524288", "postgres": { "image": "postgres:18.6-trixie@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722", "id": "sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722", "version": "18.6 (Debian 18.6-1.pgdg13+2)", "settings": { "autovacuum": "on", "checkpoint_timeout": "5min", "effective_cache_size": "4GB", "fsync": "on", "jit": "on", "maintenance_work_mem": "64MB", "max_connections": "100", "max_wal_size": "1GB", "plan_cache_mode": "auto", "random_page_cost": "4", "shared_buffers": "128MB", "shared_preload_libraries": "auto_explain", "synchronous_commit": "on", "wal_level": "replica", "work_mem": "4MB" } }, "valkey": { "image": "valkey/valkey:9.1.2-trixie@sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd", "id": "sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd", "version": "9.1.2", "maxmemory": "67108864", "maxmemory-clients": "0", "maxmemory-eviction-tenacity": "10", "maxmemory-policy": "allkeys-lru", "maxmemory-samples": "5" }, "haproxy": { "image": "haproxy:3.4.6-trixie@sha256:e273915691a8eab3f105bf3e39fd4c29a4ecf334e33421903b5589d25e14db26", "id": "sha256:e273915691a8eab3f105bf3e39fd4c29a4ecf334e33421903b5589d25e14db26", "version": "HAProxy version 3.4.6-56332c5 2026/09/28 - https://haproxy.org/" }, "app_env": { "APP__PORT": "8080", "APP__RUN_MODE": "docker", "AUTH__SESSION_TTL_SECONDS": "21600", "CACHE__HOST": "valkey", "CACHE__PORT": "6379", "DATABASE__HOST": "postgres", "DATABASE__NAME": "bench", "DATABASE__PORT": "5432", "DATABASE__USER": "bench", "S3__BUCKET": "bench", "S3__HOST": "s3", "S3__PORT": "8333" } }, "finished_at": "2026-10-23T15:52:03+00:00" }