research: record keyset track2 baseline and reproducible analysis
This commit is contained in:
@@ -0,0 +1,407 @@
|
||||
{
|
||||
"label": "t2-keyset",
|
||||
"started_utc": "2026-10-02T01:17:32Z",
|
||||
"profile": {
|
||||
"name": "skew",
|
||||
"sizes": [
|
||||
126000
|
||||
],
|
||||
"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": [
|
||||
[
|
||||
"big",
|
||||
1,
|
||||
60000
|
||||
],
|
||||
[
|
||||
"medium",
|
||||
6,
|
||||
6000
|
||||
],
|
||||
[
|
||||
"small",
|
||||
120,
|
||||
200
|
||||
],
|
||||
[
|
||||
"tiny",
|
||||
600,
|
||||
10
|
||||
]
|
||||
],
|
||||
"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.72
|
||||
},
|
||||
"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-t2-keyset",
|
||||
"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": "6d2240ce9fec2531f8141e1331db37d36388d082",
|
||||
"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:25:57Z",
|
||||
"duration_s": 506,
|
||||
"plans": [
|
||||
{
|
||||
"size": 60000,
|
||||
"chat_class": "big",
|
||||
"page": "first",
|
||||
"after": 0,
|
||||
"source": "app",
|
||||
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
||||
"shared_hit": 31,
|
||||
"shared_read": 0,
|
||||
"rows": 51.0,
|
||||
"time_ms": 0.049,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 60000,
|
||||
"chat_class": "big",
|
||||
"page": "middle",
|
||||
"after": 30000,
|
||||
"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.05,
|
||||
"kind": "generic"
|
||||
},
|
||||
{
|
||||
"size": 60000,
|
||||
"chat_class": "big",
|
||||
"page": "last",
|
||||
"after": 59950,
|
||||
"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.057,
|
||||
"kind": "generic"
|
||||
},
|
||||
{
|
||||
"size": 60000,
|
||||
"chat_class": "big",
|
||||
"page": "middle",
|
||||
"after": 30000,
|
||||
"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.092,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 60000,
|
||||
"chat_class": "big",
|
||||
"page": "middle",
|
||||
"after": 30000,
|
||||
"source": "psql, no index",
|
||||
"node": "Parallel Seq Scan on messages",
|
||||
"shared_hit": 3797,
|
||||
"shared_read": 0,
|
||||
"rows": 51.0,
|
||||
"time_ms": 6.628,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 6000,
|
||||
"chat_class": "medium",
|
||||
"page": "first",
|
||||
"after": 0,
|
||||
"source": "app",
|
||||
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
||||
"shared_hit": 47,
|
||||
"shared_read": 0,
|
||||
"rows": 51.0,
|
||||
"time_ms": 0.057,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 6000,
|
||||
"chat_class": "medium",
|
||||
"page": "middle",
|
||||
"after": 3000,
|
||||
"source": "app",
|
||||
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
||||
"shared_hit": 50,
|
||||
"shared_read": 0,
|
||||
"rows": 51.0,
|
||||
"time_ms": 0.052,
|
||||
"kind": "generic"
|
||||
},
|
||||
{
|
||||
"size": 6000,
|
||||
"chat_class": "medium",
|
||||
"page": "last",
|
||||
"after": 5950,
|
||||
"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.05,
|
||||
"kind": "generic"
|
||||
},
|
||||
{
|
||||
"size": 6000,
|
||||
"chat_class": "medium",
|
||||
"page": "middle",
|
||||
"after": 3000,
|
||||
"source": "psql",
|
||||
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
||||
"shared_hit": 50,
|
||||
"shared_read": 0,
|
||||
"rows": 51.0,
|
||||
"time_ms": 0.145,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 6000,
|
||||
"chat_class": "medium",
|
||||
"page": "middle",
|
||||
"after": 3000,
|
||||
"source": "psql, no index",
|
||||
"node": "Parallel Seq Scan on messages",
|
||||
"shared_hit": 3797,
|
||||
"shared_read": 0,
|
||||
"rows": 51.0,
|
||||
"time_ms": 6.032,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 200,
|
||||
"chat_class": "small",
|
||||
"page": "first",
|
||||
"after": 0,
|
||||
"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.096,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 200,
|
||||
"chat_class": "small",
|
||||
"page": "middle",
|
||||
"after": 100,
|
||||
"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.079,
|
||||
"kind": "generic"
|
||||
},
|
||||
{
|
||||
"size": 200,
|
||||
"chat_class": "small",
|
||||
"page": "last",
|
||||
"after": 150,
|
||||
"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.062,
|
||||
"kind": "generic"
|
||||
},
|
||||
{
|
||||
"size": 200,
|
||||
"chat_class": "small",
|
||||
"page": "middle",
|
||||
"after": 100,
|
||||
"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.307,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 200,
|
||||
"chat_class": "small",
|
||||
"page": "middle",
|
||||
"after": 100,
|
||||
"source": "psql, no index",
|
||||
"node": "Parallel Seq Scan on messages",
|
||||
"shared_hit": 3797,
|
||||
"shared_read": 0,
|
||||
"rows": 51.0,
|
||||
"time_ms": 6.147,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 10,
|
||||
"chat_class": "tiny",
|
||||
"page": "first",
|
||||
"after": 0,
|
||||
"source": "app",
|
||||
"node": "Bitmap Heap Scan on messages",
|
||||
"shared_hit": 19,
|
||||
"shared_read": 0,
|
||||
"rows": 10.0,
|
||||
"time_ms": 0.052,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 10,
|
||||
"chat_class": "tiny",
|
||||
"page": "first",
|
||||
"after": 0,
|
||||
"source": "psql",
|
||||
"node": "Bitmap Heap Scan on messages",
|
||||
"shared_hit": 19,
|
||||
"shared_read": 0,
|
||||
"rows": 10.0,
|
||||
"time_ms": 0.197,
|
||||
"kind": "custom"
|
||||
},
|
||||
{
|
||||
"size": 10,
|
||||
"chat_class": "tiny",
|
||||
"page": "first",
|
||||
"after": 0,
|
||||
"source": "psql, no index",
|
||||
"node": "Seq Scan on messages",
|
||||
"shared_hit": 3767,
|
||||
"shared_read": 0,
|
||||
"rows": 10.0,
|
||||
"time_ms": 20.451,
|
||||
"kind": "custom"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user