1839 lines
49 KiB
JSON
1839 lines
49 KiB
JSON
{
|
|
"label": "track2",
|
|
"status": "complete",
|
|
"started_at": "2026-10-02T01:25:55+00:00",
|
|
"command": "uv run python bench/run.py --profile full --label track2",
|
|
"git": {
|
|
"commit": "67be41e",
|
|
"dirty": false
|
|
},
|
|
"overrides": {},
|
|
"host_state": {
|
|
"start": {
|
|
"swap_used_mib": 0.0,
|
|
"swap_total_mib": 0.0,
|
|
"memory_free_percent": 76,
|
|
"power": "AC Power",
|
|
"battery_percent": 80
|
|
},
|
|
"end": {
|
|
"swap_used_mib": 0.0,
|
|
"swap_total_mib": 0.0,
|
|
"memory_free_percent": 67,
|
|
"power": "AC Power",
|
|
"battery_percent": 80
|
|
}
|
|
},
|
|
"host_warnings": [],
|
|
"other_containers": [],
|
|
"app_image": {
|
|
"tag": "mtusi-messenger:bench",
|
|
"id": "sha256:d59f88d7e52203c3d5cb35ea9807c3db2683e551fd9a493d8968d7f92acfa7f5",
|
|
"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.8.1",
|
|
"vm_os": "Docker Desktop",
|
|
"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
|
|
},
|
|
"profile": {
|
|
"name": "full",
|
|
"sizes": [
|
|
10000,
|
|
100000,
|
|
500000
|
|
],
|
|
"concurrency": [
|
|
1,
|
|
10,
|
|
50
|
|
],
|
|
"repeats": 3,
|
|
"read_warmup_s": 5,
|
|
"read_measure_s": 20,
|
|
"write_warmup": 500,
|
|
"write_measure": 5000,
|
|
"prefill_chunk": 25000,
|
|
"prefill_vus": 32,
|
|
"text_length": 64,
|
|
"page_limit": 50,
|
|
"walk_limit": 100,
|
|
"cursor_pool": 1000,
|
|
"members": 10,
|
|
"seed": 20260930,
|
|
"warmup_seed_shift": 1000003,
|
|
"generator_cpu_limit": 4.0,
|
|
"cpus": "1",
|
|
"memory": "2g",
|
|
"db_cpus": "4",
|
|
"db_memory": "3g",
|
|
"cache_cpus": "2",
|
|
"cache_memory": "512m",
|
|
"session_ttl_seconds": 21600,
|
|
"background": [
|
|
[
|
|
10,
|
|
5000
|
|
],
|
|
[
|
|
100,
|
|
400
|
|
],
|
|
[
|
|
1000,
|
|
10
|
|
]
|
|
],
|
|
"index_variants": [
|
|
[
|
|
"chat_only",
|
|
"(chat_id)"
|
|
],
|
|
[
|
|
"covering",
|
|
"(chat_id, created_at, id) INCLUDE (sender_id, text)"
|
|
]
|
|
],
|
|
"write_probe_rows": 20000,
|
|
"write_probe_repeats": 3
|
|
},
|
|
"sizes": [
|
|
{
|
|
"size": 10000,
|
|
"messages_total": 110000,
|
|
"rss_before_mib": 87.6,
|
|
"rss_after_mib": 92.5,
|
|
"bytes_per_message": 47,
|
|
"prefill_seconds": 117.8,
|
|
"prefill_rate": 934,
|
|
"cursors": 99,
|
|
"maintenance_seconds": 0.2,
|
|
"messages_rows": 110000,
|
|
"messages_table_bytes": 17481728,
|
|
"messages_indexes_bytes": 15548416,
|
|
"db_bytes_per_message": 300,
|
|
"plans": [
|
|
{
|
|
"chat": "read 10k",
|
|
"chat_size": 10000,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 46,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.068,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 10k",
|
|
"chat_size": 10000,
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 53,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.063,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "read 10k",
|
|
"chat_size": 10000,
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 53,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.027,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 10k",
|
|
"chat_size": 10000,
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 53,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.026,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "read 10k",
|
|
"chat_size": 10000,
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "or-cursor",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 4979,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.847,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 10k",
|
|
"chat_size": 10000,
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "no-index",
|
|
"node": "Seq Scan on messages",
|
|
"shared_hit": 2129,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 4.023,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 10k",
|
|
"chat_size": 10000,
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "chat_only",
|
|
"node": "Bitmap Heap Scan on messages",
|
|
"shared_hit": 2036,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 2.017,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 10k",
|
|
"chat_size": 10000,
|
|
"page": "middle",
|
|
"after": 5000,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.016,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 10k",
|
|
"chat_size": 10000,
|
|
"page": "last",
|
|
"after": 9900,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 53,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.057,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "first",
|
|
"after": 0,
|
|
"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.066,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 51,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.053,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 51,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.025,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 51,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.027,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "or-cursor",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 2427,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.359,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "no-index",
|
|
"node": "Seq Scan on messages",
|
|
"shared_hit": 2129,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 3.167,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "chat_only",
|
|
"node": "Bitmap Heap Scan on messages",
|
|
"shared_hit": 1876,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 1.092,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.017,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "last",
|
|
"after": 4900,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.069,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"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.081,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 51,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.077,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 51,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.021,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 51,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.024,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "or-cursor",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 249,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.065,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "no-index",
|
|
"node": "Seq Scan on messages",
|
|
"shared_hit": 2129,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 2.835,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "chat_only",
|
|
"node": "Bitmap Heap Scan on messages",
|
|
"shared_hit": 378,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.151,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.015,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "last",
|
|
"after": 300,
|
|
"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.081,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "app",
|
|
"node": "Bitmap Heap Scan on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.034,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "psql",
|
|
"node": "Bitmap Heap Scan on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.022,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.009,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "no-index",
|
|
"node": "Seq Scan on messages",
|
|
"shared_hit": 2129,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 2.526,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "chat_only",
|
|
"node": "Bitmap Heap Scan on messages",
|
|
"shared_hit": 12,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.02,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 4,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.011,
|
|
"kind": "custom"
|
|
}
|
|
],
|
|
"rss_peak_mib": 151.2,
|
|
"write_cost": [
|
|
{
|
|
"variant": "app",
|
|
"columns": "(chat_id, created_at, id)",
|
|
"rows": 20000,
|
|
"messages": 159500,
|
|
"index_bytes": 9420800,
|
|
"index_bytes_per_message": 59.1,
|
|
"insert_us_per_message": [
|
|
6.13,
|
|
5.9,
|
|
5.89
|
|
],
|
|
"wal_bytes_per_message": [
|
|
755.0,
|
|
740.1,
|
|
739.6
|
|
],
|
|
"fpi_per_1000": [
|
|
53.0,
|
|
65.0,
|
|
65.1
|
|
],
|
|
"long_text": "ok"
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"columns": "(chat_id)",
|
|
"rows": 20000,
|
|
"messages": 159500,
|
|
"index_bytes": 1179648,
|
|
"index_bytes_per_message": 7.4,
|
|
"insert_us_per_message": [
|
|
5.46,
|
|
5.57,
|
|
5.41
|
|
],
|
|
"wal_bytes_per_message": [
|
|
603.1,
|
|
601.0,
|
|
599.8
|
|
],
|
|
"fpi_per_1000": [
|
|
53.5,
|
|
54.6,
|
|
55.2
|
|
],
|
|
"long_text": "ok"
|
|
},
|
|
{
|
|
"variant": "covering",
|
|
"columns": "(chat_id, created_at, id) INCLUDE (sender_id, text)",
|
|
"rows": 20000,
|
|
"messages": 159500,
|
|
"index_bytes": 25313280,
|
|
"index_bytes_per_message": 158.7,
|
|
"insert_us_per_message": [
|
|
6.48,
|
|
6.46,
|
|
6.41
|
|
],
|
|
"wal_bytes_per_message": [
|
|
991.2,
|
|
990.7,
|
|
989.7
|
|
],
|
|
"fpi_per_1000": [
|
|
70.8,
|
|
71.3,
|
|
71.7
|
|
],
|
|
"long_text": "index row requires 12072 bytes, maximum size is 8191"
|
|
},
|
|
{
|
|
"variant": "none",
|
|
"columns": null,
|
|
"rows": 20000,
|
|
"messages": 159500,
|
|
"index_bytes": 0,
|
|
"index_bytes_per_message": 0.0,
|
|
"insert_us_per_message": [
|
|
5.09,
|
|
5.2,
|
|
4.92
|
|
],
|
|
"wal_bytes_per_message": [
|
|
495.5,
|
|
495.1,
|
|
494.1
|
|
],
|
|
"fpi_per_1000": [
|
|
51.3,
|
|
51.8,
|
|
52.0
|
|
],
|
|
"long_text": "ok"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"size": 100000,
|
|
"messages_total": 200000,
|
|
"rss_before_mib": 87.7,
|
|
"rss_after_mib": 92.6,
|
|
"bytes_per_message": 26,
|
|
"prefill_seconds": 213.3,
|
|
"prefill_rate": 938,
|
|
"cursors": 999,
|
|
"maintenance_seconds": 0.2,
|
|
"messages_rows": 200000,
|
|
"messages_table_bytes": 31629312,
|
|
"messages_indexes_bytes": 29106176,
|
|
"db_bytes_per_message": 304,
|
|
"plans": [
|
|
{
|
|
"chat": "read 100k",
|
|
"chat_size": 100000,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 19,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.063,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 100k",
|
|
"chat_size": 100000,
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 46,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.05,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "read 100k",
|
|
"chat_size": 100000,
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 46,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.029,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 100k",
|
|
"chat_size": 100000,
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 46,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.025,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "read 100k",
|
|
"chat_size": 100000,
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "or-cursor",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 50416,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 9.594,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 100k",
|
|
"chat_size": 100000,
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "no-index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 3886,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 9.49,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 100k",
|
|
"chat_size": 100000,
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "chat_only",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 3886,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 9.48,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 100k",
|
|
"chat_size": 100000,
|
|
"page": "middle",
|
|
"after": 50000,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.017,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 100k",
|
|
"chat_size": 100000,
|
|
"page": "last",
|
|
"after": 99900,
|
|
"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.146,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "first",
|
|
"after": 0,
|
|
"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.074,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.076,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.027,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.021,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "or-cursor",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 2420,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.431,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "no-index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 3886,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 5.815,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "chat_only",
|
|
"node": "Bitmap Heap Scan on messages",
|
|
"shared_hit": 2801,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 2.158,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.018,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "last",
|
|
"after": 4900,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 53,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.102,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 55,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.149,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.095,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.025,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.032,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "or-cursor",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 253,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.071,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "no-index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 3886,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 4.907,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "chat_only",
|
|
"node": "Bitmap Heap Scan on messages",
|
|
"shared_hit": 397,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.159,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.015,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "last",
|
|
"after": 300,
|
|
"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.125,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"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": 10.0,
|
|
"time_ms": 0.031,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.013,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.009,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "no-index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 3856,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 4.501,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "chat_only",
|
|
"node": "Index Scan using bench_variant on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.016,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.009,
|
|
"kind": "custom"
|
|
}
|
|
],
|
|
"rss_peak_mib": 150.9,
|
|
"write_cost": [
|
|
{
|
|
"variant": "app",
|
|
"columns": "(chat_id, created_at, id)",
|
|
"rows": 20000,
|
|
"messages": 249500,
|
|
"index_bytes": 14721024,
|
|
"index_bytes_per_message": 59.0,
|
|
"insert_us_per_message": [
|
|
6.11,
|
|
6.03,
|
|
5.96
|
|
],
|
|
"wal_bytes_per_message": [
|
|
869.5,
|
|
865.3,
|
|
864.1
|
|
],
|
|
"fpi_per_1000": [
|
|
72.0,
|
|
79.3,
|
|
79.7
|
|
],
|
|
"long_text": "ok"
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"columns": "(chat_id)",
|
|
"rows": 20000,
|
|
"messages": 249500,
|
|
"index_bytes": 1826816,
|
|
"index_bytes_per_message": 7.3,
|
|
"insert_us_per_message": [
|
|
5.4,
|
|
5.57,
|
|
5.55
|
|
],
|
|
"wal_bytes_per_message": [
|
|
720.4,
|
|
718.4,
|
|
719.6
|
|
],
|
|
"fpi_per_1000": [
|
|
68.8,
|
|
69.5,
|
|
70.5
|
|
],
|
|
"long_text": "ok"
|
|
},
|
|
{
|
|
"variant": "covering",
|
|
"columns": "(chat_id, created_at, id) INCLUDE (sender_id, text)",
|
|
"rows": 20000,
|
|
"messages": 249500,
|
|
"index_bytes": 39583744,
|
|
"index_bytes_per_message": 158.7,
|
|
"insert_us_per_message": [
|
|
6.38,
|
|
6.37,
|
|
6.35
|
|
],
|
|
"wal_bytes_per_message": [
|
|
1080.7,
|
|
1079.7,
|
|
1079.8
|
|
],
|
|
"fpi_per_1000": [
|
|
83.7,
|
|
84.2,
|
|
84.7
|
|
],
|
|
"long_text": "index row requires 12072 bytes, maximum size is 8191"
|
|
},
|
|
{
|
|
"variant": "none",
|
|
"columns": null,
|
|
"rows": 20000,
|
|
"messages": 249500,
|
|
"index_bytes": 0,
|
|
"index_bytes_per_message": 0.0,
|
|
"insert_us_per_message": [
|
|
4.93,
|
|
4.99,
|
|
4.89
|
|
],
|
|
"wal_bytes_per_message": [
|
|
620.9,
|
|
620.7,
|
|
620.3
|
|
],
|
|
"fpi_per_1000": [
|
|
66.4,
|
|
66.7,
|
|
67.2
|
|
],
|
|
"long_text": "ok"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"size": 500000,
|
|
"messages_total": 600000,
|
|
"rss_before_mib": 87.7,
|
|
"rss_after_mib": 93.5,
|
|
"bytes_per_message": 10,
|
|
"prefill_seconds": 625.8,
|
|
"prefill_rate": 959,
|
|
"cursors": 1000,
|
|
"maintenance_seconds": 0.2,
|
|
"messages_rows": 600000,
|
|
"messages_table_bytes": 94756864,
|
|
"messages_indexes_bytes": 87359488,
|
|
"db_bytes_per_message": 304,
|
|
"plans": [
|
|
{
|
|
"chat": "read 500k",
|
|
"chat_size": 500000,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 1,
|
|
"rows": 51.0,
|
|
"time_ms": 0.063,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 500k",
|
|
"chat_size": 500000,
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 49,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.056,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 500k",
|
|
"chat_size": 500000,
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 49,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.023,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 500k",
|
|
"chat_size": 500000,
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 49,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.029,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "read 500k",
|
|
"chat_size": 500000,
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "or-cursor",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 252338,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 44.023,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 500k",
|
|
"chat_size": 500000,
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "no-index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 11590,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 20.463,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 500k",
|
|
"chat_size": 500000,
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "chat_only",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 11590,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 18.405,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 500k",
|
|
"chat_size": 500000,
|
|
"page": "middle",
|
|
"after": 250000,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.02,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "read 500k",
|
|
"chat_size": 500000,
|
|
"page": "last",
|
|
"after": 499500,
|
|
"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.054,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.104,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.101,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.024,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 52,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.038,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "or-cursor",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 2441,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.557,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "no-index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 11590,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 11.077,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "chat_only",
|
|
"node": "Index Scan using bench_variant on messages",
|
|
"shared_hit": 4176,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 1.328,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "middle",
|
|
"after": 2500,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.013,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 5k",
|
|
"chat_size": 5000,
|
|
"page": "last",
|
|
"after": 4900,
|
|
"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.079,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"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.083,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 55,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.086,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 55,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.03,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 55,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.03,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "or-cursor",
|
|
"node": "Bitmap Heap Scan on messages",
|
|
"shared_hit": 208,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.135,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "no-index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 11560,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 10.731,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "chat_only",
|
|
"node": "Index Scan using bench_variant on messages",
|
|
"shared_hit": 403,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.129,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "middle",
|
|
"after": 200,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.02,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 400",
|
|
"chat_size": 400,
|
|
"page": "last",
|
|
"after": 300,
|
|
"source": "app",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 55,
|
|
"shared_read": 0,
|
|
"rows": 51.0,
|
|
"time_ms": 0.09,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"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": 10.0,
|
|
"time_ms": 0.029,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "psql",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.011,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "generic",
|
|
"node": "Index Scan using ix_messages_chat_id_created_at_id on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.012,
|
|
"kind": "generic"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "no-index",
|
|
"node": "Parallel Seq Scan on messages",
|
|
"shared_hit": 11650,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 9.996,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "chat_only",
|
|
"node": "Index Scan using bench_variant on messages",
|
|
"shared_hit": 13,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.013,
|
|
"kind": "custom"
|
|
},
|
|
{
|
|
"chat": "bg 10",
|
|
"chat_size": 10,
|
|
"page": "first",
|
|
"after": 0,
|
|
"source": "covering",
|
|
"node": "Index Only Scan using bench_variant on messages",
|
|
"shared_hit": 5,
|
|
"shared_read": 0,
|
|
"rows": 10.0,
|
|
"time_ms": 0.006,
|
|
"kind": "custom"
|
|
}
|
|
],
|
|
"rss_peak_mib": 151.1,
|
|
"write_cost": [
|
|
{
|
|
"variant": "app",
|
|
"columns": "(chat_id, created_at, id)",
|
|
"rows": 20000,
|
|
"messages": 649500,
|
|
"index_bytes": 38273024,
|
|
"index_bytes_per_message": 58.9,
|
|
"insert_us_per_message": [
|
|
6.47,
|
|
6.52,
|
|
6.48
|
|
],
|
|
"wal_bytes_per_message": [
|
|
1388.2,
|
|
1373.5,
|
|
1374.7
|
|
],
|
|
"fpi_per_1000": [
|
|
171.1,
|
|
180.5,
|
|
180.8
|
|
],
|
|
"long_text": "ok"
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"columns": "(chat_id)",
|
|
"rows": 20000,
|
|
"messages": 649500,
|
|
"index_bytes": 4644864,
|
|
"index_bytes_per_message": 7.2,
|
|
"insert_us_per_message": [
|
|
5.93,
|
|
5.86,
|
|
6.14
|
|
],
|
|
"wal_bytes_per_message": [
|
|
1285.3,
|
|
1283.9,
|
|
1279.8
|
|
],
|
|
"fpi_per_1000": [
|
|
174.8,
|
|
177.3,
|
|
177.3
|
|
],
|
|
"long_text": "ok"
|
|
},
|
|
{
|
|
"variant": "covering",
|
|
"columns": "(chat_id, created_at, id) INCLUDE (sender_id, text)",
|
|
"rows": 20000,
|
|
"messages": 649500,
|
|
"index_bytes": 102989824,
|
|
"index_bytes_per_message": 158.6,
|
|
"insert_us_per_message": [
|
|
6.79,
|
|
6.74,
|
|
6.8
|
|
],
|
|
"wal_bytes_per_message": [
|
|
1609.7,
|
|
1603.5,
|
|
1603.5
|
|
],
|
|
"fpi_per_1000": [
|
|
184.9,
|
|
186.0,
|
|
186.0
|
|
],
|
|
"long_text": "index row requires 12072 bytes, maximum size is 8191"
|
|
},
|
|
{
|
|
"variant": "none",
|
|
"columns": null,
|
|
"rows": 20000,
|
|
"messages": 649500,
|
|
"index_bytes": 0,
|
|
"index_bytes_per_message": 0.0,
|
|
"insert_us_per_message": [
|
|
5.26,
|
|
5.28,
|
|
5.36
|
|
],
|
|
"wal_bytes_per_message": [
|
|
1187.7,
|
|
1184.8,
|
|
1184.1
|
|
],
|
|
"fpi_per_1000": [
|
|
173.8,
|
|
174.1,
|
|
174.2
|
|
],
|
|
"long_text": "ok"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"limits": {
|
|
"api": {
|
|
"nano_cpus": 1000000000,
|
|
"memory": 2147483648,
|
|
"memory_swap": 2147483648,
|
|
"published_ports": {},
|
|
"healthcheck": [
|
|
"NONE"
|
|
],
|
|
"log_driver": "local"
|
|
},
|
|
"postgres": {
|
|
"nano_cpus": 4000000000,
|
|
"memory": 3221225472,
|
|
"memory_swap": 3221225472,
|
|
"published_ports": {},
|
|
"healthcheck": [
|
|
"CMD-SHELL",
|
|
"pg_isready -h 127.0.0.1 -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\""
|
|
],
|
|
"log_driver": "local"
|
|
},
|
|
"valkey": {
|
|
"nano_cpus": 2000000000,
|
|
"memory": 536870912,
|
|
"memory_swap": 536870912,
|
|
"published_ports": {},
|
|
"healthcheck": [
|
|
"CMD-SHELL",
|
|
"test \"$(valkey-cli -p \"$VALKEY_PORT\" ping)\" = PONG"
|
|
],
|
|
"log_driver": "local"
|
|
}
|
|
},
|
|
"stand": {
|
|
"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"
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"finished_at": "2026-10-02T01:58:00+00:00"
|
|
}
|