Files
2026-10-30 12:32:42 +03:00

2260 lines
50 KiB
JSON

{
"meta": {
"date": "2026-10-28T17:18:31.130Z",
"commit": "6468ee2",
"postgres": "17.11"
},
"dataset": {
"messages": 999993,
"chats": 1000,
"zipf_s": 1.3,
"largest": 284708,
"chat_50": 1761,
"smallest": 36,
"largest_share": 0.2847,
"top10_share": 0.6508,
"table_bytes": 210591744,
"seed_seconds": 8.1
},
"targets": {
"largest": {
"k": 1,
"size": 284708,
"position": 256237,
"at": "2026-01-27 23:59:58.179187+00",
"id": "00000001-0000-7000-8002-00000003e8ed"
},
"chat_50": {
"k": 50,
"size": 1761,
"position": 1584,
"at": "2026-01-27 23:37:55.298126+00",
"id": "00000032-0000-7000-8002-000000000630"
},
"smallest": {
"k": 1000,
"size": 36,
"position": 32,
"at": "2026-01-27 16:00:00+00",
"id": "000003e8-0000-7000-8002-000000000020"
}
},
"method": {
"limit": 51,
"warm_runs": 5,
"cold_runs": 3,
"reads": "plan_cache_mode = force_custom_plan: время, план и строки матрицы — custom-план одного и того же запуска (медианного); generic меряется отдельно в plan_cache",
"cold": "pg_buffercache_evict для всех буферов базы перед каждым запуском; кэш ОС VM не сбрасывается",
"checkpoint": "CHECKPOINT перед каждым прогоном pgbench: все наборы начинают с одинаковой долей full page writes",
"control": "после составного набора запись повторяется без индексов истории (порядок A-B-C-D-A): дрейф VM и рост PK отделяются от цены индекса",
"wal_split": "pg_stat_wal: записи WAL и full page images на вставку, отдельно от байтов",
"write": "pgbench -c 4 -j 4 -T 10 x5: SELECT FOR UPDATE + INSERT messages + UPDATE chats; sync — как в приложении, async — synchronous_commit=off, чтобы отделить обслуживание индекса от fsync коммита; docker stats контейнера postgres (сервер и клиент pgbench) в середине прогона"
},
"variants": {
"none": {
"table": 210591744,
"indexes": {
"messages_pkey": 31563776
},
"build_seconds": 0.0
},
"chat_id": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512,
"track_chat_idx": 7143424
},
"build_seconds": 0.27
},
"created_at_id": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512,
"track_time_idx": 40534016
},
"build_seconds": 0.28
},
"chat_id_created_at_id": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512,
"messages_history_idx": 58908672
},
"build_seconds": 0.42
}
},
"reads": [
{
"variant": "none",
"chat": "largest",
"chat_size": 284708,
"query": "first",
"cache": "warm",
"median_ms": 21.986,
"min_ms": 21.217,
"max_ms": 24.67,
"shared_hit": 14032,
"shared_read": 11752,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "largest",
"chat_size": 284708,
"query": "first",
"cache": "cold",
"median_ms": 19.778,
"min_ms": 19.616,
"max_ms": 20.054,
"shared_hit": 81,
"shared_read": 25703,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "largest",
"chat_size": 284708,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 17.603,
"min_ms": 16.495,
"max_ms": 18.152,
"shared_hit": 414,
"shared_read": 25312,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "largest",
"chat_size": 284708,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 16.681,
"min_ms": 16.67,
"max_ms": 16.865,
"shared_hit": 28,
"shared_read": 25698,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "largest",
"chat_size": 284708,
"query": "offset_deep",
"cache": "warm",
"median_ms": 61.335,
"min_ms": 59.393,
"max_ms": 62.616,
"shared_hit": 472,
"shared_read": 25312,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "largest",
"chat_size": 284708,
"query": "offset_deep",
"cache": "cold",
"median_ms": 58.804,
"min_ms": 58.078,
"max_ms": 62.287,
"shared_hit": 80,
"shared_read": 25704,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "chat_50",
"chat_size": 1761,
"query": "first",
"cache": "warm",
"median_ms": 14.505,
"min_ms": 14.474,
"max_ms": 15.093,
"shared_hit": 472,
"shared_read": 25312,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "chat_50",
"chat_size": 1761,
"query": "first",
"cache": "cold",
"median_ms": 14.59,
"min_ms": 14.551,
"max_ms": 15.332,
"shared_hit": 80,
"shared_read": 25704,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "chat_50",
"chat_size": 1761,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 15.863,
"min_ms": 15.543,
"max_ms": 16.364,
"shared_hit": 414,
"shared_read": 25312,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "chat_50",
"chat_size": 1761,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 16.096,
"min_ms": 15.66,
"max_ms": 16.588,
"shared_hit": 28,
"shared_read": 25698,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "chat_50",
"chat_size": 1761,
"query": "offset_deep",
"cache": "warm",
"median_ms": 16.791,
"min_ms": 15.979,
"max_ms": 18.727,
"shared_hit": 472,
"shared_read": 25312,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "chat_50",
"chat_size": 1761,
"query": "offset_deep",
"cache": "cold",
"median_ms": 16.125,
"min_ms": 15.741,
"max_ms": 16.359,
"shared_hit": 81,
"shared_read": 25703,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "smallest",
"chat_size": 36,
"query": "first",
"cache": "warm",
"median_ms": 14.383,
"min_ms": 14.235,
"max_ms": 15.609,
"shared_hit": 472,
"shared_read": 25312,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "smallest",
"chat_size": 36,
"query": "first",
"cache": "cold",
"median_ms": 15.032,
"min_ms": 14.517,
"max_ms": 15.571,
"shared_hit": 80,
"shared_read": 25704,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "smallest",
"chat_size": 36,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 16.15,
"min_ms": 15.829,
"max_ms": 16.825,
"shared_hit": 414,
"shared_read": 25312,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "smallest",
"chat_size": 36,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 16.268,
"min_ms": 15.678,
"max_ms": 17.107,
"shared_hit": 28,
"shared_read": 25698,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "smallest",
"chat_size": 36,
"query": "offset_deep",
"cache": "warm",
"median_ms": 14.286,
"min_ms": 14.071,
"max_ms": 14.686,
"shared_hit": 472,
"shared_read": 25312,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "none",
"chat": "smallest",
"chat_size": 36,
"query": "offset_deep",
"cache": "cold",
"median_ms": 14.403,
"min_ms": 14.303,
"max_ms": 15.276,
"shared_hit": 81,
"shared_read": 25703,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "chat_id",
"chat": "largest",
"chat_size": 284708,
"query": "first",
"cache": "warm",
"median_ms": 12.189,
"min_ms": 11.793,
"max_ms": 14.141,
"shared_hit": 7867,
"shared_read": 0,
"rows_scanned": 284709,
"plan": "Limit > Gather Merge > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "largest",
"chat_size": 284708,
"query": "first",
"cache": "cold",
"median_ms": 16.475,
"min_ms": 16.263,
"max_ms": 17.083,
"shared_hit": 259,
"shared_read": 7608,
"rows_scanned": 284709,
"plan": "Limit > Gather Merge > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "largest",
"chat_size": 284708,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 8.294,
"min_ms": 8.166,
"max_ms": 8.588,
"shared_hit": 7851,
"shared_read": 0,
"rows_scanned": 284706,
"plan": "Limit > Gather Merge > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "largest",
"chat_size": 284708,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 12.737,
"min_ms": 12.093,
"max_ms": 14.52,
"shared_hit": 255,
"shared_read": 7606,
"rows_scanned": 284706,
"plan": "Limit > Gather Merge > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "largest",
"chat_size": 284708,
"query": "offset_deep",
"cache": "warm",
"median_ms": 55.767,
"min_ms": 52.82,
"max_ms": 56.569,
"shared_hit": 7845,
"shared_read": 0,
"rows_scanned": 284709,
"plan": "Limit > Gather Merge > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "largest",
"chat_size": 284708,
"query": "offset_deep",
"cache": "cold",
"median_ms": 63.201,
"min_ms": 62.124,
"max_ms": 65.4,
"shared_hit": 240,
"shared_read": 7606,
"rows_scanned": 284709,
"plan": "Limit > Gather Merge > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "first",
"cache": "warm",
"median_ms": 0.185,
"min_ms": 0.179,
"max_ms": 0.188,
"shared_hit": 50,
"shared_read": 0,
"rows_scanned": 1761,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "first",
"cache": "cold",
"median_ms": 0.276,
"min_ms": 0.258,
"max_ms": 0.324,
"shared_hit": 0,
"shared_read": 50,
"rows_scanned": 1761,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 0.12,
"min_ms": 0.103,
"max_ms": 0.137,
"shared_hit": 50,
"shared_read": 0,
"rows_scanned": 1761,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 0.211,
"min_ms": 0.207,
"max_ms": 0.234,
"shared_hit": 0,
"shared_read": 50,
"rows_scanned": 1761,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "offset_deep",
"cache": "warm",
"median_ms": 0.344,
"min_ms": 0.328,
"max_ms": 0.382,
"shared_hit": 50,
"shared_read": 0,
"rows_scanned": 1761,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "offset_deep",
"cache": "cold",
"median_ms": 0.447,
"min_ms": 0.445,
"max_ms": 0.476,
"shared_hit": 0,
"shared_read": 50,
"rows_scanned": 1761,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "smallest",
"chat_size": 36,
"query": "first",
"cache": "warm",
"median_ms": 0.024,
"min_ms": 0.018,
"max_ms": 0.03,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 36,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "smallest",
"chat_size": 36,
"query": "first",
"cache": "cold",
"median_ms": 0.05,
"min_ms": 0.048,
"max_ms": 0.072,
"shared_hit": 0,
"shared_read": 5,
"rows_scanned": 36,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "smallest",
"chat_size": 36,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 0.016,
"min_ms": 0.014,
"max_ms": 0.021,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 36,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "smallest",
"chat_size": 36,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 0.034,
"min_ms": 0.031,
"max_ms": 0.05,
"shared_hit": 0,
"shared_read": 5,
"rows_scanned": 36,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "smallest",
"chat_size": 36,
"query": "offset_deep",
"cache": "warm",
"median_ms": 0.018,
"min_ms": 0.016,
"max_ms": 0.022,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 36,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "smallest",
"chat_size": 36,
"query": "offset_deep",
"cache": "cold",
"median_ms": 0.037,
"min_ms": 0.032,
"max_ms": 0.052,
"shared_hit": 0,
"shared_read": 5,
"rows_scanned": 36,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "first",
"cache": "warm",
"median_ms": 0.035,
"min_ms": 0.031,
"max_ms": 0.037,
"shared_hit": 113,
"shared_read": 0,
"rows_scanned": 124,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "first",
"cache": "cold",
"median_ms": 0.092,
"min_ms": 0.083,
"max_ms": 0.119,
"shared_hit": 88,
"shared_read": 25,
"rows_scanned": 124,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 0.065,
"min_ms": 0.058,
"max_ms": 0.068,
"shared_hit": 251,
"shared_read": 0,
"rows_scanned": 251,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 0.325,
"min_ms": 0.306,
"max_ms": 0.363,
"shared_hit": 103,
"shared_read": 148,
"rows_scanned": 251,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "offset_deep",
"cache": "warm",
"median_ms": 63.071,
"min_ms": 61.0,
"max_ms": 63.284,
"shared_hit": 519,
"shared_read": 25265,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "offset_deep",
"cache": "cold",
"median_ms": 63.074,
"min_ms": 62.586,
"max_ms": 64.107,
"shared_hit": 80,
"shared_read": 25704,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "first",
"cache": "warm",
"median_ms": 3.133,
"min_ms": 3.046,
"max_ms": 3.536,
"shared_hit": 28010,
"shared_read": 0,
"rows_scanned": 28511,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "first",
"cache": "cold",
"median_ms": 6.748,
"min_ms": 6.417,
"max_ms": 7.221,
"shared_hit": 26118,
"shared_read": 1892,
"rows_scanned": 28511,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 3.226,
"min_ms": 3.188,
"max_ms": 4.136,
"shared_hit": 28414,
"shared_read": 0,
"rows_scanned": 28958,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 7.116,
"min_ms": 6.895,
"max_ms": 7.236,
"shared_hit": 26501,
"shared_read": 1913,
"rows_scanned": 28958,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "offset_deep",
"cache": "warm",
"median_ms": 15.902,
"min_ms": 15.343,
"max_ms": 16.788,
"shared_hit": 2143,
"shared_read": 23641,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "offset_deep",
"cache": "cold",
"median_ms": 14.655,
"min_ms": 14.614,
"max_ms": 14.67,
"shared_hit": 79,
"shared_read": 25705,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "first",
"cache": "warm",
"median_ms": 14.654,
"min_ms": 14.366,
"max_ms": 14.814,
"shared_hit": 472,
"shared_read": 25312,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "first",
"cache": "cold",
"median_ms": 14.474,
"min_ms": 14.333,
"max_ms": 14.998,
"shared_hit": 80,
"shared_read": 25704,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 6.563,
"min_ms": 6.362,
"max_ms": 7.431,
"shared_hit": 4524,
"shared_read": 0,
"rows_scanned": 223122,
"plan": "Limit > Gather Merge > Sort > Bitmap Heap Scan > Bitmap Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 10.028,
"min_ms": 9.791,
"max_ms": 10.155,
"shared_hit": 28,
"shared_read": 4496,
"rows_scanned": 223122,
"plan": "Limit > Gather Merge > Sort > Bitmap Heap Scan > Bitmap Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "offset_deep",
"cache": "warm",
"median_ms": 15.407,
"min_ms": 15.146,
"max_ms": 15.939,
"shared_hit": 4317,
"shared_read": 21467,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "offset_deep",
"cache": "cold",
"median_ms": 14.45,
"min_ms": 14.397,
"max_ms": 14.514,
"shared_hit": 81,
"shared_read": 25703,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "chat_id_created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "first",
"cache": "warm",
"median_ms": 0.022,
"min_ms": 0.021,
"max_ms": 0.047,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "first",
"cache": "cold",
"median_ms": 0.036,
"min_ms": 0.026,
"max_ms": 0.044,
"shared_hit": 0,
"shared_read": 5,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 0.024,
"min_ms": 0.021,
"max_ms": 0.133,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 0.035,
"min_ms": 0.03,
"max_ms": 0.051,
"shared_hit": 0,
"shared_read": 5,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "offset_deep",
"cache": "warm",
"median_ms": 19.956,
"min_ms": 19.371,
"max_ms": 22.388,
"shared_hit": 9012,
"shared_read": 0,
"rows_scanned": 256288,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "largest",
"chat_size": 284708,
"query": "offset_deep",
"cache": "cold",
"median_ms": 33.396,
"min_ms": 27.58,
"max_ms": 33.942,
"shared_hit": 559,
"shared_read": 8453,
"rows_scanned": 256288,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "first",
"cache": "warm",
"median_ms": 0.019,
"min_ms": 0.017,
"max_ms": 0.022,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "first",
"cache": "cold",
"median_ms": 0.03,
"min_ms": 0.03,
"max_ms": 0.032,
"shared_hit": 0,
"shared_read": 5,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 0.021,
"min_ms": 0.016,
"max_ms": 0.022,
"shared_hit": 6,
"shared_read": 0,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 0.038,
"min_ms": 0.038,
"max_ms": 0.053,
"shared_hit": 0,
"shared_read": 6,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "offset_deep",
"cache": "warm",
"median_ms": 0.157,
"min_ms": 0.156,
"max_ms": 0.293,
"shared_hit": 64,
"shared_read": 0,
"rows_scanned": 1635,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "chat_50",
"chat_size": 1761,
"query": "offset_deep",
"cache": "cold",
"median_ms": 0.25,
"min_ms": 0.248,
"max_ms": 0.258,
"shared_hit": 7,
"shared_read": 57,
"rows_scanned": 1635,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "first",
"cache": "warm",
"median_ms": 0.017,
"min_ms": 0.016,
"max_ms": 0.027,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 36,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "first",
"cache": "cold",
"median_ms": 0.03,
"min_ms": 0.026,
"max_ms": 0.03,
"shared_hit": 0,
"shared_read": 5,
"rows_scanned": 36,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "keyset_deep",
"cache": "warm",
"median_ms": 0.012,
"min_ms": 0.009,
"max_ms": 0.127,
"shared_hit": 4,
"shared_read": 0,
"rows_scanned": 4,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "keyset_deep",
"cache": "cold",
"median_ms": 0.024,
"min_ms": 0.018,
"max_ms": 0.034,
"shared_hit": 0,
"shared_read": 4,
"rows_scanned": 4,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "offset_deep",
"cache": "warm",
"median_ms": 0.017,
"min_ms": 0.014,
"max_ms": 0.018,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 36,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "smallest",
"chat_size": 36,
"query": "offset_deep",
"cache": "cold",
"median_ms": 0.028,
"min_ms": 0.025,
"max_ms": 0.029,
"shared_hit": 0,
"shared_read": 5,
"rows_scanned": 36,
"plan": "Limit > Index Scan(messages_history_idx)"
}
],
"plan_cache": [
{
"variant": "chat_id",
"chat": "largest",
"mode": "force_custom_plan",
"median_ms": 12.96,
"min_ms": 12.574,
"max_ms": 14.228,
"shared_hit": 7866,
"shared_read": 0,
"rows_scanned": 284709,
"plan": "Limit > Gather Merge > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "largest",
"mode": "force_generic_plan",
"median_ms": 28.128,
"min_ms": 27.875,
"max_ms": 28.816,
"shared_hit": 7603,
"shared_read": 0,
"rows_scanned": 284708,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "smallest",
"mode": "force_custom_plan",
"median_ms": 0.029,
"min_ms": 0.022,
"max_ms": 0.034,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 36,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "chat_id",
"chat": "smallest",
"mode": "force_generic_plan",
"median_ms": 0.026,
"min_ms": 0.019,
"max_ms": 0.04,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 36,
"plan": "Limit > Sort > Index Scan(track_chat_idx)"
},
{
"variant": "created_at_id",
"chat": "largest",
"mode": "force_custom_plan",
"median_ms": 0.034,
"min_ms": 0.029,
"max_ms": 0.036,
"shared_hit": 113,
"shared_read": 0,
"rows_scanned": 124,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "largest",
"mode": "force_generic_plan",
"median_ms": 0.039,
"min_ms": 0.034,
"max_ms": 0.048,
"shared_hit": 113,
"shared_read": 0,
"rows_scanned": 124,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "created_at_id",
"chat": "smallest",
"mode": "force_custom_plan",
"median_ms": 14.9,
"min_ms": 14.799,
"max_ms": 17.22,
"shared_hit": 494,
"shared_read": 25290,
"rows_scanned": 999993,
"plan": "Limit > Gather Merge > Sort > Seq Scan"
},
{
"variant": "created_at_id",
"chat": "smallest",
"mode": "force_generic_plan",
"median_ms": 156.475,
"min_ms": 155.142,
"max_ms": 158.658,
"shared_hit": 951325,
"shared_read": 30034,
"rows_scanned": 999993,
"plan": "Limit > Index Scan(track_time_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "largest",
"mode": "force_custom_plan",
"median_ms": 0.023,
"min_ms": 0.018,
"max_ms": 0.03,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "largest",
"mode": "force_generic_plan",
"median_ms": 0.022,
"min_ms": 0.021,
"max_ms": 0.026,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 51,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "smallest",
"mode": "force_custom_plan",
"median_ms": 0.021,
"min_ms": 0.017,
"max_ms": 0.025,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 36,
"plan": "Limit > Index Scan(messages_history_idx)"
},
{
"variant": "chat_id_created_at_id",
"chat": "smallest",
"mode": "force_generic_plan",
"median_ms": 0.015,
"min_ms": 0.015,
"max_ms": 0.027,
"shared_hit": 5,
"shared_read": 0,
"rows_scanned": 36,
"plan": "Limit > Index Scan(messages_history_idx)"
}
],
"writes": [
{
"variant": "none",
"commit": "sync",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 94551,
"tps": 9455.4,
"latency_avg_ms": 0.423,
"wal_bytes_per_insert": 1511,
"wal_records_per_insert": 6.7,
"wal_fpi_per_insert": 0.128,
"postgres_cpu_percent": 266.38,
"postgres_memory_mib": 281.6
},
{
"transactions": 94594,
"tps": 9460.4,
"latency_avg_ms": 0.423,
"wal_bytes_per_insert": 1511,
"wal_records_per_insert": 6.7,
"wal_fpi_per_insert": 0.128,
"postgres_cpu_percent": 274.79,
"postgres_memory_mib": 282.3
},
{
"transactions": 95017,
"tps": 9502.3,
"latency_avg_ms": 0.421,
"wal_bytes_per_insert": 1506,
"wal_records_per_insert": 6.71,
"wal_fpi_per_insert": 0.127,
"postgres_cpu_percent": 276.59,
"postgres_memory_mib": 282.0
},
{
"transactions": 93222,
"tps": 9314.0,
"latency_avg_ms": 0.429,
"wal_bytes_per_insert": 1526,
"wal_records_per_insert": 6.71,
"wal_fpi_per_insert": 0.13,
"postgres_cpu_percent": 272.13,
"postgres_memory_mib": 187.6
},
{
"transactions": 93430,
"tps": 9343.2,
"latency_avg_ms": 0.428,
"wal_bytes_per_insert": 1524,
"wal_records_per_insert": 6.7,
"wal_fpi_per_insert": 0.129,
"postgres_cpu_percent": 271.05,
"postgres_memory_mib": 187.4
}
],
"tps": 9455.4,
"tps_range": [
9314.0,
9502.3
],
"latency_avg_ms": 0.423,
"latency_avg_ms_range": [
0.421,
0.429
],
"wal_bytes_per_insert": 1511,
"wal_bytes_per_insert_range": [
1506,
1526
],
"wal_records_per_insert": 6.7,
"wal_records_per_insert_range": [
6.7,
6.71
],
"wal_fpi_per_insert": 0.128,
"wal_fpi_per_insert_range": [
0.127,
0.13
],
"postgres_cpu_percent": 272.13,
"postgres_cpu_percent_range": [
266.38,
276.59
],
"postgres_memory_mib": 281.6,
"postgres_memory_mib_range": [
187.4,
282.3
],
"order": 1,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 31563776
},
"build_seconds": 0.0
}
},
{
"variant": "none",
"commit": "async",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 125689,
"tps": 12565.7,
"latency_avg_ms": 0.318,
"wal_bytes_per_insert": 1232,
"wal_records_per_insert": 6.28,
"wal_fpi_per_insert": 0.096,
"postgres_cpu_percent": 351.11,
"postgres_memory_mib": 187.6
},
{
"transactions": 128193,
"tps": 12819.5,
"latency_avg_ms": 0.312,
"wal_bytes_per_insert": 1199,
"wal_records_per_insert": 6.05,
"wal_fpi_per_insert": 0.095,
"postgres_cpu_percent": 354.29,
"postgres_memory_mib": 187.9
},
{
"transactions": 127167,
"tps": 12717.6,
"latency_avg_ms": 0.315,
"wal_bytes_per_insert": 1205,
"wal_records_per_insert": 6.05,
"wal_fpi_per_insert": 0.095,
"postgres_cpu_percent": 354.11,
"postgres_memory_mib": 187.6
},
{
"transactions": 123920,
"tps": 12393.0,
"latency_avg_ms": 0.323,
"wal_bytes_per_insert": 1225,
"wal_records_per_insert": 6.05,
"wal_fpi_per_insert": 0.098,
"postgres_cpu_percent": 350.84,
"postgres_memory_mib": 184.6
},
{
"transactions": 126794,
"tps": 12680.5,
"latency_avg_ms": 0.315,
"wal_bytes_per_insert": 1204,
"wal_records_per_insert": 6.05,
"wal_fpi_per_insert": 0.096,
"postgres_cpu_percent": 353.0,
"postgres_memory_mib": 187.7
}
],
"tps": 12680.5,
"tps_range": [
12393.0,
12819.5
],
"latency_avg_ms": 0.315,
"latency_avg_ms_range": [
0.312,
0.323
],
"wal_bytes_per_insert": 1205,
"wal_bytes_per_insert_range": [
1199,
1232
],
"wal_records_per_insert": 6.05,
"wal_records_per_insert_range": [
6.05,
6.28
],
"wal_fpi_per_insert": 0.096,
"wal_fpi_per_insert_range": [
0.095,
0.098
],
"postgres_cpu_percent": 353.0,
"postgres_cpu_percent_range": [
350.84,
354.29
],
"postgres_memory_mib": 187.6,
"postgres_memory_mib_range": [
184.6,
187.9
],
"order": 1,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 31563776
},
"build_seconds": 0.0
}
},
{
"variant": "chat_id",
"commit": "sync",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 79406,
"tps": 7941.2,
"latency_avg_ms": 0.504,
"wal_bytes_per_insert": 1772,
"wal_records_per_insert": 7.09,
"wal_fpi_per_insert": 0.156,
"postgres_cpu_percent": 271.42,
"postgres_memory_mib": 186.9
},
{
"transactions": 81251,
"tps": 8125.6,
"latency_avg_ms": 0.492,
"wal_bytes_per_insert": 1734,
"wal_records_per_insert": 7.06,
"wal_fpi_per_insert": 0.153,
"postgres_cpu_percent": 271.24,
"postgres_memory_mib": 188.1
},
{
"transactions": 92329,
"tps": 9233.4,
"latency_avg_ms": 0.433,
"wal_bytes_per_insert": 1588,
"wal_records_per_insert": 7.06,
"wal_fpi_per_insert": 0.135,
"postgres_cpu_percent": 273.39,
"postgres_memory_mib": 188.0
},
{
"transactions": 92614,
"tps": 9261.9,
"latency_avg_ms": 0.432,
"wal_bytes_per_insert": 1584,
"wal_records_per_insert": 7.06,
"wal_fpi_per_insert": 0.135,
"postgres_cpu_percent": 274.54,
"postgres_memory_mib": 189.0
},
{
"transactions": 96040,
"tps": 9603.8,
"latency_avg_ms": 0.417,
"wal_bytes_per_insert": 1545,
"wal_records_per_insert": 7.06,
"wal_fpi_per_insert": 0.13,
"postgres_cpu_percent": 273.6,
"postgres_memory_mib": 189.4
}
],
"tps": 9233.4,
"tps_range": [
7941.2,
9603.8
],
"latency_avg_ms": 0.433,
"latency_avg_ms_range": [
0.417,
0.504
],
"wal_bytes_per_insert": 1588,
"wal_bytes_per_insert_range": [
1545,
1772
],
"wal_records_per_insert": 7.06,
"wal_records_per_insert_range": [
7.06,
7.09
],
"wal_fpi_per_insert": 0.135,
"wal_fpi_per_insert_range": [
0.13,
0.156
],
"postgres_cpu_percent": 273.39,
"postgres_cpu_percent_range": [
271.24,
274.54
],
"postgres_memory_mib": 188.1,
"postgres_memory_mib_range": [
186.9,
189.4
],
"order": 2,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512,
"track_chat_idx": 7143424
},
"build_seconds": 0.27
}
},
{
"variant": "chat_id",
"commit": "async",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 125876,
"tps": 12587.7,
"latency_avg_ms": 0.318,
"wal_bytes_per_insert": 1303,
"wal_records_per_insert": 7.13,
"wal_fpi_per_insert": 0.099,
"postgres_cpu_percent": 353.53,
"postgres_memory_mib": 189.7
},
{
"transactions": 124959,
"tps": 12496.8,
"latency_avg_ms": 0.32,
"wal_bytes_per_insert": 1303,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.1,
"postgres_cpu_percent": 352.39,
"postgres_memory_mib": 189.6
},
{
"transactions": 127215,
"tps": 12721.2,
"latency_avg_ms": 0.314,
"wal_bytes_per_insert": 1288,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.099,
"postgres_cpu_percent": 355.07,
"postgres_memory_mib": 189.5
},
{
"transactions": 110322,
"tps": 11033.3,
"latency_avg_ms": 0.363,
"wal_bytes_per_insert": 1404,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.114,
"postgres_cpu_percent": 313.4,
"postgres_memory_mib": 187.2
},
{
"transactions": 107399,
"tps": 10742.6,
"latency_avg_ms": 0.372,
"wal_bytes_per_insert": 1430,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.117,
"postgres_cpu_percent": 306.26,
"postgres_memory_mib": 187.4
}
],
"tps": 12496.8,
"tps_range": [
10742.6,
12721.2
],
"latency_avg_ms": 0.32,
"latency_avg_ms_range": [
0.314,
0.372
],
"wal_bytes_per_insert": 1303,
"wal_bytes_per_insert_range": [
1288,
1430
],
"wal_records_per_insert": 7.04,
"wal_records_per_insert_range": [
7.04,
7.13
],
"wal_fpi_per_insert": 0.1,
"wal_fpi_per_insert_range": [
0.099,
0.117
],
"postgres_cpu_percent": 352.39,
"postgres_cpu_percent_range": [
306.26,
355.07
],
"postgres_memory_mib": 189.5,
"postgres_memory_mib_range": [
187.2,
189.7
],
"order": 2,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512,
"track_chat_idx": 7143424
},
"build_seconds": 0.27
}
},
{
"variant": "created_at_id",
"commit": "sync",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 90547,
"tps": 9055.4,
"latency_avg_ms": 0.442,
"wal_bytes_per_insert": 1601,
"wal_records_per_insert": 7.03,
"wal_fpi_per_insert": 0.134,
"postgres_cpu_percent": 273.37,
"postgres_memory_mib": 187.9
},
{
"transactions": 91797,
"tps": 9179.6,
"latency_avg_ms": 0.436,
"wal_bytes_per_insert": 1586,
"wal_records_per_insert": 7.03,
"wal_fpi_per_insert": 0.132,
"postgres_cpu_percent": 274.46,
"postgres_memory_mib": 188.5
},
{
"transactions": 91619,
"tps": 9162.4,
"latency_avg_ms": 0.437,
"wal_bytes_per_insert": 1588,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.133,
"postgres_cpu_percent": 274.55,
"postgres_memory_mib": 188.5
},
{
"transactions": 92649,
"tps": 9265.2,
"latency_avg_ms": 0.432,
"wal_bytes_per_insert": 1576,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.131,
"postgres_cpu_percent": 271.49,
"postgres_memory_mib": 189.0
},
{
"transactions": 95396,
"tps": 9539.9,
"latency_avg_ms": 0.419,
"wal_bytes_per_insert": 1546,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.127,
"postgres_cpu_percent": 268.69,
"postgres_memory_mib": 187.1
}
],
"tps": 9179.6,
"tps_range": [
9055.4,
9539.9
],
"latency_avg_ms": 0.436,
"latency_avg_ms_range": [
0.419,
0.442
],
"wal_bytes_per_insert": 1586,
"wal_bytes_per_insert_range": [
1546,
1601
],
"wal_records_per_insert": 7.04,
"wal_records_per_insert_range": [
7.03,
7.04
],
"wal_fpi_per_insert": 0.132,
"wal_fpi_per_insert_range": [
0.127,
0.134
],
"postgres_cpu_percent": 273.37,
"postgres_cpu_percent_range": [
268.69,
274.55
],
"postgres_memory_mib": 188.5,
"postgres_memory_mib_range": [
187.1,
189.0
],
"order": 3,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512,
"track_time_idx": 40534016
},
"build_seconds": 0.28
}
},
{
"variant": "created_at_id",
"commit": "async",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 125804,
"tps": 12582.0,
"latency_avg_ms": 0.318,
"wal_bytes_per_insert": 1296,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.097,
"postgres_cpu_percent": 352.1,
"postgres_memory_mib": 187.4
},
{
"transactions": 124624,
"tps": 12461.2,
"latency_avg_ms": 0.321,
"wal_bytes_per_insert": 1304,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.098,
"postgres_cpu_percent": 359.26,
"postgres_memory_mib": 187.2
},
{
"transactions": 126241,
"tps": 12625.5,
"latency_avg_ms": 0.317,
"wal_bytes_per_insert": 1294,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.096,
"postgres_cpu_percent": 350.11,
"postgres_memory_mib": 187.0
},
{
"transactions": 124440,
"tps": 12444.2,
"latency_avg_ms": 0.321,
"wal_bytes_per_insert": 1305,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.098,
"postgres_cpu_percent": 352.14,
"postgres_memory_mib": 184.7
},
{
"transactions": 124283,
"tps": 12429.2,
"latency_avg_ms": 0.322,
"wal_bytes_per_insert": 1306,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.098,
"postgres_cpu_percent": 351.67,
"postgres_memory_mib": 186.0
}
],
"tps": 12461.2,
"tps_range": [
12429.2,
12625.5
],
"latency_avg_ms": 0.321,
"latency_avg_ms_range": [
0.317,
0.322
],
"wal_bytes_per_insert": 1304,
"wal_bytes_per_insert_range": [
1294,
1306
],
"wal_records_per_insert": 7.04,
"wal_records_per_insert_range": [
7.04,
7.04
],
"wal_fpi_per_insert": 0.098,
"wal_fpi_per_insert_range": [
0.096,
0.098
],
"postgres_cpu_percent": 352.1,
"postgres_cpu_percent_range": [
350.11,
359.26
],
"postgres_memory_mib": 187.0,
"postgres_memory_mib_range": [
184.7,
187.4
],
"order": 3,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512,
"track_time_idx": 40534016
},
"build_seconds": 0.28
}
},
{
"variant": "chat_id_created_at_id",
"commit": "sync",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 88209,
"tps": 8820.8,
"latency_avg_ms": 0.453,
"wal_bytes_per_insert": 1769,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.148,
"postgres_cpu_percent": 279.03,
"postgres_memory_mib": 185.9
},
{
"transactions": 91119,
"tps": 9112.6,
"latency_avg_ms": 0.439,
"wal_bytes_per_insert": 1654,
"wal_records_per_insert": 7.03,
"wal_fpi_per_insert": 0.146,
"postgres_cpu_percent": 281.54,
"postgres_memory_mib": 185.7
},
{
"transactions": 92428,
"tps": 9243.7,
"latency_avg_ms": 0.433,
"wal_bytes_per_insert": 1634,
"wal_records_per_insert": 7.03,
"wal_fpi_per_insert": 0.144,
"postgres_cpu_percent": 275.45,
"postgres_memory_mib": 187.6
},
{
"transactions": 90960,
"tps": 9096.6,
"latency_avg_ms": 0.44,
"wal_bytes_per_insert": 1644,
"wal_records_per_insert": 7.03,
"wal_fpi_per_insert": 0.146,
"postgres_cpu_percent": 272.54,
"postgres_memory_mib": 187.1
},
{
"transactions": 94467,
"tps": 9447.6,
"latency_avg_ms": 0.423,
"wal_bytes_per_insert": 1604,
"wal_records_per_insert": 7.03,
"wal_fpi_per_insert": 0.141,
"postgres_cpu_percent": 275.41,
"postgres_memory_mib": 187.5
}
],
"tps": 9112.6,
"tps_range": [
8820.8,
9447.6
],
"latency_avg_ms": 0.439,
"latency_avg_ms_range": [
0.423,
0.453
],
"wal_bytes_per_insert": 1644,
"wal_bytes_per_insert_range": [
1604,
1769
],
"wal_records_per_insert": 7.03,
"wal_records_per_insert_range": [
7.03,
7.04
],
"wal_fpi_per_insert": 0.146,
"wal_fpi_per_insert_range": [
0.141,
0.148
],
"postgres_cpu_percent": 275.45,
"postgres_cpu_percent_range": [
272.54,
281.54
],
"postgres_memory_mib": 187.1,
"postgres_memory_mib_range": [
185.7,
187.6
],
"order": 4,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512,
"messages_history_idx": 58908672
},
"build_seconds": 0.42
}
},
{
"variant": "chat_id_created_at_id",
"commit": "async",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 124745,
"tps": 12472.3,
"latency_avg_ms": 0.321,
"wal_bytes_per_insert": 1365,
"wal_records_per_insert": 7.03,
"wal_fpi_per_insert": 0.109,
"postgres_cpu_percent": 351.06,
"postgres_memory_mib": 189.5
},
{
"transactions": 124423,
"tps": 12443.6,
"latency_avg_ms": 0.321,
"wal_bytes_per_insert": 1366,
"wal_records_per_insert": 7.03,
"wal_fpi_per_insert": 0.11,
"postgres_cpu_percent": 356.62,
"postgres_memory_mib": 189.6
},
{
"transactions": 124815,
"tps": 12483.2,
"latency_avg_ms": 0.32,
"wal_bytes_per_insert": 1362,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.11,
"postgres_cpu_percent": 352.35,
"postgres_memory_mib": 189.8
},
{
"transactions": 124190,
"tps": 12419.4,
"latency_avg_ms": 0.322,
"wal_bytes_per_insert": 1364,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.11,
"postgres_cpu_percent": 351.74,
"postgres_memory_mib": 189.1
},
{
"transactions": 123671,
"tps": 12368.3,
"latency_avg_ms": 0.323,
"wal_bytes_per_insert": 1367,
"wal_records_per_insert": 7.04,
"wal_fpi_per_insert": 0.11,
"postgres_cpu_percent": 349.44,
"postgres_memory_mib": 189.5
}
],
"tps": 12443.6,
"tps_range": [
12368.3,
12483.2
],
"latency_avg_ms": 0.321,
"latency_avg_ms_range": [
0.32,
0.323
],
"wal_bytes_per_insert": 1365,
"wal_bytes_per_insert_range": [
1362,
1367
],
"wal_records_per_insert": 7.04,
"wal_records_per_insert_range": [
7.03,
7.04
],
"wal_fpi_per_insert": 0.11,
"wal_fpi_per_insert_range": [
0.109,
0.11
],
"postgres_cpu_percent": 351.74,
"postgres_cpu_percent_range": [
349.44,
356.62
],
"postgres_memory_mib": 189.5,
"postgres_memory_mib_range": [
189.1,
189.8
],
"order": 4,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512,
"messages_history_idx": 58908672
},
"build_seconds": 0.42
}
},
{
"variant": "none",
"commit": "sync",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 95997,
"tps": 9600.6,
"latency_avg_ms": 0.417,
"wal_bytes_per_insert": 1455,
"wal_records_per_insert": 6.03,
"wal_fpi_per_insert": 0.127,
"postgres_cpu_percent": 279.06,
"postgres_memory_mib": 185.0
},
{
"transactions": 93455,
"tps": 9345.7,
"latency_avg_ms": 0.428,
"wal_bytes_per_insert": 1483,
"wal_records_per_insert": 6.03,
"wal_fpi_per_insert": 0.13,
"postgres_cpu_percent": 273.27,
"postgres_memory_mib": 185.4
},
{
"transactions": 92846,
"tps": 9285.3,
"latency_avg_ms": 0.431,
"wal_bytes_per_insert": 1489,
"wal_records_per_insert": 6.03,
"wal_fpi_per_insert": 0.131,
"postgres_cpu_percent": 271.74,
"postgres_memory_mib": 185.6
},
{
"transactions": 92795,
"tps": 9278.8,
"latency_avg_ms": 0.431,
"wal_bytes_per_insert": 1490,
"wal_records_per_insert": 6.03,
"wal_fpi_per_insert": 0.131,
"postgres_cpu_percent": 275.77,
"postgres_memory_mib": 183.7
},
{
"transactions": 95708,
"tps": 9571.3,
"latency_avg_ms": 0.418,
"wal_bytes_per_insert": 1458,
"wal_records_per_insert": 6.03,
"wal_fpi_per_insert": 0.127,
"postgres_cpu_percent": 273.66,
"postgres_memory_mib": 184.1
}
],
"tps": 9345.7,
"tps_range": [
9278.8,
9600.6
],
"latency_avg_ms": 0.428,
"latency_avg_ms_range": [
0.417,
0.431
],
"wal_bytes_per_insert": 1483,
"wal_bytes_per_insert_range": [
1455,
1490
],
"wal_records_per_insert": 6.03,
"wal_records_per_insert_range": [
6.03,
6.03
],
"wal_fpi_per_insert": 0.13,
"wal_fpi_per_insert_range": [
0.127,
0.131
],
"postgres_cpu_percent": 273.66,
"postgres_cpu_percent_range": [
271.74,
279.06
],
"postgres_memory_mib": 185.0,
"postgres_memory_mib_range": [
183.7,
185.6
],
"order": 5,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512
},
"build_seconds": 0.0
}
},
{
"variant": "none",
"commit": "async",
"seconds": 10,
"clients": 4,
"runs": [
{
"transactions": 126114,
"tps": 12612.4,
"latency_avg_ms": 0.317,
"wal_bytes_per_insert": 1218,
"wal_records_per_insert": 6.12,
"wal_fpi_per_insert": 0.096,
"postgres_cpu_percent": 353.1,
"postgres_memory_mib": 184.4
},
{
"transactions": 125455,
"tps": 12547.1,
"latency_avg_ms": 0.319,
"wal_bytes_per_insert": 1214,
"wal_records_per_insert": 6.06,
"wal_fpi_per_insert": 0.097,
"postgres_cpu_percent": 350.78,
"postgres_memory_mib": 184.5
},
{
"transactions": 125506,
"tps": 12550.5,
"latency_avg_ms": 0.319,
"wal_bytes_per_insert": 1216,
"wal_records_per_insert": 6.06,
"wal_fpi_per_insert": 0.097,
"postgres_cpu_percent": 350.56,
"postgres_memory_mib": 182.9
},
{
"transactions": 125671,
"tps": 12565.4,
"latency_avg_ms": 0.318,
"wal_bytes_per_insert": 1214,
"wal_records_per_insert": 6.06,
"wal_fpi_per_insert": 0.097,
"postgres_cpu_percent": 353.13,
"postgres_memory_mib": 185.0
},
{
"transactions": 124359,
"tps": 12436.8,
"latency_avg_ms": 0.322,
"wal_bytes_per_insert": 1223,
"wal_records_per_insert": 6.06,
"wal_fpi_per_insert": 0.098,
"postgres_cpu_percent": 353.65,
"postgres_memory_mib": 185.6
}
],
"tps": 12550.5,
"tps_range": [
12436.8,
12612.4
],
"latency_avg_ms": 0.319,
"latency_avg_ms_range": [
0.317,
0.322
],
"wal_bytes_per_insert": 1216,
"wal_bytes_per_insert_range": [
1214,
1223
],
"wal_records_per_insert": 6.06,
"wal_records_per_insert_range": [
6.06,
6.12
],
"wal_fpi_per_insert": 0.097,
"wal_fpi_per_insert_range": [
0.096,
0.098
],
"postgres_cpu_percent": 353.1,
"postgres_cpu_percent_range": [
350.56,
353.65
],
"postgres_memory_mib": 184.5,
"postgres_memory_mib_range": [
182.9,
185.6
],
"order": 5,
"sizes": {
"table": 210591744,
"indexes": {
"messages_pkey": 39616512
},
"build_seconds": 0.0
}
}
]
}