350 lines
8.8 KiB
JSON
350 lines
8.8 KiB
JSON
{
|
|
"label": "baseline",
|
|
"started_utc": "2026-10-02T00:47:30Z",
|
|
"profile": {
|
|
"name": "full",
|
|
"sizes": [
|
|
10000,
|
|
100000,
|
|
500000
|
|
],
|
|
"clients": [
|
|
1,
|
|
8,
|
|
32
|
|
],
|
|
"repeats": 3,
|
|
"read_warmup_s": 2.0,
|
|
"read_duration_s": 6.0,
|
|
"write_warmup_requests": 300,
|
|
"write_requests": 3000,
|
|
"fill_clients": 16,
|
|
"fill_batch_max": 50000,
|
|
"fill_batches_min": 5,
|
|
"cursor_pool": 200,
|
|
"gen_procs": 4,
|
|
"seed": 20261002,
|
|
"app_cpus": "1",
|
|
"app_memory": "1g",
|
|
"db_cpus": "2",
|
|
"db_memory": "2g",
|
|
"cache_cpus": "1",
|
|
"cache_memory": "256m",
|
|
"session_ttl": 21600,
|
|
"gen_cpu_flag": 0.8,
|
|
"classes": [],
|
|
"explain_cursor_version": 2
|
|
},
|
|
"host": {
|
|
"platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
|
|
"machine": "arm64",
|
|
"cpu_model": "Apple M4",
|
|
"cpu_count": 10,
|
|
"ram_gb": 16.0,
|
|
"swap_used_mib": 0.0,
|
|
"power": "AC Power",
|
|
"loadavg_1m": 1.91
|
|
},
|
|
"docker": {
|
|
"ServerVersion": "28.0.4",
|
|
"OperatingSystem": "Docker Desktop",
|
|
"KernelVersion": "6.10.14-linuxkit",
|
|
"Architecture": "aarch64",
|
|
"NCPU": 10,
|
|
"MemTotal": 8218034176,
|
|
"CgroupVersion": "2",
|
|
"LoggingDriver": "json-file",
|
|
"other_running_containers": 0
|
|
},
|
|
"image": {
|
|
"tag": "mtusi-messenger-vladimirceva:bench-baseline",
|
|
"id": "sha256:e670ace82a784e82a5fe617e6c60e3a651cea6c446be8c42bc586d2f359881d0",
|
|
"created": "2026-10-02T00:39:00.104485709Z",
|
|
"versions": {
|
|
"python": "3.13.15",
|
|
"fastapi": "0.142.1",
|
|
"starlette": "1.7.0",
|
|
"uvicorn": "0.54.0",
|
|
"pydantic": "2.13.5",
|
|
"sqlalchemy": "2.1.1",
|
|
"asyncpg": "0.31.0",
|
|
"alembic": "1.20.0",
|
|
"redis": "8.1.0",
|
|
"argon2-cffi": "25.1.0"
|
|
},
|
|
"src_sha256": "8a7e256c540af433de47704437294adafd98dcfecf2f3200354454ee717cd2a3"
|
|
},
|
|
"image_reused": false,
|
|
"code": {
|
|
"src_sha256": "8a7e256c540af433de47704437294adafd98dcfecf2f3200354454ee717cd2a3",
|
|
"git_commit": "c7d36bcaa592d8fd8b42d9d4a65a2d908ec1021d",
|
|
"git_dirty": false
|
|
},
|
|
"generator_image": "python:3.13.15-slim-trixie@sha256:7c61056e61ac89e852de05f3dc6fa51a6dd2181797bceed46aa725dd7cb2cd3b",
|
|
"variant": "keyset",
|
|
"variant_sql": [],
|
|
"host_warnings": [],
|
|
"stand": {
|
|
"postgres": {
|
|
"image": "postgres:18.6-trixie@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",
|
|
"version": "9.1.2",
|
|
"maxmemory": "67108864",
|
|
"maxmemory-clients": "0",
|
|
"maxmemory-eviction-tenacity": "10",
|
|
"maxmemory-policy": "allkeys-lru",
|
|
"maxmemory-samples": "5"
|
|
},
|
|
"limits": {
|
|
"api": {
|
|
"nano_cpus": 1000000000,
|
|
"memory": 1073741824,
|
|
"memory_swap": 1073741824,
|
|
"published_ports": {}
|
|
},
|
|
"postgres": {
|
|
"nano_cpus": 2000000000,
|
|
"memory": 2147483648,
|
|
"memory_swap": 2147483648,
|
|
"published_ports": {}
|
|
},
|
|
"valkey": {
|
|
"nano_cpus": 1000000000,
|
|
"memory": 268435456,
|
|
"memory_swap": 268435456,
|
|
"published_ports": {}
|
|
}
|
|
},
|
|
"app_env": {
|
|
"CACHE_HOST": "valkey",
|
|
"CACHE_PORT": "6379",
|
|
"DB_HOST": "postgres",
|
|
"DB_NAME": "bench",
|
|
"DB_PORT": "5432",
|
|
"DB_USER": "bench",
|
|
"LOG_LEVEL": "INFO",
|
|
"SESSION_TTL_SECONDS": "21600",
|
|
"SHUTDOWN_TIMEOUT": "5"
|
|
}
|
|
},
|
|
"finished_utc": "2026-10-02T01:03:21Z",
|
|
"duration_s": 951,
|
|
"plans": [
|
|
{
|
|
"size": 10000,
|
|
"chat_class": "",
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.04,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 10000,
|
|
"chat_class": "",
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 54,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.046,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 10000,
|
|
"chat_class": "",
|
|
"page": "last",
|
|
"after": 9950,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 50.0,
|
|
"time_ms": 0.041,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 10000,
|
|
"chat_class": "",
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 54,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.083,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 10000,
|
|
"chat_class": "",
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "psql, no index",
|
|
"node": "Seq Scan on messages",
|
|
"shared_hit": 337,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 1.274,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 100000,
|
|
"chat_class": "",
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 21,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.047,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 100000,
|
|
"chat_class": "",
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 54,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.043,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 100000,
|
|
"chat_class": "",
|
|
"page": "last",
|
|
"after": 99950,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 54,
|
|
"shared_read": 0,
|
|
"rows": 50.0,
|
|
"time_ms": 0.042,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 100000,
|
|
"chat_class": "",
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 54,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.118,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 100000,
|
|
"chat_class": "",
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "psql, no index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 2969,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 7.468,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 500000,
|
|
"chat_class": "",
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 9,
|
|
"shared_read": 12,
|
|
"rows": 51.0,
|
|
"time_ms": 0.073,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 500000,
|
|
"chat_class": "",
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 44,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.046,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 500000,
|
|
"chat_class": "",
|
|
"page": "last",
|
|
"after": 499950,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 53,
|
|
"shared_read": 0,
|
|
"rows": 50.0,
|
|
"time_ms": 0.041,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 500000,
|
|
"chat_class": "",
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 44,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.169,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"size": 500000,
|
|
"chat_class": "",
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "psql, no index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 14129,
|
|
"shared_read": 832,
|
|
"rows": 51.0,
|
|
"time_ms": 22.545,
|
|
"kind": "custom"
|
|
}
|
|
]
|
|
}
|