From d4fad59444d67b5bdcdcb2c35038fbbe89f78c5e Mon Sep 17 00:00:00 2001 From: roman Date: Fri, 2 Oct 2026 07:43:24 +0300 Subject: [PATCH] docs: add track 2 backup and restore evidence Co-Authored-By: Claude Opus 5.5 --- evidence/bench/restore/explain-100k.txt | 522 +++++ evidence/bench/restore/explain-10k.txt | 512 +++++ evidence/bench/restore/explain-500k.txt | 520 +++++ evidence/bench/restore/meta.json | 1938 +++++++++++++++++ evidence/bench/restore/prefill.csv | 38 + evidence/bench/restore/progress.json | 12 + .../bench/restore/raw/prefill-100k-01.json | 1 + .../bench/restore/raw/prefill-100k-02.json | 1 + .../bench/restore/raw/prefill-100k-03.json | 1 + .../bench/restore/raw/prefill-100k-04.json | 1 + .../bench/restore/raw/prefill-100k-05.json | 1 + .../bench/restore/raw/prefill-100k-06.json | 1 + .../bench/restore/raw/prefill-100k-07.json | 1 + .../bench/restore/raw/prefill-100k-08.json | 1 + .../bench/restore/raw/prefill-10k-01.json | 1 + .../bench/restore/raw/prefill-10k-02.json | 1 + .../bench/restore/raw/prefill-10k-03.json | 1 + .../bench/restore/raw/prefill-10k-04.json | 1 + .../bench/restore/raw/prefill-10k-05.json | 1 + .../bench/restore/raw/prefill-500k-01.json | 1 + .../bench/restore/raw/prefill-500k-02.json | 1 + .../bench/restore/raw/prefill-500k-03.json | 1 + .../bench/restore/raw/prefill-500k-04.json | 1 + .../bench/restore/raw/prefill-500k-05.json | 1 + .../bench/restore/raw/prefill-500k-06.json | 1 + .../bench/restore/raw/prefill-500k-07.json | 1 + .../bench/restore/raw/prefill-500k-08.json | 1 + .../bench/restore/raw/prefill-500k-09.json | 1 + .../bench/restore/raw/prefill-500k-10.json | 1 + .../bench/restore/raw/prefill-500k-11.json | 1 + .../bench/restore/raw/prefill-500k-12.json | 1 + .../bench/restore/raw/prefill-500k-13.json | 1 + .../bench/restore/raw/prefill-500k-14.json | 1 + .../bench/restore/raw/prefill-500k-15.json | 1 + .../bench/restore/raw/prefill-500k-16.json | 1 + .../bench/restore/raw/prefill-500k-17.json | 1 + .../bench/restore/raw/prefill-500k-18.json | 1 + .../bench/restore/raw/prefill-500k-19.json | 1 + .../bench/restore/raw/prefill-500k-20.json | 1 + .../bench/restore/raw/prefill-500k-21.json | 1 + .../bench/restore/raw/prefill-500k-22.json | 1 + .../bench/restore/raw/prefill-500k-23.json | 1 + .../bench/restore/raw/prefill-500k-24.json | 1 + evidence/bench/restore/summary.md | 181 ++ .../changes/track2-backup-restore/tasks.md | 6 +- 45 files changed, 3763 insertions(+), 3 deletions(-) create mode 100644 evidence/bench/restore/explain-100k.txt create mode 100644 evidence/bench/restore/explain-10k.txt create mode 100644 evidence/bench/restore/explain-500k.txt create mode 100644 evidence/bench/restore/meta.json create mode 100644 evidence/bench/restore/prefill.csv create mode 100644 evidence/bench/restore/progress.json create mode 100644 evidence/bench/restore/raw/prefill-100k-01.json create mode 100644 evidence/bench/restore/raw/prefill-100k-02.json create mode 100644 evidence/bench/restore/raw/prefill-100k-03.json create mode 100644 evidence/bench/restore/raw/prefill-100k-04.json create mode 100644 evidence/bench/restore/raw/prefill-100k-05.json create mode 100644 evidence/bench/restore/raw/prefill-100k-06.json create mode 100644 evidence/bench/restore/raw/prefill-100k-07.json create mode 100644 evidence/bench/restore/raw/prefill-100k-08.json create mode 100644 evidence/bench/restore/raw/prefill-10k-01.json create mode 100644 evidence/bench/restore/raw/prefill-10k-02.json create mode 100644 evidence/bench/restore/raw/prefill-10k-03.json create mode 100644 evidence/bench/restore/raw/prefill-10k-04.json create mode 100644 evidence/bench/restore/raw/prefill-10k-05.json create mode 100644 evidence/bench/restore/raw/prefill-500k-01.json create mode 100644 evidence/bench/restore/raw/prefill-500k-02.json create mode 100644 evidence/bench/restore/raw/prefill-500k-03.json create mode 100644 evidence/bench/restore/raw/prefill-500k-04.json create mode 100644 evidence/bench/restore/raw/prefill-500k-05.json create mode 100644 evidence/bench/restore/raw/prefill-500k-06.json create mode 100644 evidence/bench/restore/raw/prefill-500k-07.json create mode 100644 evidence/bench/restore/raw/prefill-500k-08.json create mode 100644 evidence/bench/restore/raw/prefill-500k-09.json create mode 100644 evidence/bench/restore/raw/prefill-500k-10.json create mode 100644 evidence/bench/restore/raw/prefill-500k-11.json create mode 100644 evidence/bench/restore/raw/prefill-500k-12.json create mode 100644 evidence/bench/restore/raw/prefill-500k-13.json create mode 100644 evidence/bench/restore/raw/prefill-500k-14.json create mode 100644 evidence/bench/restore/raw/prefill-500k-15.json create mode 100644 evidence/bench/restore/raw/prefill-500k-16.json create mode 100644 evidence/bench/restore/raw/prefill-500k-17.json create mode 100644 evidence/bench/restore/raw/prefill-500k-18.json create mode 100644 evidence/bench/restore/raw/prefill-500k-19.json create mode 100644 evidence/bench/restore/raw/prefill-500k-20.json create mode 100644 evidence/bench/restore/raw/prefill-500k-21.json create mode 100644 evidence/bench/restore/raw/prefill-500k-22.json create mode 100644 evidence/bench/restore/raw/prefill-500k-23.json create mode 100644 evidence/bench/restore/raw/prefill-500k-24.json create mode 100644 evidence/bench/restore/summary.md diff --git a/evidence/bench/restore/explain-100k.txt b/evidence/bench/restore/explain-100k.txt new file mode 100644 index 00000000..0f50cf5f --- /dev/null +++ b/evidence/bench/restore/explain-100k.txt @@ -0,0 +1,522 @@ +# План запроса истории: размер 100k + +Commit 67cb4d7 +Читаемый чат — 100000 сообщений; фоновые чаты: 10 × 5k, 100 × 400, 1000 × 10. +Страница — `limit` профиля; «после» — сколько сообщений чата до +страницы. + +## Планы приложения + +auto_explain (ANALYZE, BUFFERS, TIMING): запрос, параметры и план, +с которыми его выполнило приложение (prepared statement asyncpg). + +### read 100k: first, после 0 + +duration: 0.043 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = '8168dfa1-b77d-4a1b-b326-3c141abb0288', $2 = '51' +Limit (cost=0.42..11.44 rows=51 width=121) (actual time=0.014..0.032 rows=51.00 loops=1) + Buffers: shared hit=24 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..21672.76 rows=100333 width=121) (actual time=0.014..0.028 rows=51.00 loops=1) + Index Cond: (chat_id = '8168dfa1-b77d-4a1b-b326-3c141abb0288'::uuid) + Index Searches: 1 + Buffers: shared hit=24 + +### read 100k: middle, после 50000 + +duration: 0.059 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = '8168dfa1-b77d-4a1b-b326-3c141abb0288', $2 = '2026-10-02 04:29:43.65986+00', $3 = '305dee56-4c6a-4706-9f4f-82b1742495b9', $4 = '51' +Limit (cost=0.42..27.91 rows=7 width=121) (actual time=0.018..0.047 rows=51.00 loops=1) + Buffers: shared hit=50 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..287.07 rows=73 width=121) (actual time=0.017..0.044 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=50 + +### read 100k: last, после 99900 + +duration: 0.047 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = '8168dfa1-b77d-4a1b-b326-3c141abb0288', $2 = '2026-10-02 04:31:24.926308+00', $3 = '85b040f0-3a5c-4adf-ad6a-9fb242c6805a', $4 = '51' +Limit (cost=0.42..27.91 rows=7 width=121) (actual time=0.014..0.036 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..287.07 rows=73 width=121) (actual time=0.013..0.032 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=54 + +### bg 5k: first, после 0 + +duration: 0.052 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = 'ce420db9-1add-44f4-ac30-eef132545058', $2 = '51' +Limit (cost=0.42..123.87 rows=51 width=121) (actual time=0.010..0.041 rows=51.00 loops=1) + Buffers: shared hit=52 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..11878.25 rows=4907 width=121) (actual time=0.009..0.038 rows=51.00 loops=1) + Index Cond: (chat_id = 'ce420db9-1add-44f4-ac30-eef132545058'::uuid) + Index Searches: 1 + Buffers: shared hit=52 + +### bg 5k: middle, после 2500 + +duration: 0.055 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'ce420db9-1add-44f4-ac30-eef132545058', $2 = '2026-10-02 04:29:43.647772+00', $3 = '03e854fd-a86a-47be-a03c-a9f644378e07', $4 = '51' +Limit (cost=0.42..27.91 rows=7 width=121) (actual time=0.009..0.043 rows=51.00 loops=1) + Buffers: shared hit=52 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..287.07 rows=73 width=121) (actual time=0.008..0.040 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=52 + +### bg 5k: last, после 4900 + +duration: 0.061 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'ce420db9-1add-44f4-ac30-eef132545058', $2 = '2026-10-02 04:31:21.278504+00', $3 = 'f9c0a227-3053-4799-895d-a9f6d802fc59', $4 = '51' +Limit (cost=0.42..27.91 rows=7 width=121) (actual time=0.011..0.049 rows=51.00 loops=1) + Buffers: shared hit=53 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..287.07 rows=73 width=121) (actual time=0.010..0.046 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=53 + +### bg 400: first, после 0 + +duration: 0.077 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = 'ac906f31-31b9-472c-9416-431b6154b01e', $2 = '51' +Limit (cost=0.42..66.44 rows=16 width=121) (actual time=0.009..0.067 rows=51.00 loops=1) + Buffers: shared hit=53 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..66.44 rows=16 width=121) (actual time=0.009..0.065 rows=51.00 loops=1) + Index Cond: (chat_id = 'ac906f31-31b9-472c-9416-431b6154b01e'::uuid) + Index Searches: 1 + Buffers: shared hit=53 + +### bg 400: middle, после 200 + +duration: 0.070 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'ac906f31-31b9-472c-9416-431b6154b01e', $2 = '2026-10-02 04:29:43.395209+00', $3 = '8f2c161b-c9ec-40f0-b84c-364d4d091ac0', $4 = '51' +Limit (cost=0.42..27.91 rows=7 width=121) (actual time=0.008..0.060 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..287.07 rows=73 width=121) (actual time=0.008..0.058 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=54 + +### bg 400: last, после 300 + +duration: 0.068 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'ac906f31-31b9-472c-9416-431b6154b01e', $2 = '2026-10-02 04:30:33.50557+00', $3 = 'c946cb97-462f-4b37-b062-8e153629a81e', $4 = '51' +Limit (cost=0.42..27.91 rows=7 width=121) (actual time=0.007..0.058 rows=51.00 loops=1) + Buffers: shared hit=53 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..287.07 rows=73 width=121) (actual time=0.006..0.056 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=53 + +### bg 10: first, после 0 + +duration: 0.022 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = '5fefd812-e275-4da5-816c-c3316fbad983', $2 = '51' +Limit (cost=0.42..66.44 rows=16 width=121) (actual time=0.008..0.019 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..66.44 rows=16 width=121) (actual time=0.008..0.019 rows=10.00 loops=1) + Index Cond: (chat_id = '5fefd812-e275-4da5-816c-c3316fbad983'::uuid) + Index Searches: 1 + Buffers: shared hit=13 + +## Страницы сравнения в psql: варианты + +Тот же текст запроса и те же параметры, что у плана приложения этой +страницы, в одной транзакции, которая откатывается: индексы базы +после неё те же. Каждый вариант выполнен дважды, здесь — второе +выполнение. `psql` — индекс приложения, custom plan; `generic` — он +же с force_generic_plan; `or-cursor` — условие курсора через OR; +`no-index` — без индекса приложения; варианты индекса вместо него: +`chat_only` (chat_id), `covering` (chat_id, created_at, id) INCLUDE (sender_id, text). + +### read 100k: middle, после 50000 + +#### psql + +Limit (cost=0.42..18.95 rows=51 width=121) (actual time=0.007..0.022 rows=51.00 loops=1) + Buffers: shared hit=50 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..18414.68 rows=50688 width=121) (actual time=0.006..0.019 rows=51.00 loops=1) + Index Cond: ((chat_id = '8168dfa1-b77d-4a1b-b326-3c141abb0288'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.65986+00'::timestamp with time zone, '305dee56-4c6a-4706-9f4f-82b1742495b9'::uuid))) + Index Searches: 1 + Buffers: shared hit=50 +Planning Time: 0.053 ms +Execution Time: 0.032 ms + +#### generic + +Limit (cost=0.42..27.91 rows=7 width=121) (actual time=0.008..0.021 rows=51.00 loops=1) + Buffers: shared hit=50 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..287.07 rows=73 width=121) (actual time=0.007..0.017 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=50 +Planning Time: 0.009 ms +Execution Time: 0.030 ms + +#### or-cursor + +Limit (cost=0.42..22.98 rows=51 width=121) (actual time=7.359..7.370 rows=51.00 loops=1) + Buffers: shared hit=50488 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..22425.26 rows=50688 width=121) (actual time=7.359..7.367 rows=51.00 loops=1) + Index Cond: (chat_id = '8168dfa1-b77d-4a1b-b326-3c141abb0288'::uuid) + Filter: ((created_at > '2026-10-02 04:29:43.65986+00'::timestamp with time zone) OR ((created_at = '2026-10-02 04:29:43.65986+00'::timestamp with time zone) AND (id > '305dee56-4c6a-4706-9f4f-82b1742495b9'::uuid))) + Rows Removed by Filter: 50000 + Index Searches: 1 + Buffers: shared hit=50488 +Planning Time: 0.057 ms +Execution Time: 7.379 ms + +#### no-index + +Limit (cost=7014.97..7020.91 rows=51 width=121) (actual time=5.476..6.776 rows=51.00 loops=1) + Buffers: shared hit=3882 + -> Gather Merge (cost=7014.97..12918.42 rows=50688 width=121) (actual time=5.476..6.771 rows=51.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=3882 + -> Sort (cost=6014.94..6067.74 rows=21120 width=121) (actual time=4.424..4.426 rows=42.33 loops=3) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 51kB + Buffers: shared hit=3882 + Worker 0: Sort Method: top-N heapsort Memory: 50kB + Worker 1: Sort Method: top-N heapsort Memory: 49kB + -> Parallel Seq Scan on messages (cost=0.00..5310.33 rows=21120 width=121) (actual time=1.482..3.588 rows=16666.67 loops=3) + Filter: ((chat_id = '8168dfa1-b77d-4a1b-b326-3c141abb0288'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.65986+00'::timestamp with time zone, '305dee56-4c6a-4706-9f4f-82b1742495b9'::uuid))) + Rows Removed by Filter: 50000 + Buffers: shared hit=3852 +Planning Time: 0.082 ms +Execution Time: 6.795 ms + +#### chat_only + +Limit (cost=7014.97..7020.91 rows=51 width=121) (actual time=4.719..5.651 rows=51.00 loops=1) + Buffers: shared hit=3882 + -> Gather Merge (cost=7014.97..12918.42 rows=50688 width=121) (actual time=4.719..5.648 rows=51.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=3882 + -> Sort (cost=6014.94..6067.74 rows=21120 width=121) (actual time=3.913..3.915 rows=42.33 loops=3) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 48kB + Buffers: shared hit=3882 + Worker 0: Sort Method: top-N heapsort Memory: 46kB + Worker 1: Sort Method: top-N heapsort Memory: 49kB + -> Parallel Seq Scan on messages (cost=0.00..5310.33 rows=21120 width=121) (actual time=1.283..3.078 rows=16666.67 loops=3) + Filter: ((chat_id = '8168dfa1-b77d-4a1b-b326-3c141abb0288'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.65986+00'::timestamp with time zone, '305dee56-4c6a-4706-9f4f-82b1742495b9'::uuid))) + Rows Removed by Filter: 50000 + Buffers: shared hit=3852 +Planning Time: 0.042 ms +Execution Time: 5.659 ms + +#### covering + +Limit (cost=0.42..5.39 rows=51 width=121) (actual time=0.006..0.012 rows=51.00 loops=1) + Buffers: shared hit=5 + -> Index Only Scan using bench_variant on messages (cost=0.42..4942.18 rows=50688 width=121) (actual time=0.006..0.009 rows=51.00 loops=1) + Index Cond: ((chat_id = '8168dfa1-b77d-4a1b-b326-3c141abb0288'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.65986+00'::timestamp with time zone, '305dee56-4c6a-4706-9f4f-82b1742495b9'::uuid))) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=5 +Planning Time: 0.041 ms +Execution Time: 0.019 ms + +### bg 5k: middle, после 2500 + +#### psql + +Limit (cost=0.42..152.59 rows=51 width=121) (actual time=0.004..0.018 rows=51.00 loops=1) + Buffers: shared hit=52 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..7397.25 rows=2479 width=121) (actual time=0.004..0.015 rows=51.00 loops=1) + Index Cond: ((chat_id = 'ce420db9-1add-44f4-ac30-eef132545058'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.647772+00'::timestamp with time zone, '03e854fd-a86a-47be-a03c-a9f644378e07'::uuid))) + Index Searches: 1 + Buffers: shared hit=52 +Planning Time: 0.044 ms +Execution Time: 0.025 ms + +#### generic + +Limit (cost=0.42..27.91 rows=7 width=121) (actual time=0.004..0.019 rows=51.00 loops=1) + Buffers: shared hit=52 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..287.07 rows=73 width=121) (actual time=0.004..0.016 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=52 +Planning Time: 0.007 ms +Execution Time: 0.026 ms + +#### or-cursor + +Limit (cost=0.42..245.54 rows=51 width=121) (actual time=0.401..0.411 rows=51.00 loops=1) + Buffers: shared hit=2430 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..11915.05 rows=2479 width=121) (actual time=0.401..0.409 rows=51.00 loops=1) + Index Cond: (chat_id = 'ce420db9-1add-44f4-ac30-eef132545058'::uuid) + Filter: ((created_at > '2026-10-02 04:29:43.647772+00'::timestamp with time zone) OR ((created_at = '2026-10-02 04:29:43.647772+00'::timestamp with time zone) AND (id > '03e854fd-a86a-47be-a03c-a9f644378e07'::uuid))) + Rows Removed by Filter: 2500 + Index Searches: 1 + Buffers: shared hit=2430 +Planning Time: 0.050 ms +Execution Time: 0.416 ms + +#### no-index + +Limit (cost=6344.82..6350.76 rows=51 width=121) (actual time=3.494..5.159 rows=51.00 loops=1) + Buffers: shared hit=3882 + -> Gather Merge (cost=6344.82..6633.54 rows=2479 width=121) (actual time=3.494..5.143 rows=51.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=3882 + -> Sort (cost=5344.80..5347.38 rows=1033 width=121) (actual time=2.613..2.614 rows=40.33 loops=3) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 39kB + Buffers: shared hit=3882 + Worker 0: Sort Method: top-N heapsort Memory: 38kB + Worker 1: Sort Method: top-N heapsort Memory: 39kB + -> Parallel Seq Scan on messages (cost=0.00..5310.33 rows=1033 width=121) (actual time=1.096..2.550 rows=833.33 loops=3) + Filter: ((chat_id = 'ce420db9-1add-44f4-ac30-eef132545058'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.647772+00'::timestamp with time zone, '03e854fd-a86a-47be-a03c-a9f644378e07'::uuid))) + Rows Removed by Filter: 65833 + Buffers: shared hit=3852 +Planning Time: 0.049 ms +Execution Time: 5.168 ms + +#### chat_only + +Limit (cost=4283.81..4283.94 rows=51 width=121) (actual time=1.279..1.283 rows=51.00 loops=1) + Buffers: shared hit=2825 + -> Sort (cost=4283.81..4290.01 rows=2479 width=121) (actual time=1.279..1.280 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 40kB + Buffers: shared hit=2825 + -> Bitmap Heap Scan on messages (cost=57.84..4201.11 rows=2479 width=121) (actual time=0.691..1.152 rows=2500.00 loops=1) + Recheck Cond: (chat_id = 'ce420db9-1add-44f4-ac30-eef132545058'::uuid) + Filter: (ROW(created_at, id) > ROW('2026-10-02 04:29:43.647772+00'::timestamp with time zone, '03e854fd-a86a-47be-a03c-a9f644378e07'::uuid)) + Rows Removed by Filter: 2500 + Heap Blocks: exact=2817 + Buffers: shared hit=2825 + -> Bitmap Index Scan on bench_variant (cost=0.00..57.22 rows=4907 width=0) (actual time=0.186..0.186 rows=5000.00 loops=1) + Index Cond: (chat_id = 'ce420db9-1add-44f4-ac30-eef132545058'::uuid) + Index Searches: 1 + Buffers: shared hit=8 +Planning Time: 0.040 ms +Execution Time: 1.289 ms + +#### covering + +Limit (cost=0.42..5.47 rows=51 width=121) (actual time=0.005..0.012 rows=51.00 loops=1) + Buffers: shared hit=5 + -> Index Only Scan using bench_variant on messages (cost=0.42..246.00 rows=2479 width=121) (actual time=0.005..0.009 rows=51.00 loops=1) + Index Cond: ((chat_id = 'ce420db9-1add-44f4-ac30-eef132545058'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.647772+00'::timestamp with time zone, '03e854fd-a86a-47be-a03c-a9f644378e07'::uuid))) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=5 +Planning Time: 0.037 ms +Execution Time: 0.019 ms + +### bg 400: middle, после 200 + +#### psql + +Limit (cost=0.42..35.53 rows=8 width=121) (actual time=0.004..0.021 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..35.53 rows=8 width=121) (actual time=0.004..0.018 rows=51.00 loops=1) + Index Cond: ((chat_id = 'ac906f31-31b9-472c-9416-431b6154b01e'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.395209+00'::timestamp with time zone, '8f2c161b-c9ec-40f0-b84c-364d4d091ac0'::uuid))) + Index Searches: 1 + Buffers: shared hit=54 +Planning Time: 0.029 ms +Execution Time: 0.027 ms + +#### generic + +Limit (cost=0.42..27.91 rows=7 width=121) (actual time=0.004..0.021 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..287.07 rows=73 width=121) (actual time=0.004..0.018 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=54 +Planning Time: 0.005 ms +Execution Time: 0.027 ms + +#### or-cursor + +Limit (cost=40.12..40.14 rows=8 width=121) (actual time=0.113..0.117 rows=51.00 loops=1) + Buffers: shared hit=201 + -> Sort (cost=40.12..40.14 rows=8 width=121) (actual time=0.113..0.114 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 38kB + Buffers: shared hit=201 + -> Bitmap Heap Scan on messages (cost=8.94..40.00 rows=8 width=121) (actual time=0.033..0.082 rows=200.00 loops=1) + Recheck Cond: (((chat_id = 'ac906f31-31b9-472c-9416-431b6154b01e'::uuid) AND (created_at > '2026-10-02 04:29:43.395209+00'::timestamp with time zone)) OR ((chat_id = 'ac906f31-31b9-472c-9416-431b6154b01e'::uuid) AND (created_at = '2026-10-02 04:29:43.395209+00'::timestamp with time zone) AND (id > '8f2c161b-c9ec-40f0-b84c-364d4d091ac0'::uuid))) + Heap Blocks: exact=193 + Buffers: shared hit=201 + -> BitmapOr (cost=8.94..8.94 rows=8 width=0) (actual time=0.011..0.011 rows=0.00 loops=1) + Buffers: shared hit=8 + -> Bitmap Index Scan on ix_messages_chat_id_created_at_id (cost=0.00..4.50 rows=8 width=0) (actual time=0.010..0.010 rows=200.00 loops=1) + Index Cond: ((chat_id = 'ac906f31-31b9-472c-9416-431b6154b01e'::uuid) AND (created_at > '2026-10-02 04:29:43.395209+00'::timestamp with time zone)) + Index Searches: 1 + Buffers: shared hit=5 + -> Bitmap Index Scan on ix_messages_chat_id_created_at_id (cost=0.00..4.43 rows=1 width=0) (actual time=0.001..0.001 rows=0.00 loops=1) + Index Cond: ((chat_id = 'ac906f31-31b9-472c-9416-431b6154b01e'::uuid) AND (created_at = '2026-10-02 04:29:43.395209+00'::timestamp with time zone) AND (id > '8f2c161b-c9ec-40f0-b84c-364d4d091ac0'::uuid)) + Index Searches: 1 + Buffers: shared hit=3 +Planning Time: 0.038 ms +Execution Time: 0.124 ms + +#### no-index + +Limit (cost=6310.38..6311.20 rows=7 width=121) (actual time=3.357..4.367 rows=51.00 loops=1) + Buffers: shared hit=3882 + -> Gather Merge (cost=6310.38..6311.20 rows=7 width=121) (actual time=3.357..4.364 rows=51.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=3882 + -> Sort (cost=5310.36..5310.36 rows=3 width=121) (actual time=2.454..2.455 rows=41.67 loops=3) + Sort Key: created_at, id + Sort Method: quicksort Memory: 44kB + Buffers: shared hit=3882 + Worker 0: Sort Method: quicksort Memory: 41kB + Worker 1: Sort Method: quicksort Memory: 40kB + -> Parallel Seq Scan on messages (cost=0.00..5310.33 rows=3 width=121) (actual time=1.180..2.436 rows=66.67 loops=3) + Filter: ((chat_id = 'ac906f31-31b9-472c-9416-431b6154b01e'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.395209+00'::timestamp with time zone, '8f2c161b-c9ec-40f0-b84c-364d4d091ac0'::uuid))) + Rows Removed by Filter: 66600 + Buffers: shared hit=3852 +Planning Time: 0.043 ms +Execution Time: 4.377 ms + +#### chat_only + +Limit (cost=64.88..64.90 rows=8 width=121) (actual time=0.122..0.126 rows=51.00 loops=1) + Buffers: shared hit=390 + -> Sort (cost=64.88..64.90 rows=8 width=121) (actual time=0.122..0.124 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 38kB + Buffers: shared hit=390 + -> Index Scan using bench_variant on messages (cost=0.42..64.76 rows=8 width=121) (actual time=0.067..0.108 rows=200.00 loops=1) + Index Cond: (chat_id = 'ac906f31-31b9-472c-9416-431b6154b01e'::uuid) + Filter: (ROW(created_at, id) > ROW('2026-10-02 04:29:43.395209+00'::timestamp with time zone, '8f2c161b-c9ec-40f0-b84c-364d4d091ac0'::uuid)) + Rows Removed by Filter: 200 + Index Searches: 1 + Buffers: shared hit=390 +Planning Time: 0.044 ms +Execution Time: 0.132 ms + +#### covering + +Limit (cost=0.42..4.58 rows=8 width=121) (actual time=0.011..0.018 rows=51.00 loops=1) + Buffers: shared hit=5 + -> Index Only Scan using bench_variant on messages (cost=0.42..4.58 rows=8 width=121) (actual time=0.011..0.015 rows=51.00 loops=1) + Index Cond: ((chat_id = 'ac906f31-31b9-472c-9416-431b6154b01e'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:29:43.395209+00'::timestamp with time zone, '8f2c161b-c9ec-40f0-b84c-364d4d091ac0'::uuid))) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=5 +Planning Time: 0.037 ms +Execution Time: 0.035 ms + +### bg 10: first, после 0 + +#### psql + +Limit (cost=0.42..66.44 rows=16 width=121) (actual time=0.004..0.008 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..66.44 rows=16 width=121) (actual time=0.004..0.008 rows=10.00 loops=1) + Index Cond: (chat_id = '5fefd812-e275-4da5-816c-c3316fbad983'::uuid) + Index Searches: 1 + Buffers: shared hit=13 +Planning Time: 0.035 ms +Execution Time: 0.013 ms + +#### generic + +Limit (cost=0.42..84.41 rows=22 width=121) (actual time=0.005..0.010 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..836.46 rows=219 width=121) (actual time=0.005..0.008 rows=10.00 loops=1) + Index Cond: (chat_id = $1) + Index Searches: 1 + Buffers: shared hit=13 +Planning Time: 0.005 ms +Execution Time: 0.016 ms + +#### no-index + +Limit (cost=5895.59..5895.63 rows=16 width=121) (actual time=3.220..4.197 rows=10.00 loops=1) + Buffers: shared hit=3852 + -> Sort (cost=5895.59..5895.63 rows=16 width=121) (actual time=3.219..4.196 rows=10.00 loops=1) + Sort Key: created_at, id + Sort Method: quicksort Memory: 27kB + Buffers: shared hit=3852 + -> Gather (cost=1000.00..5895.27 rows=16 width=121) (actual time=0.356..4.191 rows=10.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=3852 + -> Parallel Seq Scan on messages (cost=0.00..4893.67 rows=7 width=121) (actual time=0.236..2.321 rows=3.33 loops=3) + Filter: (chat_id = '5fefd812-e275-4da5-816c-c3316fbad983'::uuid) + Rows Removed by Filter: 66663 + Buffers: shared hit=3852 +Planning Time: 0.046 ms +Execution Time: 4.210 ms + +#### chat_only + +Limit (cost=65.00..65.04 rows=16 width=121) (actual time=0.008..0.009 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Sort (cost=65.00..65.04 rows=16 width=121) (actual time=0.008..0.008 rows=10.00 loops=1) + Sort Key: created_at, id + Sort Method: quicksort Memory: 27kB + Buffers: shared hit=13 + -> Index Scan using bench_variant on messages (cost=0.42..64.68 rows=16 width=121) (actual time=0.003..0.006 rows=10.00 loops=1) + Index Cond: (chat_id = '5fefd812-e275-4da5-816c-c3316fbad983'::uuid) + Index Searches: 1 + Buffers: shared hit=13 +Planning Time: 0.024 ms +Execution Time: 0.013 ms + +#### covering + +Limit (cost=0.42..4.70 rows=16 width=121) (actual time=0.003..0.004 rows=10.00 loops=1) + Buffers: shared hit=4 + -> Index Only Scan using bench_variant on messages (cost=0.42..4.70 rows=16 width=121) (actual time=0.003..0.004 rows=10.00 loops=1) + Index Cond: (chat_id = '5fefd812-e275-4da5-816c-c3316fbad983'::uuid) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=4 +Planning Time: 0.026 ms +Execution Time: 0.009 ms diff --git a/evidence/bench/restore/explain-10k.txt b/evidence/bench/restore/explain-10k.txt new file mode 100644 index 00000000..bd5fffa0 --- /dev/null +++ b/evidence/bench/restore/explain-10k.txt @@ -0,0 +1,512 @@ +# План запроса истории: размер 10k + +Commit 67cb4d7 +Читаемый чат — 10000 сообщений; фоновые чаты: 10 × 5k, 100 × 400, 1000 × 10. +Страница — `limit` профиля; «после» — сколько сообщений чата до +страницы. + +## Планы приложения + +auto_explain (ANALYZE, BUFFERS, TIMING): запрос, параметры и план, +с которыми его выполнило приложение (prepared statement asyncpg). + +### read 10k: first, после 0 + +duration: 0.063 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = '16247948-069a-41c4-ac39-4960d74af26b', $2 = '51' +Limit (cost=0.42..46.21 rows=51 width=121) (actual time=0.015..0.050 rows=51.00 loops=1) + Buffers: shared hit=46 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..9185.54 rows=10230 width=121) (actual time=0.015..0.046 rows=51.00 loops=1) + Index Cond: (chat_id = '16247948-069a-41c4-ac39-4960d74af26b'::uuid) + Index Searches: 1 + Buffers: shared hit=46 + +### read 10k: middle, после 5000 + +duration: 0.065 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = '16247948-069a-41c4-ac39-4960d74af26b', $2 = '2026-10-02 04:26:36.494259+00', $3 = 'bb1d6b63-a42f-456c-904f-517fdec74674', $4 = '51' +Limit (cost=0.42..12.82 rows=3 width=121) (actual time=0.020..0.052 rows=51.00 loops=1) + Buffers: shared hit=55 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..141.00 rows=34 width=121) (actual time=0.019..0.048 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=55 + +### read 10k: last, после 9900 + +duration: 0.055 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = '16247948-069a-41c4-ac39-4960d74af26b', $2 = '2026-10-02 04:27:31.500672+00', $3 = '058c8820-b7bc-44d2-999b-b327b1229e5a', $4 = '51' +Limit (cost=0.42..12.82 rows=3 width=121) (actual time=0.012..0.045 rows=51.00 loops=1) + Buffers: shared hit=53 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..141.00 rows=34 width=121) (actual time=0.011..0.041 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=53 + +### bg 5k: first, после 0 + +duration: 0.049 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = '68a617de-3d8f-4b0f-955a-fc36aacd783d', $2 = '51' +Limit (cost=0.42..90.54 rows=51 width=121) (actual time=0.012..0.038 rows=51.00 loops=1) + Buffers: shared hit=46 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..8837.96 rows=5001 width=121) (actual time=0.011..0.036 rows=51.00 loops=1) + Index Cond: (chat_id = '68a617de-3d8f-4b0f-955a-fc36aacd783d'::uuid) + Index Searches: 1 + Buffers: shared hit=46 + +### bg 5k: middle, после 2500 + +duration: 0.051 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = '68a617de-3d8f-4b0f-955a-fc36aacd783d', $2 = '2026-10-02 04:26:36.485784+00', $3 = 'c5916956-6a49-4619-b177-d9d2b5ef9dc9', $4 = '51' +Limit (cost=0.42..12.82 rows=3 width=121) (actual time=0.014..0.040 rows=51.00 loops=1) + Buffers: shared hit=50 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..141.00 rows=34 width=121) (actual time=0.014..0.037 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=50 + +### bg 5k: last, после 4900 + +duration: 0.052 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = '68a617de-3d8f-4b0f-955a-fc36aacd783d', $2 = '2026-10-02 04:27:30.486163+00', $3 = '655cb466-1486-474f-8e8a-eebbef614b66', $4 = '51' +Limit (cost=0.42..12.82 rows=3 width=121) (actual time=0.010..0.041 rows=51.00 loops=1) + Buffers: shared hit=53 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..141.00 rows=34 width=121) (actual time=0.010..0.038 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=53 + +### bg 400: first, после 0 + +duration: 0.081 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = 'e4673889-7eb9-410f-92ad-9bfa26894ef3', $2 = '51' +Limit (cost=0.42..189.27 rows=51 width=121) (actual time=0.010..0.070 rows=51.00 loops=1) + Buffers: shared hit=53 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..1614.93 rows=436 width=121) (actual time=0.010..0.068 rows=51.00 loops=1) + Index Cond: (chat_id = 'e4673889-7eb9-410f-92ad-9bfa26894ef3'::uuid) + Index Searches: 1 + Buffers: shared hit=53 + +### bg 400: middle, после 200 + +duration: 0.076 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'e4673889-7eb9-410f-92ad-9bfa26894ef3', $2 = '2026-10-02 04:26:36.332907+00', $3 = '687d11cd-352d-41fe-a556-2ff16f09650b', $4 = '51' +Limit (cost=0.42..12.82 rows=3 width=121) (actual time=0.009..0.065 rows=51.00 loops=1) + Buffers: shared hit=49 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..141.00 rows=34 width=121) (actual time=0.008..0.062 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=49 + +### bg 400: last, после 300 + +duration: 0.069 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'e4673889-7eb9-410f-92ad-9bfa26894ef3', $2 = '2026-10-02 04:27:04.035066+00', $3 = 'd453b3c9-25ba-4060-8bb9-64a65b53b231', $4 = '51' +Limit (cost=0.42..12.82 rows=3 width=121) (actual time=0.008..0.058 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..141.00 rows=34 width=121) (actual time=0.008..0.055 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=54 + +### bg 10: first, после 0 + +duration: 0.031 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = '0efbcbe9-fc38-4fdd-b0d4-fee054e19463', $2 = '51' +Limit (cost=57.56..57.60 rows=14 width=121) (actual time=0.027..0.028 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Sort (cost=57.56..57.60 rows=14 width=121) (actual time=0.027..0.027 rows=10.00 loops=1) + Sort Key: created_at, id + Sort Method: quicksort Memory: 27kB + Buffers: shared hit=13 + -> Bitmap Heap Scan on messages (cost=4.53..57.29 rows=14 width=121) (actual time=0.011..0.023 rows=10.00 loops=1) + Recheck Cond: (chat_id = '0efbcbe9-fc38-4fdd-b0d4-fee054e19463'::uuid) + Heap Blocks: exact=10 + Buffers: shared hit=13 + -> Bitmap Index Scan on ix_messages_chat_id_created_at_id (cost=0.00..4.52 rows=14 width=0) (actual time=0.006..0.006 rows=10.00 loops=1) + Index Cond: (chat_id = '0efbcbe9-fc38-4fdd-b0d4-fee054e19463'::uuid) + Index Searches: 1 + Buffers: shared hit=3 + +## Страницы сравнения в psql: варианты + +Тот же текст запроса и те же параметры, что у плана приложения этой +страницы, в одной транзакции, которая откатывается: индексы базы +после неё те же. Каждый вариант выполнен дважды, здесь — второе +выполнение. `psql` — индекс приложения, custom plan; `generic` — он +же с force_generic_plan; `or-cursor` — условие курсора через OR; +`no-index` — без индекса приложения; варианты индекса вместо него: +`chat_only` (chat_id), `covering` (chat_id, created_at, id) INCLUDE (sender_id, text). + +### read 10k: middle, после 5000 + +#### psql + +Limit (cost=0.42..88.87 rows=51 width=121) (actual time=0.004..0.018 rows=51.00 loops=1) + Buffers: shared hit=55 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..8856.56 rows=5106 width=121) (actual time=0.004..0.016 rows=51.00 loops=1) + Index Cond: ((chat_id = '16247948-069a-41c4-ac39-4960d74af26b'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:26:36.494259+00'::timestamp with time zone, 'bb1d6b63-a42f-456c-904f-517fdec74674'::uuid))) + Index Searches: 1 + Buffers: shared hit=55 +Planning Time: 0.030 ms +Execution Time: 0.024 ms + +#### generic + +Limit (cost=0.42..12.82 rows=3 width=121) (actual time=0.004..0.018 rows=51.00 loops=1) + Buffers: shared hit=55 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..141.00 rows=34 width=121) (actual time=0.003..0.015 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=55 +Planning Time: 0.004 ms +Execution Time: 0.022 ms + +#### or-cursor + +Limit (cost=0.42..92.93 rows=51 width=121) (actual time=0.699..0.711 rows=51.00 loops=1) + Buffers: shared hit=4973 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..9262.26 rows=5106 width=121) (actual time=0.699..0.708 rows=51.00 loops=1) + Index Cond: (chat_id = '16247948-069a-41c4-ac39-4960d74af26b'::uuid) + Filter: ((created_at > '2026-10-02 04:26:36.494259+00'::timestamp with time zone) OR ((created_at = '2026-10-02 04:26:36.494259+00'::timestamp with time zone) AND (id > 'bb1d6b63-a42f-456c-904f-517fdec74674'::uuid))) + Rows Removed by Filter: 5000 + Index Searches: 1 + Buffers: shared hit=4973 +Planning Time: 0.035 ms +Execution Time: 0.715 ms + +#### no-index + +Limit (cost=4223.35..4223.47 rows=51 width=121) (actual time=3.298..3.303 rows=51.00 loops=1) + Buffers: shared hit=2128 + -> Sort (cost=4223.35..4236.11 rows=5106 width=121) (actual time=3.298..3.301 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 49kB + Buffers: shared hit=2128 + -> Seq Scan on messages (cost=0.00..4053.00 rows=5106 width=121) (actual time=0.684..3.042 rows=5000.00 loops=1) + Filter: ((chat_id = '16247948-069a-41c4-ac39-4960d74af26b'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:26:36.494259+00'::timestamp with time zone, 'bb1d6b63-a42f-456c-904f-517fdec74674'::uuid))) + Rows Removed by Filter: 105000 + Buffers: shared hit=2128 +Planning Time: 0.025 ms +Execution Time: 3.310 ms + +#### chat_only + +Limit (cost=2595.67..2595.79 rows=51 width=121) (actual time=1.426..1.430 rows=51.00 loops=1) + Buffers: shared hit=2031 + -> Sort (cost=2595.67..2608.43 rows=5106 width=121) (actual time=1.425..1.427 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 49kB + Buffers: shared hit=2031 + -> Bitmap Heap Scan on messages (cost=118.29..2425.32 rows=5106 width=121) (actual time=0.525..1.201 rows=5000.00 loops=1) + Recheck Cond: (chat_id = '16247948-069a-41c4-ac39-4960d74af26b'::uuid) + Filter: (ROW(created_at, id) > ROW('2026-10-02 04:26:36.494259+00'::timestamp with time zone, 'bb1d6b63-a42f-456c-904f-517fdec74674'::uuid)) + Rows Removed by Filter: 5000 + Heap Blocks: exact=2021 + Buffers: shared hit=2031 + -> Bitmap Index Scan on bench_variant (cost=0.00..117.02 rows=10230 width=0) (actual time=0.186..0.186 rows=10000.00 loops=1) + Index Cond: (chat_id = '16247948-069a-41c4-ac39-4960d74af26b'::uuid) + Index Searches: 1 + Buffers: shared hit=10 +Planning Time: 0.050 ms +Execution Time: 1.438 ms + +#### covering + +Limit (cost=0.42..5.39 rows=51 width=121) (actual time=0.003..0.009 rows=51.00 loops=1) + Buffers: shared hit=5 + -> Index Only Scan using bench_variant on messages (cost=0.42..498.54 rows=5106 width=121) (actual time=0.003..0.006 rows=51.00 loops=1) + Index Cond: ((chat_id = '16247948-069a-41c4-ac39-4960d74af26b'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:26:36.494259+00'::timestamp with time zone, 'bb1d6b63-a42f-456c-904f-517fdec74674'::uuid))) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=5 +Planning Time: 0.026 ms +Execution Time: 0.013 ms + +### bg 5k: middle, после 2500 + +#### psql + +Limit (cost=0.42..132.47 rows=51 width=121) (actual time=0.005..0.019 rows=51.00 loops=1) + Buffers: shared hit=50 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..6465.92 rows=2497 width=121) (actual time=0.005..0.015 rows=51.00 loops=1) + Index Cond: ((chat_id = '68a617de-3d8f-4b0f-955a-fc36aacd783d'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:26:36.485784+00'::timestamp with time zone, 'c5916956-6a49-4619-b177-d9d2b5ef9dc9'::uuid))) + Index Searches: 1 + Buffers: shared hit=50 +Planning Time: 0.042 ms +Execution Time: 0.025 ms + +#### generic + +Limit (cost=0.42..12.82 rows=3 width=121) (actual time=0.006..0.018 rows=51.00 loops=1) + Buffers: shared hit=50 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..141.00 rows=34 width=121) (actual time=0.006..0.015 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=50 +Planning Time: 0.007 ms +Execution Time: 0.025 ms + +#### or-cursor + +Limit (cost=0.42..181.69 rows=51 width=121) (actual time=0.346..0.355 rows=51.00 loops=1) + Buffers: shared hit=2431 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..8875.46 rows=2497 width=121) (actual time=0.345..0.352 rows=51.00 loops=1) + Index Cond: (chat_id = '68a617de-3d8f-4b0f-955a-fc36aacd783d'::uuid) + Filter: ((created_at > '2026-10-02 04:26:36.485784+00'::timestamp with time zone) OR ((created_at = '2026-10-02 04:26:36.485784+00'::timestamp with time zone) AND (id > 'c5916956-6a49-4619-b177-d9d2b5ef9dc9'::uuid))) + Rows Removed by Filter: 2500 + Index Searches: 1 + Buffers: shared hit=2431 +Planning Time: 0.041 ms +Execution Time: 0.360 ms + +#### no-index + +Limit (cost=4136.31..4136.43 rows=51 width=121) (actual time=2.927..2.930 rows=51.00 loops=1) + Buffers: shared hit=2128 + -> Sort (cost=4136.31..4142.55 rows=2497 width=121) (actual time=2.926..2.928 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 44kB + Buffers: shared hit=2128 + -> Seq Scan on messages (cost=0.00..4053.00 rows=2497 width=121) (actual time=0.615..2.805 rows=2500.00 loops=1) + Filter: ((chat_id = '68a617de-3d8f-4b0f-955a-fc36aacd783d'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:26:36.485784+00'::timestamp with time zone, 'c5916956-6a49-4619-b177-d9d2b5ef9dc9'::uuid))) + Rows Removed by Filter: 107500 + Buffers: shared hit=2128 +Planning Time: 0.032 ms +Execution Time: 2.936 ms + +#### chat_only + +Limit (cost=2357.25..2357.37 rows=51 width=121) (actual time=0.894..0.898 rows=51.00 loops=1) + Buffers: shared hit=1867 + -> Sort (cost=2357.25..2363.49 rows=2497 width=121) (actual time=0.894..0.896 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 44kB + Buffers: shared hit=1867 + -> Bitmap Heap Scan on messages (cost=58.42..2273.94 rows=2497 width=121) (actual time=0.364..0.783 rows=2500.00 loops=1) + Recheck Cond: (chat_id = '68a617de-3d8f-4b0f-955a-fc36aacd783d'::uuid) + Filter: (ROW(created_at, id) > ROW('2026-10-02 04:26:36.485784+00'::timestamp with time zone, 'c5916956-6a49-4619-b177-d9d2b5ef9dc9'::uuid)) + Rows Removed by Filter: 2500 + Heap Blocks: exact=1861 + Buffers: shared hit=1867 + -> Bitmap Index Scan on bench_variant (cost=0.00..57.80 rows=5001 width=0) (actual time=0.144..0.144 rows=5000.00 loops=1) + Index Cond: (chat_id = '68a617de-3d8f-4b0f-955a-fc36aacd783d'::uuid) + Index Searches: 1 + Buffers: shared hit=6 +Planning Time: 0.028 ms +Execution Time: 0.903 ms + +#### covering + +Limit (cost=0.42..5.44 rows=51 width=121) (actual time=0.003..0.009 rows=51.00 loops=1) + Buffers: shared hit=5 + -> Index Only Scan using bench_variant on messages (cost=0.42..246.36 rows=2497 width=121) (actual time=0.003..0.006 rows=51.00 loops=1) + Index Cond: ((chat_id = '68a617de-3d8f-4b0f-955a-fc36aacd783d'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:26:36.485784+00'::timestamp with time zone, 'c5916956-6a49-4619-b177-d9d2b5ef9dc9'::uuid))) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=5 +Planning Time: 0.022 ms +Execution Time: 0.013 ms + +### bg 400: middle, после 200 + +#### psql + +Limit (cost=0.42..198.75 rows=51 width=121) (actual time=0.004..0.021 rows=51.00 loops=1) + Buffers: shared hit=49 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..848.19 rows=218 width=121) (actual time=0.004..0.018 rows=51.00 loops=1) + Index Cond: ((chat_id = 'e4673889-7eb9-410f-92ad-9bfa26894ef3'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:26:36.332907+00'::timestamp with time zone, '687d11cd-352d-41fe-a556-2ff16f09650b'::uuid))) + Index Searches: 1 + Buffers: shared hit=49 +Planning Time: 0.045 ms +Execution Time: 0.028 ms + +#### generic + +Limit (cost=0.42..12.82 rows=3 width=121) (actual time=0.014..0.025 rows=51.00 loops=1) + Buffers: shared hit=49 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..141.00 rows=34 width=121) (actual time=0.014..0.022 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=49 +Planning Time: 0.003 ms +Execution Time: 0.030 ms + +#### or-cursor + +Limit (cost=0.42..378.89 rows=51 width=121) (actual time=0.047..0.061 rows=51.00 loops=1) + Buffers: shared hit=238 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..1618.20 rows=218 width=121) (actual time=0.047..0.058 rows=51.00 loops=1) + Index Cond: (chat_id = 'e4673889-7eb9-410f-92ad-9bfa26894ef3'::uuid) + Filter: ((created_at > '2026-10-02 04:26:36.332907+00'::timestamp with time zone) OR ((created_at = '2026-10-02 04:26:36.332907+00'::timestamp with time zone) AND (id > '687d11cd-352d-41fe-a556-2ff16f09650b'::uuid))) + Rows Removed by Filter: 200 + Index Searches: 1 + Buffers: shared hit=238 +Planning Time: 0.040 ms +Execution Time: 0.066 ms + +#### no-index + +Limit (cost=4060.27..4060.40 rows=51 width=121) (actual time=2.583..2.587 rows=51.00 loops=1) + Buffers: shared hit=2128 + -> Sort (cost=4060.27..4060.82 rows=218 width=121) (actual time=2.583..2.585 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 38kB + Buffers: shared hit=2128 + -> Seq Scan on messages (cost=0.00..4053.00 rows=218 width=121) (actual time=0.621..2.569 rows=200.00 loops=1) + Filter: ((chat_id = 'e4673889-7eb9-410f-92ad-9bfa26894ef3'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:26:36.332907+00'::timestamp with time zone, '687d11cd-352d-41fe-a556-2ff16f09650b'::uuid))) + Rows Removed by Filter: 109800 + Buffers: shared hit=2128 +Planning Time: 0.042 ms +Execution Time: 2.595 ms + +#### chat_only + +Limit (cost=1094.04..1094.17 rows=51 width=121) (actual time=0.148..0.152 rows=51.00 loops=1) + Buffers: shared hit=365 + -> Sort (cost=1094.04..1094.58 rows=218 width=121) (actual time=0.148..0.149 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 38kB + Buffers: shared hit=365 + -> Bitmap Heap Scan on messages (cost=7.62..1086.77 rows=218 width=121) (actual time=0.062..0.132 rows=200.00 loops=1) + Recheck Cond: (chat_id = 'e4673889-7eb9-410f-92ad-9bfa26894ef3'::uuid) + Filter: (ROW(created_at, id) > ROW('2026-10-02 04:26:36.332907+00'::timestamp with time zone, '687d11cd-352d-41fe-a556-2ff16f09650b'::uuid)) + Rows Removed by Filter: 200 + Heap Blocks: exact=363 + Buffers: shared hit=365 + -> Bitmap Index Scan on bench_variant (cost=0.00..7.56 rows=436 width=0) (actual time=0.016..0.016 rows=400.00 loops=1) + Index Cond: (chat_id = 'e4673889-7eb9-410f-92ad-9bfa26894ef3'::uuid) + Index Searches: 1 + Buffers: shared hit=2 +Planning Time: 0.030 ms +Execution Time: 0.158 ms + +#### covering + +Limit (cost=0.42..6.12 rows=51 width=121) (actual time=0.005..0.012 rows=51.00 loops=1) + Buffers: shared hit=5 + -> Index Only Scan using bench_variant on messages (cost=0.42..24.78 rows=218 width=121) (actual time=0.005..0.010 rows=51.00 loops=1) + Index Cond: ((chat_id = 'e4673889-7eb9-410f-92ad-9bfa26894ef3'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:26:36.332907+00'::timestamp with time zone, '687d11cd-352d-41fe-a556-2ff16f09650b'::uuid))) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=5 +Planning Time: 0.037 ms +Execution Time: 0.020 ms + +### bg 10: first, после 0 + +#### psql + +Limit (cost=57.56..57.60 rows=14 width=121) (actual time=0.013..0.013 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Sort (cost=57.56..57.60 rows=14 width=121) (actual time=0.012..0.013 rows=10.00 loops=1) + Sort Key: created_at, id + Sort Method: quicksort Memory: 27kB + Buffers: shared hit=13 + -> Bitmap Heap Scan on messages (cost=4.53..57.29 rows=14 width=121) (actual time=0.007..0.010 rows=10.00 loops=1) + Recheck Cond: (chat_id = '0efbcbe9-fc38-4fdd-b0d4-fee054e19463'::uuid) + Heap Blocks: exact=10 + Buffers: shared hit=13 + -> Bitmap Index Scan on ix_messages_chat_id_created_at_id (cost=0.00..4.52 rows=14 width=0) (actual time=0.003..0.004 rows=10.00 loops=1) + Index Cond: (chat_id = '0efbcbe9-fc38-4fdd-b0d4-fee054e19463'::uuid) + Index Searches: 1 + Buffers: shared hit=3 +Planning Time: 0.037 ms +Execution Time: 0.020 ms + +#### generic + +Limit (cost=0.42..40.56 rows=10 width=121) (actual time=0.002..0.004 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..409.92 rows=102 width=121) (actual time=0.002..0.003 rows=10.00 loops=1) + Index Cond: (chat_id = $1) + Index Searches: 1 + Buffers: shared hit=13 +Planning Time: 0.002 ms +Execution Time: 0.007 ms + +#### no-index + +Limit (cost=3503.27..3503.30 rows=14 width=121) (actual time=2.440..2.441 rows=10.00 loops=1) + Buffers: shared hit=2128 + -> Sort (cost=3503.27..3503.30 rows=14 width=121) (actual time=2.439..2.440 rows=10.00 loops=1) + Sort Key: created_at, id + Sort Method: quicksort Memory: 27kB + Buffers: shared hit=2128 + -> Seq Scan on messages (cost=0.00..3503.00 rows=14 width=121) (actual time=0.136..2.437 rows=10.00 loops=1) + Filter: (chat_id = '0efbcbe9-fc38-4fdd-b0d4-fee054e19463'::uuid) + Rows Removed by Filter: 109990 + Buffers: shared hit=2128 +Planning Time: 0.029 ms +Execution Time: 2.445 ms + +#### chat_only + +Limit (cost=57.44..57.47 rows=14 width=121) (actual time=0.013..0.014 rows=10.00 loops=1) + Buffers: shared hit=12 + -> Sort (cost=57.44..57.47 rows=14 width=121) (actual time=0.012..0.013 rows=10.00 loops=1) + Sort Key: created_at, id + Sort Method: quicksort Memory: 27kB + Buffers: shared hit=12 + -> Bitmap Heap Scan on messages (cost=4.40..57.17 rows=14 width=121) (actual time=0.006..0.010 rows=10.00 loops=1) + Recheck Cond: (chat_id = '0efbcbe9-fc38-4fdd-b0d4-fee054e19463'::uuid) + Heap Blocks: exact=10 + Buffers: shared hit=12 + -> Bitmap Index Scan on bench_variant (cost=0.00..4.40 rows=14 width=0) (actual time=0.003..0.003 rows=10.00 loops=1) + Index Cond: (chat_id = '0efbcbe9-fc38-4fdd-b0d4-fee054e19463'::uuid) + Index Searches: 1 + Buffers: shared hit=2 +Planning Time: 0.025 ms +Execution Time: 0.019 ms + +#### covering + +Limit (cost=0.42..4.66 rows=14 width=121) (actual time=0.004..0.005 rows=10.00 loops=1) + Buffers: shared hit=4 + -> Index Only Scan using bench_variant on messages (cost=0.42..4.66 rows=14 width=121) (actual time=0.003..0.004 rows=10.00 loops=1) + Index Cond: (chat_id = '0efbcbe9-fc38-4fdd-b0d4-fee054e19463'::uuid) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=4 +Planning Time: 0.021 ms +Execution Time: 0.009 ms diff --git a/evidence/bench/restore/explain-500k.txt b/evidence/bench/restore/explain-500k.txt new file mode 100644 index 00000000..5da23c8b --- /dev/null +++ b/evidence/bench/restore/explain-500k.txt @@ -0,0 +1,520 @@ +# План запроса истории: размер 500k + +Commit 67cb4d7 +Читаемый чат — 500000 сообщений; фоновые чаты: 10 × 5k, 100 × 400, 1000 × 10. +Страница — `limit` профиля; «после» — сколько сообщений чата до +страницы. + +## Планы приложения + +auto_explain (ANALYZE, BUFFERS, TIMING): запрос, параметры и план, +с которыми его выполнило приложение (prepared statement asyncpg). + +### read 500k: first, после 0 + +duration: 0.035 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = '9b702935-3c99-43a2-9afc-2350ca1d0614', $2 = '51' +Limit (cost=0.42..7.64 rows=51 width=121) (actual time=0.015..0.024 rows=51.00 loops=1) + Buffers: shared hit=6 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..70707.85 rows=499660 width=121) (actual time=0.015..0.021 rows=51.00 loops=1) + Index Cond: (chat_id = '9b702935-3c99-43a2-9afc-2350ca1d0614'::uuid) + Index Searches: 1 + Buffers: shared hit=6 + +### read 500k: middle, после 250000 + +duration: 0.050 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = '9b702935-3c99-43a2-9afc-2350ca1d0614', $2 = '2026-10-02 04:37:10.959452+00', $3 = '9ce86e25-cc9e-4e5b-9f1b-2132fd7c5a10', $4 = '51' +Limit (cost=0.42..11.23 rows=51 width=121) (actual time=0.014..0.038 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..52856.91 rows=249375 width=121) (actual time=0.013..0.034 rows=51.00 loops=1) + Index Cond: ((chat_id = '9b702935-3c99-43a2-9afc-2350ca1d0614'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.959452+00'::timestamp with time zone, '9ce86e25-cc9e-4e5b-9f1b-2132fd7c5a10'::uuid))) + Index Searches: 1 + Buffers: shared hit=54 + +### read 500k: last, после 499500 + +duration: 0.045 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = '9b702935-3c99-43a2-9afc-2350ca1d0614', $2 = '2026-10-02 04:42:24.521415+00', $3 = '10a1dab9-c7cc-47c5-ab8a-47d9f76c53fb', $4 = '51' +Limit (cost=0.42..151.87 rows=51 width=121) (actual time=0.012..0.034 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..1188.24 rows=400 width=121) (actual time=0.012..0.031 rows=51.00 loops=1) + Index Cond: ((chat_id = '9b702935-3c99-43a2-9afc-2350ca1d0614'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:42:24.521415+00'::timestamp with time zone, '10a1dab9-c7cc-47c5-ab8a-47d9f76c53fb'::uuid))) + Index Searches: 1 + Buffers: shared hit=54 + +### bg 5k: first, после 0 + +duration: 0.071 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = 'a3bff6e1-722f-4dec-b574-e93133a8f406', $2 = '51' +Limit (cost=0.42..127.21 rows=51 width=121) (actual time=0.009..0.060 rows=51.00 loops=1) + Buffers: shared hit=51 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..12281.36 rows=4940 width=121) (actual time=0.008..0.057 rows=51.00 loops=1) + Index Cond: (chat_id = 'a3bff6e1-722f-4dec-b574-e93133a8f406'::uuid) + Index Searches: 1 + Buffers: shared hit=51 + +### bg 5k: middle, после 2500 + +duration: 0.058 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'a3bff6e1-722f-4dec-b574-e93133a8f406', $2 = '2026-10-02 04:37:10.912231+00', $3 = 'd69181f0-9119-4169-bb77-f952d8d0b8e7', $4 = '51' +Limit (cost=0.42..139.26 rows=51 width=121) (actual time=0.011..0.047 rows=51.00 loops=1) + Buffers: shared hit=51 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..6713.58 rows=2466 width=121) (actual time=0.011..0.044 rows=51.00 loops=1) + Index Cond: ((chat_id = 'a3bff6e1-722f-4dec-b574-e93133a8f406'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.912231+00'::timestamp with time zone, 'd69181f0-9119-4169-bb77-f952d8d0b8e7'::uuid))) + Index Searches: 1 + Buffers: shared hit=51 + +### bg 5k: last, после 4900 + +duration: 0.065 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'a3bff6e1-722f-4dec-b574-e93133a8f406', $2 = '2026-10-02 04:42:12.801083+00', $3 = 'bbbd14be-b675-4e71-9e1e-e95b4e6911d0', $4 = '51' +Limit (cost=0.42..155.44 rows=51 width=121) (actual time=0.009..0.054 rows=51.00 loops=1) + Buffers: shared hit=52 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..304.37 rows=100 width=121) (actual time=0.009..0.052 rows=51.00 loops=1) + Index Cond: ((chat_id = 'a3bff6e1-722f-4dec-b574-e93133a8f406'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:42:12.801083+00'::timestamp with time zone, 'bbbd14be-b675-4e71-9e1e-e95b4e6911d0'::uuid))) + Index Searches: 1 + Buffers: shared hit=52 + +### bg 400: first, после 0 + +duration: 0.066 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd', $2 = '51' +Limit (cost=0.42..96.75 rows=31 width=121) (actual time=0.009..0.056 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..96.75 rows=31 width=121) (actual time=0.009..0.053 rows=51.00 loops=1) + Index Cond: (chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) + Index Searches: 1 + Buffers: shared hit=54 + +### bg 400: middle, после 200 + +duration: 0.067 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd', $2 = '2026-10-02 04:37:10.147031+00', $3 = 'ba892acc-1849-4f46-85ca-b1d38eeead45', $4 = '51' +Limit (cost=0.42..49.69 rows=15 width=121) (actual time=0.008..0.058 rows=51.00 loops=1) + Buffers: shared hit=55 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..49.69 rows=15 width=121) (actual time=0.008..0.055 rows=51.00 loops=1) + Index Cond: ((chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.147031+00'::timestamp with time zone, 'ba892acc-1849-4f46-85ca-b1d38eeead45'::uuid))) + Index Searches: 1 + Buffers: shared hit=55 + +### bg 400: last, после 300 + +duration: 0.079 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID AND (messages.created_at, messages.id) > ($2::TIMESTAMP WITH TIME ZONE, $3::UUID) ORDER BY messages.created_at, messages.id + LIMIT $4::INTEGER +Query Parameters: $1 = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd', $2 = '2026-10-02 04:39:46.657452+00', $3 = 'a2abe6e2-7dec-4c64-ad68-c403deac0bec', $4 = '51' +Limit (cost=0.42..29.07 rows=8 width=121) (actual time=0.010..0.067 rows=51.00 loops=1) + Buffers: shared hit=55 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..29.07 rows=8 width=121) (actual time=0.010..0.065 rows=51.00 loops=1) + Index Cond: ((chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:39:46.657452+00'::timestamp with time zone, 'a2abe6e2-7dec-4c64-ad68-c403deac0bec'::uuid))) + Index Searches: 1 + Buffers: shared hit=55 + +### bg 10: first, после 0 + +duration: 0.023 ms plan: +Query Text: SELECT messages.id, messages.chat_id, messages.sender_id, messages.text, messages.created_at +FROM messages +WHERE messages.chat_id = $1::UUID ORDER BY messages.created_at, messages.id + LIMIT $2::INTEGER +Query Parameters: $1 = '2a2c17bc-34c9-4624-ace4-ca499a0d93d1', $2 = '51' +Limit (cost=0.42..96.75 rows=31 width=121) (actual time=0.010..0.020 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..96.75 rows=31 width=121) (actual time=0.010..0.019 rows=10.00 loops=1) + Index Cond: (chat_id = '2a2c17bc-34c9-4624-ace4-ca499a0d93d1'::uuid) + Index Searches: 1 + Buffers: shared hit=13 + +## Страницы сравнения в psql: варианты + +Тот же текст запроса и те же параметры, что у плана приложения этой +страницы, в одной транзакции, которая откатывается: индексы базы +после неё те же. Каждый вариант выполнен дважды, здесь — второе +выполнение. `psql` — индекс приложения, custom plan; `generic` — он +же с force_generic_plan; `or-cursor` — условие курсора через OR; +`no-index` — без индекса приложения; варианты индекса вместо него: +`chat_only` (chat_id), `covering` (chat_id, created_at, id) INCLUDE (sender_id, text). + +### read 500k: middle, после 250000 + +#### psql + +Limit (cost=0.42..11.23 rows=51 width=121) (actual time=0.004..0.018 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..52856.91 rows=249375 width=121) (actual time=0.004..0.015 rows=51.00 loops=1) + Index Cond: ((chat_id = '9b702935-3c99-43a2-9afc-2350ca1d0614'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.959452+00'::timestamp with time zone, '9ce86e25-cc9e-4e5b-9f1b-2132fd7c5a10'::uuid))) + Index Searches: 1 + Buffers: shared hit=54 +Planning Time: 0.035 ms +Execution Time: 0.023 ms + +#### generic + +Limit (cost=0.42..115.86 rows=39 width=121) (actual time=0.005..0.020 rows=51.00 loops=1) + Buffers: shared hit=54 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..1157.72 rows=391 width=121) (actual time=0.004..0.017 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=54 +Planning Time: 0.005 ms +Execution Time: 0.027 ms + +#### or-cursor + +Limit (cost=0.42..15.65 rows=51 width=121) (actual time=36.107..36.117 rows=51.00 loops=1) + Buffers: shared hit=252418 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..74455.30 rows=249375 width=121) (actual time=36.106..36.114 rows=51.00 loops=1) + Index Cond: (chat_id = '9b702935-3c99-43a2-9afc-2350ca1d0614'::uuid) + Filter: ((created_at > '2026-10-02 04:37:10.959452+00'::timestamp with time zone) OR ((created_at = '2026-10-02 04:37:10.959452+00'::timestamp with time zone) AND (id > '9ce86e25-cc9e-4e5b-9f1b-2132fd7c5a10'::uuid))) + Rows Removed by Filter: 250000 + Index Searches: 1 + Buffers: shared hit=252418 +Planning Time: 0.089 ms +Execution Time: 36.126 ms + +#### no-index + +Limit (cost=20400.55..20406.49 rows=51 width=121) (actual time=14.688..16.845 rows=51.00 loops=1) + Buffers: shared hit=11589 + -> Gather Merge (cost=20400.55..49444.26 rows=249374 width=121) (actual time=14.687..16.840 rows=51.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=11589 + -> Sort (cost=19400.53..19660.29 rows=103906 width=121) (actual time=13.732..13.734 rows=40.33 loops=3) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 51kB + Buffers: shared hit=11589 + Worker 0: Sort Method: top-N heapsort Memory: 46kB + Worker 1: Sort Method: top-N heapsort Memory: 45kB + -> Parallel Seq Scan on messages (cost=0.00..15934.00 rows=103906 width=121) (actual time=3.379..9.705 rows=83333.33 loops=3) + Filter: ((chat_id = '9b702935-3c99-43a2-9afc-2350ca1d0614'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.959452+00'::timestamp with time zone, '9ce86e25-cc9e-4e5b-9f1b-2132fd7c5a10'::uuid))) + Rows Removed by Filter: 116667 + Buffers: shared hit=11559 +Planning Time: 0.054 ms +Execution Time: 16.862 ms + +#### chat_only + +Limit (cost=20400.55..20406.49 rows=51 width=121) (actual time=14.511..16.220 rows=51.00 loops=1) + Buffers: shared hit=11589 + -> Gather Merge (cost=20400.55..49444.26 rows=249374 width=121) (actual time=14.511..16.216 rows=51.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=11589 + -> Sort (cost=19400.53..19660.29 rows=103906 width=121) (actual time=13.568..13.570 rows=40.33 loops=3) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 51kB + Buffers: shared hit=11589 + Worker 0: Sort Method: top-N heapsort Memory: 46kB + Worker 1: Sort Method: top-N heapsort Memory: 45kB + -> Parallel Seq Scan on messages (cost=0.00..15934.00 rows=103906 width=121) (actual time=3.283..9.515 rows=83333.33 loops=3) + Filter: ((chat_id = '9b702935-3c99-43a2-9afc-2350ca1d0614'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.959452+00'::timestamp with time zone, '9ce86e25-cc9e-4e5b-9f1b-2132fd7c5a10'::uuid))) + Rows Removed by Filter: 116667 + Buffers: shared hit=11559 +Planning Time: 0.069 ms +Execution Time: 16.230 ms + +#### covering + +Limit (cost=0.42..5.39 rows=51 width=121) (actual time=0.006..0.013 rows=51.00 loops=1) + Buffers: shared hit=5 + -> Index Only Scan using bench_variant on messages (cost=0.42..24299.92 rows=249375 width=121) (actual time=0.005..0.010 rows=51.00 loops=1) + Index Cond: ((chat_id = '9b702935-3c99-43a2-9afc-2350ca1d0614'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.959452+00'::timestamp with time zone, '9ce86e25-cc9e-4e5b-9f1b-2132fd7c5a10'::uuid))) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=5 +Planning Time: 0.048 ms +Execution Time: 0.021 ms + +### bg 5k: middle, после 2500 + +#### psql + +Limit (cost=0.42..139.26 rows=51 width=121) (actual time=0.006..0.020 rows=51.00 loops=1) + Buffers: shared hit=51 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..6713.58 rows=2466 width=121) (actual time=0.006..0.017 rows=51.00 loops=1) + Index Cond: ((chat_id = 'a3bff6e1-722f-4dec-b574-e93133a8f406'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.912231+00'::timestamp with time zone, 'd69181f0-9119-4169-bb77-f952d8d0b8e7'::uuid))) + Index Searches: 1 + Buffers: shared hit=51 +Planning Time: 0.040 ms +Execution Time: 0.027 ms + +#### generic + +Limit (cost=0.42..115.86 rows=39 width=121) (actual time=0.008..0.023 rows=51.00 loops=1) + Buffers: shared hit=51 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..1157.72 rows=391 width=121) (actual time=0.007..0.019 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=51 +Planning Time: 0.008 ms +Execution Time: 0.030 ms + +#### or-cursor + +Limit (cost=0.42..255.18 rows=51 width=121) (actual time=0.487..0.500 rows=51.00 loops=1) + Buffers: shared hit=2448 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..12318.41 rows=2466 width=121) (actual time=0.487..0.497 rows=51.00 loops=1) + Index Cond: (chat_id = 'a3bff6e1-722f-4dec-b574-e93133a8f406'::uuid) + Filter: ((created_at > '2026-10-02 04:37:10.912231+00'::timestamp with time zone) OR ((created_at = '2026-10-02 04:37:10.912231+00'::timestamp with time zone) AND (id > 'd69181f0-9119-4169-bb77-f952d8d0b8e7'::uuid))) + Rows Removed by Filter: 2500 + Index Searches: 1 + Buffers: shared hit=2448 +Planning Time: 0.044 ms +Execution Time: 0.506 ms + +#### no-index + +Limit (cost=16985.45..16991.39 rows=51 width=121) (actual time=8.282..10.272 rows=51.00 loops=1) + Buffers: shared hit=11589 + -> Gather Merge (cost=16985.45..17272.66 rows=2466 width=121) (actual time=8.281..10.267 rows=51.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=11589 + -> Sort (cost=15985.43..15988.00 rows=1028 width=121) (actual time=7.307..7.309 rows=40.33 loops=3) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 38kB + Buffers: shared hit=11589 + Worker 0: Sort Method: top-N heapsort Memory: 38kB + Worker 1: Sort Method: top-N heapsort Memory: 38kB + -> Parallel Seq Scan on messages (cost=0.00..15934.00 rows=1028 width=121) (actual time=3.122..7.242 rows=833.33 loops=3) + Filter: ((chat_id = 'a3bff6e1-722f-4dec-b574-e93133a8f406'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.912231+00'::timestamp with time zone, 'd69181f0-9119-4169-bb77-f952d8d0b8e7'::uuid))) + Rows Removed by Filter: 199167 + Buffers: shared hit=11559 +Planning Time: 0.065 ms +Execution Time: 10.282 ms + +#### chat_only + +Limit (cost=8772.49..8772.62 rows=51 width=121) (actual time=1.335..1.338 rows=51.00 loops=1) + Buffers: shared hit=4168 + -> Sort (cost=8772.49..8778.65 rows=2466 width=121) (actual time=1.334..1.336 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 39kB + Buffers: shared hit=4168 + -> Index Scan using bench_variant on messages (cost=0.42..8690.22 rows=2466 width=121) (actual time=0.561..1.199 rows=2500.00 loops=1) + Index Cond: (chat_id = 'a3bff6e1-722f-4dec-b574-e93133a8f406'::uuid) + Filter: (ROW(created_at, id) > ROW('2026-10-02 04:37:10.912231+00'::timestamp with time zone, 'd69181f0-9119-4169-bb77-f952d8d0b8e7'::uuid)) + Rows Removed by Filter: 2500 + Index Searches: 1 + Buffers: shared hit=4168 +Planning Time: 0.047 ms +Execution Time: 1.345 ms + +#### covering + +Limit (cost=0.42..5.42 rows=51 width=121) (actual time=0.007..0.013 rows=51.00 loops=1) + Buffers: shared hit=5 + -> Index Only Scan using bench_variant on messages (cost=0.42..241.75 rows=2466 width=121) (actual time=0.006..0.010 rows=51.00 loops=1) + Index Cond: ((chat_id = 'a3bff6e1-722f-4dec-b574-e93133a8f406'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.912231+00'::timestamp with time zone, 'd69181f0-9119-4169-bb77-f952d8d0b8e7'::uuid))) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=5 +Planning Time: 0.045 ms +Execution Time: 0.021 ms + +### bg 400: middle, после 200 + +#### psql + +Limit (cost=0.42..49.69 rows=15 width=121) (actual time=0.005..0.026 rows=51.00 loops=1) + Buffers: shared hit=55 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..49.69 rows=15 width=121) (actual time=0.005..0.022 rows=51.00 loops=1) + Index Cond: ((chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.147031+00'::timestamp with time zone, 'ba892acc-1849-4f46-85ca-b1d38eeead45'::uuid))) + Index Searches: 1 + Buffers: shared hit=55 +Planning Time: 0.037 ms +Execution Time: 0.032 ms + +#### generic + +Limit (cost=0.42..115.86 rows=39 width=121) (actual time=0.005..0.024 rows=51.00 loops=1) + Buffers: shared hit=55 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..1157.72 rows=391 width=121) (actual time=0.004..0.021 rows=51.00 loops=1) + Index Cond: ((chat_id = $1) AND (ROW(created_at, id) > ROW($2, $3))) + Index Searches: 1 + Buffers: shared hit=55 +Planning Time: 0.005 ms +Execution Time: 0.030 ms + +#### or-cursor + +Limit (cost=67.99..68.03 rows=15 width=121) (actual time=0.105..0.109 rows=51.00 loops=1) + Buffers: shared hit=208 + -> Sort (cost=67.99..68.03 rows=15 width=121) (actual time=0.105..0.107 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 38kB + Buffers: shared hit=208 + -> Bitmap Heap Scan on messages (cost=9.02..67.70 rows=15 width=121) (actual time=0.028..0.088 rows=200.00 loops=1) + Recheck Cond: (((chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) AND (created_at > '2026-10-02 04:37:10.147031+00'::timestamp with time zone)) OR ((chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) AND (created_at = '2026-10-02 04:37:10.147031+00'::timestamp with time zone) AND (id > 'ba892acc-1849-4f46-85ca-b1d38eeead45'::uuid))) + Heap Blocks: exact=200 + Buffers: shared hit=208 + -> BitmapOr (cost=9.02..9.02 rows=15 width=0) (actual time=0.014..0.014 rows=0.00 loops=1) + Buffers: shared hit=8 + -> Bitmap Index Scan on ix_messages_chat_id_created_at_id (cost=0.00..4.58 rows=15 width=0) (actual time=0.013..0.013 rows=200.00 loops=1) + Index Cond: ((chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) AND (created_at > '2026-10-02 04:37:10.147031+00'::timestamp with time zone)) + Index Searches: 1 + Buffers: shared hit=5 + -> Bitmap Index Scan on ix_messages_chat_id_created_at_id (cost=0.00..4.44 rows=1 width=0) (actual time=0.001..0.001 rows=0.00 loops=1) + Index Cond: ((chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) AND (created_at = '2026-10-02 04:37:10.147031+00'::timestamp with time zone) AND (id > 'ba892acc-1849-4f46-85ca-b1d38eeead45'::uuid)) + Index Searches: 1 + Buffers: shared hit=3 +Planning Time: 0.044 ms +Execution Time: 0.118 ms + +#### no-index + +Limit (cost=16934.10..16935.73 rows=14 width=121) (actual time=8.152..9.433 rows=51.00 loops=1) + Buffers: shared hit=11589 + -> Gather Merge (cost=16934.10..16935.73 rows=14 width=121) (actual time=8.152..9.431 rows=51.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=11589 + -> Sort (cost=15934.08..15934.09 rows=6 width=121) (actual time=7.162..7.163 rows=39.33 loops=3) + Sort Key: created_at, id + Sort Method: quicksort Memory: 41kB + Buffers: shared hit=11589 + Worker 0: Sort Method: quicksort Memory: 42kB + Worker 1: Sort Method: quicksort Memory: 43kB + -> Parallel Seq Scan on messages (cost=0.00..15934.00 rows=6 width=121) (actual time=3.554..7.141 rows=66.67 loops=3) + Filter: ((chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.147031+00'::timestamp with time zone, 'ba892acc-1849-4f46-85ca-b1d38eeead45'::uuid))) + Rows Removed by Filter: 199933 + Buffers: shared hit=11559 +Planning Time: 0.058 ms +Execution Time: 9.445 ms + +#### chat_only + +Limit (cost=72.14..72.18 rows=15 width=121) (actual time=0.124..0.127 rows=51.00 loops=1) + Buffers: shared hit=403 + -> Sort (cost=72.14..72.18 rows=15 width=121) (actual time=0.124..0.125 rows=51.00 loops=1) + Sort Key: created_at, id + Sort Method: top-N heapsort Memory: 38kB + Buffers: shared hit=403 + -> Index Scan using bench_variant on messages (cost=0.42..71.84 rows=15 width=121) (actual time=0.054..0.107 rows=200.00 loops=1) + Index Cond: (chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) + Filter: (ROW(created_at, id) > ROW('2026-10-02 04:37:10.147031+00'::timestamp with time zone, 'ba892acc-1849-4f46-85ca-b1d38eeead45'::uuid)) + Rows Removed by Filter: 200 + Index Searches: 1 + Buffers: shared hit=403 +Planning Time: 0.045 ms +Execution Time: 0.134 ms + +#### covering + +Limit (cost=0.42..4.73 rows=15 width=121) (actual time=0.004..0.011 rows=51.00 loops=1) + Buffers: shared hit=5 + -> Index Only Scan using bench_variant on messages (cost=0.42..4.73 rows=15 width=121) (actual time=0.004..0.008 rows=51.00 loops=1) + Index Cond: ((chat_id = 'e36b0a2c-5c95-44b1-9fac-08d2302a80cd'::uuid) AND (ROW(created_at, id) > ROW('2026-10-02 04:37:10.147031+00'::timestamp with time zone, 'ba892acc-1849-4f46-85ca-b1d38eeead45'::uuid))) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=5 +Planning Time: 0.036 ms +Execution Time: 0.018 ms + +### bg 10: first, после 0 + +#### psql + +Limit (cost=0.42..96.75 rows=31 width=121) (actual time=0.004..0.008 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..96.75 rows=31 width=121) (actual time=0.004..0.007 rows=10.00 loops=1) + Index Cond: (chat_id = '2a2c17bc-34c9-4624-ace4-ca499a0d93d1'::uuid) + Index Searches: 1 + Buffers: shared hit=13 +Planning Time: 0.039 ms +Execution Time: 0.012 ms + +#### generic + +Limit (cost=0.42..335.15 rows=117 width=121) (actual time=0.005..0.009 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Index Scan using ix_messages_chat_id_created_at_id on messages (cost=0.42..3353.38 rows=1172 width=121) (actual time=0.005..0.007 rows=10.00 loops=1) + Index Cond: (chat_id = $1) + Index Searches: 1 + Buffers: shared hit=13 +Planning Time: 0.005 ms +Execution Time: 0.015 ms + +#### no-index + +Limit (cost=15684.26..15687.87 rows=31 width=121) (actual time=7.798..9.758 rows=10.00 loops=1) + Buffers: shared hit=11649 + -> Gather Merge (cost=15684.26..15687.87 rows=31 width=121) (actual time=7.798..9.757 rows=10.00 loops=1) + Workers Planned: 2 + Workers Launched: 2 + Buffers: shared hit=11649 + -> Sort (cost=14684.24..14684.27 rows=13 width=121) (actual time=6.819..6.819 rows=3.33 loops=3) + Sort Key: created_at, id + Sort Method: quicksort Memory: 27kB + Buffers: shared hit=11649 + Worker 0: Sort Method: quicksort Memory: 25kB + Worker 1: Sort Method: quicksort Memory: 25kB + -> Parallel Seq Scan on messages (cost=0.00..14684.00 rows=13 width=121) (actual time=3.495..6.791 rows=3.33 loops=3) + Filter: (chat_id = '2a2c17bc-34c9-4624-ace4-ca499a0d93d1'::uuid) + Rows Removed by Filter: 199997 + Buffers: shared hit=11559 +Planning Time: 0.054 ms +Execution Time: 9.766 ms + +#### chat_only + +Limit (cost=72.46..72.53 rows=31 width=121) (actual time=0.008..0.009 rows=10.00 loops=1) + Buffers: shared hit=13 + -> Sort (cost=72.46..72.53 rows=31 width=121) (actual time=0.008..0.009 rows=10.00 loops=1) + Sort Key: created_at, id + Sort Method: quicksort Memory: 27kB + Buffers: shared hit=13 + -> Index Scan using bench_variant on messages (cost=0.42..71.69 rows=31 width=121) (actual time=0.003..0.007 rows=10.00 loops=1) + Index Cond: (chat_id = '2a2c17bc-34c9-4624-ace4-ca499a0d93d1'::uuid) + Index Searches: 1 + Buffers: shared hit=13 +Planning Time: 0.023 ms +Execution Time: 0.013 ms + +#### covering + +Limit (cost=0.42..4.97 rows=31 width=121) (actual time=0.003..0.004 rows=10.00 loops=1) + Buffers: shared hit=4 + -> Index Only Scan using bench_variant on messages (cost=0.42..4.97 rows=31 width=121) (actual time=0.003..0.004 rows=10.00 loops=1) + Index Cond: (chat_id = '2a2c17bc-34c9-4624-ace4-ca499a0d93d1'::uuid) + Heap Fetches: 0 + Index Searches: 1 + Buffers: shared hit=4 +Planning Time: 0.023 ms +Execution Time: 0.008 ms diff --git a/evidence/bench/restore/meta.json b/evidence/bench/restore/meta.json new file mode 100644 index 00000000..d8d8c546 --- /dev/null +++ b/evidence/bench/restore/meta.json @@ -0,0 +1,1938 @@ +{ + "label": "restore", + "status": "complete", + "started_at": "2026-10-02T04:25:27+00:00", + "command": "uv run python bench/run.py --profile restore --label restore", + "git": { + "commit": "67cb4d7", + "dirty": false + }, + "overrides": {}, + "host_state": { + "start": { + "swap_used_mib": 0.0, + "swap_total_mib": 0.0, + "memory_free_percent": 79, + "power": "AC Power", + "battery_percent": 80 + }, + "end": { + "swap_used_mib": 0.0, + "swap_total_mib": 0.0, + "memory_free_percent": 75, + "power": "AC Power", + "battery_percent": 80 + }, + "slept_seconds": 0 + }, + "host_warnings": [], + "other_containers": [], + "app_image": { + "tag": "mtusi-messenger:bench", + "id": "sha256:879d4454baab524b6311b940e9bc16042f1dfc9d2b0c5f489a41a03be4677c63", + "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": "restore", + "sizes": [ + 10000, + 100000, + 500000 + ], + "concurrency": [], + "repeats": 0, + "read_warmup_s": 0, + "read_measure_s": 0, + "write_warmup": 0, + "write_measure": 0, + "prefill_chunk": 25000, + "prefill_vus": 32, + "text_length": 64, + "page_limit": 50, + "walk_limit": 100, + "cursor_pool": 1000, + "members": 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, + "restore": true, + "restore_jobs": 4, + "restore_write_load": 5000, + "restore_write_vus": 10 + }, + "sizes": [ + { + "size": 10000, + "messages_total": 110000, + "rss_before_mib": 87.6, + "rss_after_mib": 93.0, + "bytes_per_message": 51, + "prefill_seconds": 110.9, + "prefill_rate": 992, + "cursors": 99, + "maintenance_seconds": 0.2, + "messages_rows": 110000, + "messages_table_bytes": 17473536, + "messages_indexes_bytes": 15597568, + "db_bytes_per_message": 301, + "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.063, + "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": 55, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.065, + "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": 55, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.024, + "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": 55, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.022, + "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": 4973, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.715, + "kind": "custom" + }, + { + "chat": "read 10k", + "chat_size": 10000, + "page": "middle", + "after": 5000, + "source": "no-index", + "node": "Seq Scan on messages", + "shared_hit": 2128, + "shared_read": 0, + "rows": 51.0, + "time_ms": 3.31, + "kind": "custom" + }, + { + "chat": "read 10k", + "chat_size": 10000, + "page": "middle", + "after": 5000, + "source": "chat_only", + "node": "Bitmap Heap Scan on messages", + "shared_hit": 2031, + "shared_read": 0, + "rows": 51.0, + "time_ms": 1.438, + "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.013, + "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.055, + "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": 46, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.049, + "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": 50, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.051, + "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": 50, + "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": 50, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.025, + "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": 2431, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.36, + "kind": "custom" + }, + { + "chat": "bg 5k", + "chat_size": 5000, + "page": "middle", + "after": 2500, + "source": "no-index", + "node": "Seq Scan on messages", + "shared_hit": 2128, + "shared_read": 0, + "rows": 51.0, + "time_ms": 2.936, + "kind": "custom" + }, + { + "chat": "bg 5k", + "chat_size": 5000, + "page": "middle", + "after": 2500, + "source": "chat_only", + "node": "Bitmap Heap Scan on messages", + "shared_hit": 1867, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.903, + "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": 53, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.052, + "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": 53, + "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": 49, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.076, + "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": 49, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.028, + "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": 49, + "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": "Index Scan using ix_messages_chat_id_created_at_id on messages", + "shared_hit": 238, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.066, + "kind": "custom" + }, + { + "chat": "bg 400", + "chat_size": 400, + "page": "middle", + "after": 200, + "source": "no-index", + "node": "Seq Scan on messages", + "shared_hit": 2128, + "shared_read": 0, + "rows": 51.0, + "time_ms": 2.595, + "kind": "custom" + }, + { + "chat": "bg 400", + "chat_size": 400, + "page": "middle", + "after": 200, + "source": "chat_only", + "node": "Bitmap Heap Scan on messages", + "shared_hit": 365, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.158, + "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": 54, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.069, + "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.031, + "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.02, + "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.007, + "kind": "generic" + }, + { + "chat": "bg 10", + "chat_size": 10, + "page": "first", + "after": 0, + "source": "no-index", + "node": "Seq Scan on messages", + "shared_hit": 2128, + "shared_read": 0, + "rows": 10.0, + "time_ms": 2.445, + "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.019, + "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.009, + "kind": "custom" + } + ], + "rss_peak_mib": 151.1, + "write_cost": [ + { + "variant": "app", + "columns": "(chat_id, created_at, id)", + "rows": 20000, + "messages": 110000, + "index_bytes": 6496256, + "index_bytes_per_message": 59.1, + "insert_us_per_message": [ + 5.67, + 5.56, + 5.76 + ], + "wal_bytes_per_message": [ + 666.4, + 661.2, + 660.3 + ], + "fpi_per_1000": [ + 42.5, + 44.3, + 44.4 + ], + "long_text": "ok" + }, + { + "variant": "chat_only", + "columns": "(chat_id)", + "rows": 20000, + "messages": 110000, + "index_bytes": 835584, + "index_bytes_per_message": 7.6, + "insert_us_per_message": [ + 5.18, + 5.28, + 5.16 + ], + "wal_bytes_per_message": [ + 526.4, + 526.4, + 526.5 + ], + "fpi_per_1000": [ + 34.8, + 35.0, + 35.2 + ], + "long_text": "ok" + }, + { + "variant": "covering", + "columns": "(chat_id, created_at, id) INCLUDE (sender_id, text)", + "rows": 20000, + "messages": 110000, + "index_bytes": 17465344, + "index_bytes_per_message": 158.8, + "insert_us_per_message": [ + 6.12, + 5.91, + 6.82 + ], + "wal_bytes_per_message": [ + 912.7, + 912.5, + 912.1 + ], + "fpi_per_1000": [ + 50.9, + 51.0, + 51.1 + ], + "long_text": "index row requires 12072 bytes, maximum size is 8191" + }, + { + "variant": "none", + "columns": null, + "rows": 20000, + "messages": 110000, + "index_bytes": 0, + "index_bytes_per_message": 0.0, + "insert_us_per_message": [ + 4.68, + 4.61, + 4.53 + ], + "wal_bytes_per_message": [ + 417.2, + 417.7, + 417.7 + ], + "fpi_per_1000": [ + 31.2, + 31.4, + 31.6 + ], + "long_text": "ok" + } + ], + "restore": { + "messages_before_backup": 110000, + "messages_at_dump_end": 110423, + "messages_source_end": 115001, + "messages_restored": 110132, + "messages_lost": 4869, + "lost_after_backup_chat": 1, + "load_written": 5000, + "load_failed": 0, + "load_in_backup": 132, + "tables_restored": { + "users": 11, + "chats": 1112, + "chat_members": 12232, + "sessions": 11, + "messages": 110132 + }, + "backup_bytes": 4690089, + "backup_bytes_per_message": 42.6, + "dump_seconds": 0.32, + "storage_seconds": 0.85, + "copy_seconds": 0.06, + "restore_seconds": 0.3, + "analyze_seconds": 0.14, + "verify_seconds": 0.51, + "api_ready_seconds": 1.55, + "rto_seconds": 2.9, + "pages_checked": 10, + "stale_chat_get": 200, + "stale_chat_post": 500, + "flushed_chat_get": 404, + "late_session": 401 + } + }, + { + "size": 100000, + "messages_total": 200000, + "rss_before_mib": 87.6, + "rss_after_mib": 93.9, + "bytes_per_message": 33, + "prefill_seconds": 201.0, + "prefill_rate": 995, + "cursors": 999, + "maintenance_seconds": 0.2, + "messages_rows": 200000, + "messages_table_bytes": 31596544, + "messages_indexes_bytes": 28827648, + "db_bytes_per_message": 302, + "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": 24, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.043, + "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": 50, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.059, + "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": 50, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.032, + "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": 50, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.03, + "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": 50488, + "shared_read": 0, + "rows": 51.0, + "time_ms": 7.379, + "kind": "custom" + }, + { + "chat": "read 100k", + "chat_size": 100000, + "page": "middle", + "after": 50000, + "source": "no-index", + "node": "Parallel Seq Scan on messages", + "shared_hit": 3882, + "shared_read": 0, + "rows": 51.0, + "time_ms": 6.795, + "kind": "custom" + }, + { + "chat": "read 100k", + "chat_size": 100000, + "page": "middle", + "after": 50000, + "source": "chat_only", + "node": "Parallel Seq Scan on messages", + "shared_hit": 3882, + "shared_read": 0, + "rows": 51.0, + "time_ms": 5.659, + "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.019, + "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.047, + "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": 52, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.052, + "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.055, + "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.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": 52, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.026, + "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": 2430, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.416, + "kind": "custom" + }, + { + "chat": "bg 5k", + "chat_size": 5000, + "page": "middle", + "after": 2500, + "source": "no-index", + "node": "Parallel Seq Scan on messages", + "shared_hit": 3882, + "shared_read": 0, + "rows": 51.0, + "time_ms": 5.168, + "kind": "custom" + }, + { + "chat": "bg 5k", + "chat_size": 5000, + "page": "middle", + "after": 2500, + "source": "chat_only", + "node": "Bitmap Heap Scan on messages", + "shared_hit": 2825, + "shared_read": 0, + "rows": 51.0, + "time_ms": 1.289, + "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.019, + "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.061, + "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": 53, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.077, + "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": 54, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.07, + "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": 54, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.027, + "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": 54, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.027, + "kind": "generic" + }, + { + "chat": "bg 400", + "chat_size": 400, + "page": "middle", + "after": 200, + "source": "or-cursor", + "node": "Bitmap Heap Scan on messages", + "shared_hit": 201, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.124, + "kind": "custom" + }, + { + "chat": "bg 400", + "chat_size": 400, + "page": "middle", + "after": 200, + "source": "no-index", + "node": "Parallel Seq Scan on messages", + "shared_hit": 3882, + "shared_read": 0, + "rows": 51.0, + "time_ms": 4.377, + "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": 390, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.132, + "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.035, + "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": 53, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.068, + "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.022, + "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.016, + "kind": "generic" + }, + { + "chat": "bg 10", + "chat_size": 10, + "page": "first", + "after": 0, + "source": "no-index", + "node": "Parallel Seq Scan on messages", + "shared_hit": 3852, + "shared_read": 0, + "rows": 10.0, + "time_ms": 4.21, + "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": 4, + "shared_read": 0, + "rows": 10.0, + "time_ms": 0.009, + "kind": "custom" + } + ], + "rss_peak_mib": 151.1, + "write_cost": [ + { + "variant": "app", + "columns": "(chat_id, created_at, id)", + "rows": 20000, + "messages": 200000, + "index_bytes": 11796480, + "index_bytes_per_message": 59.0, + "insert_us_per_message": [ + 5.8, + 5.87, + 5.77 + ], + "wal_bytes_per_message": [ + 810.3, + 791.0, + 790.6 + ], + "fpi_per_1000": [ + 64.3, + 70.7, + 70.8 + ], + "long_text": "ok" + }, + { + "variant": "chat_only", + "columns": "(chat_id)", + "rows": 20000, + "messages": 200000, + "index_bytes": 1482752, + "index_bytes_per_message": 7.4, + "insert_us_per_message": [ + 5.3, + 5.22, + 5.3 + ], + "wal_bytes_per_message": [ + 645.9, + 645.2, + 643.9 + ], + "fpi_per_1000": [ + 60.4, + 61.0, + 61.4 + ], + "long_text": "ok" + }, + { + "variant": "covering", + "columns": "(chat_id, created_at, id) INCLUDE (sender_id, text)", + "rows": 20000, + "messages": 200000, + "index_bytes": 31735808, + "index_bytes_per_message": 158.7, + "insert_us_per_message": [ + 5.95, + 6.23, + 5.96 + ], + "wal_bytes_per_message": [ + 1005.2, + 1004.7, + 1004.6 + ], + "fpi_per_1000": [ + 75.3, + 75.7, + 76.0 + ], + "long_text": "index row requires 12072 bytes, maximum size is 8191" + }, + { + "variant": "none", + "columns": null, + "rows": 20000, + "messages": 200000, + "index_bytes": 0, + "index_bytes_per_message": 0.0, + "insert_us_per_message": [ + 4.93, + 4.79, + 4.72 + ], + "wal_bytes_per_message": [ + 545.2, + 545.9, + 545.2 + ], + "fpi_per_1000": [ + 57.8, + 58.1, + 58.3 + ], + "long_text": "ok" + } + ], + "restore": { + "messages_before_backup": 200000, + "messages_at_dump_end": 200655, + "messages_source_end": 205001, + "messages_restored": 200144, + "messages_lost": 4857, + "lost_after_backup_chat": 1, + "load_written": 5000, + "load_failed": 0, + "load_in_backup": 144, + "tables_restored": { + "users": 11, + "chats": 1112, + "chat_members": 12232, + "sessions": 11, + "messages": 200144 + }, + "backup_bytes": 7914482, + "backup_bytes_per_message": 39.5, + "dump_seconds": 0.5, + "storage_seconds": 0.89, + "copy_seconds": 0.07, + "restore_seconds": 0.5, + "analyze_seconds": 0.15, + "verify_seconds": 0.72, + "api_ready_seconds": 2.27, + "rto_seconds": 3.88, + "pages_checked": 10, + "stale_chat_get": 200, + "stale_chat_post": 500, + "flushed_chat_get": 404, + "late_session": 401 + } + }, + { + "size": 500000, + "messages_total": 600000, + "rss_before_mib": 87.7, + "rss_after_mib": 93.5, + "bytes_per_message": 10, + "prefill_seconds": 613.1, + "prefill_rate": 979, + "cursors": 1000, + "maintenance_seconds": 0.2, + "messages_rows": 600000, + "messages_table_bytes": 94748672, + "messages_indexes_bytes": 87425024, + "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": 6, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.035, + "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": 54, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.05, + "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": 54, + "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": 54, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.027, + "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": 252418, + "shared_read": 0, + "rows": 51.0, + "time_ms": 36.126, + "kind": "custom" + }, + { + "chat": "read 500k", + "chat_size": 500000, + "page": "middle", + "after": 250000, + "source": "no-index", + "node": "Parallel Seq Scan on messages", + "shared_hit": 11589, + "shared_read": 0, + "rows": 51.0, + "time_ms": 16.862, + "kind": "custom" + }, + { + "chat": "read 500k", + "chat_size": 500000, + "page": "middle", + "after": 250000, + "source": "chat_only", + "node": "Parallel Seq Scan on messages", + "shared_hit": 11589, + "shared_read": 0, + "rows": 51.0, + "time_ms": 16.23, + "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.021, + "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.045, + "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": 51, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.071, + "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.058, + "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": 51, + "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": 51, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.03, + "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": 2448, + "shared_read": 0, + "rows": 51.0, + "time_ms": 0.506, + "kind": "custom" + }, + { + "chat": "bg 5k", + "chat_size": 5000, + "page": "middle", + "after": 2500, + "source": "no-index", + "node": "Parallel Seq Scan on messages", + "shared_hit": 11589, + "shared_read": 0, + "rows": 51.0, + "time_ms": 10.282, + "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": 4168, + "shared_read": 0, + "rows": 51.0, + "time_ms": 1.345, + "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.021, + "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.065, + "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.066, + "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.067, + "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.032, + "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.118, + "kind": "custom" + }, + { + "chat": "bg 400", + "chat_size": 400, + "page": "middle", + "after": 200, + "source": "no-index", + "node": "Parallel Seq Scan on messages", + "shared_hit": 11589, + "shared_read": 0, + "rows": 51.0, + "time_ms": 9.445, + "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.134, + "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.018, + "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.079, + "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.023, + "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.012, + "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.015, + "kind": "generic" + }, + { + "chat": "bg 10", + "chat_size": 10, + "page": "first", + "after": 0, + "source": "no-index", + "node": "Parallel Seq Scan on messages", + "shared_hit": 11649, + "shared_read": 0, + "rows": 10.0, + "time_ms": 9.766, + "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": 4, + "shared_read": 0, + "rows": 10.0, + "time_ms": 0.008, + "kind": "custom" + } + ], + "rss_peak_mib": 151.1, + "write_cost": [ + { + "variant": "app", + "columns": "(chat_id, created_at, id)", + "rows": 20000, + "messages": 600000, + "index_bytes": 35348480, + "index_bytes_per_message": 58.9, + "insert_us_per_message": [ + 6.73, + 6.35, + 6.25 + ], + "wal_bytes_per_message": [ + 1326.9, + 1306.0, + 1304.7 + ], + "fpi_per_1000": [ + 158.2, + 166.4, + 166.4 + ], + "long_text": "ok" + }, + { + "variant": "chat_only", + "columns": "(chat_id)", + "rows": 20000, + "messages": 600000, + "index_bytes": 4300800, + "index_bytes_per_message": 7.2, + "insert_us_per_message": [ + 6.01, + 5.8, + 6.1 + ], + "wal_bytes_per_message": [ + 1225.3, + 1219.2, + 1217.8 + ], + "fpi_per_1000": [ + 160.9, + 162.9, + 164.2 + ], + "long_text": "ok" + }, + { + "variant": "covering", + "columns": "(chat_id, created_at, id) INCLUDE (sender_id, text)", + "rows": 20000, + "messages": 600000, + "index_bytes": 95141888, + "index_bytes_per_message": 158.6, + "insert_us_per_message": [ + 6.86, + 6.45, + 6.46 + ], + "wal_bytes_per_message": [ + 1539.0, + 1535.7, + 1533.8 + ], + "fpi_per_1000": [ + 170.0, + 171.1, + 171.6 + ], + "long_text": "index row requires 12072 bytes, maximum size is 8191" + }, + { + "variant": "none", + "columns": null, + "rows": 20000, + "messages": 600000, + "index_bytes": 0, + "index_bytes_per_message": 0.0, + "insert_us_per_message": [ + 5.06, + 5.32, + 5.08 + ], + "wal_bytes_per_message": [ + 1118.4, + 1117.4, + 1115.9 + ], + "fpi_per_1000": [ + 158.9, + 159.8, + 160.0 + ], + "long_text": "ok" + } + ], + "restore": { + "messages_before_backup": 600000, + "messages_at_dump_end": 601397, + "messages_source_end": 605001, + "messages_restored": 600158, + "messages_lost": 4843, + "lost_after_backup_chat": 1, + "load_written": 5000, + "load_failed": 0, + "load_in_backup": 158, + "tables_restored": { + "users": 11, + "chats": 1112, + "chat_members": 12232, + "sessions": 11, + "messages": 600158 + }, + "backup_bytes": 21981827, + "backup_bytes_per_message": 36.6, + "dump_seconds": 1.3, + "storage_seconds": 0.89, + "copy_seconds": 0.15, + "restore_seconds": 1.43, + "analyze_seconds": 0.17, + "verify_seconds": 1.74, + "api_ready_seconds": 2.12, + "rto_seconds": 4.76, + "pages_checked": 10, + "stale_chat_get": 200, + "stale_chat_post": 500, + "flushed_chat_get": 404, + "late_session": 401 + } + } + ], + "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-02T04:43:03+00:00" +} diff --git a/evidence/bench/restore/prefill.csv b/evidence/bench/restore/prefill.csv new file mode 100644 index 00000000..3501839c --- /dev/null +++ b/evidence/bench/restore/prefill.csv @@ -0,0 +1,38 @@ +size,chunk,messages_before,messages_after,duration_s,requests_ok,requests_failed,rps,error_ratio,p50_ms,p95_ms,p99_ms,max_ms,app_cpu_cores,rss_end_mib,mem_cgroup_end_mib,generator_cpu_cores,flags,db_cpu_cores +10000,1,0,25000,25.352,25000,0,986.1,0.0,31.34,49.106,61.46,215.129,0.999,91.5,82.0,0.141,,0.199 +10000,2,25000,50000,25.263,25000,0,989.6,0.0,31.251,49.674,63.862,120.369,0.999,91.6,82.0,0.139,,0.199 +10000,3,50000,75000,25.297,25000,0,988.2,0.0,31.319,49.409,63.1,130.852,0.998,92.6,82.9,0.135,,0.198 +10000,4,75000,100000,24.948,25000,0,1002.1,0.0,31.056,49.208,63.903,119.286,0.999,93.0,83.4,0.14,,0.203 +10000,5,100000,110000,10.011,10000,0,998.9,0.0,30.91,49.277,63.506,112.649,0.999,93.0,83.3,0.15,,0.201 +100000,1,0,25000,25.572,25000,0,977.6,0.0,31.44,48.999,62.281,226.999,0.999,91.6,81.6,0.139,,0.196 +100000,2,25000,50000,25.47,25000,0,981.5,0.0,31.667,49.622,63.558,140.196,1.0,91.6,79.8,0.138,,0.198 +100000,3,50000,75000,25.447,25000,0,982.4,0.0,31.542,48.943,61.217,113.574,0.999,93.5,83.5,0.141,,0.197 +100000,4,75000,100000,24.953,25000,0,1001.9,0.0,30.962,48.494,61.326,116.017,0.999,93.8,84.5,0.14,,0.207 +100000,5,100000,125000,24.742,25000,0,1010.4,0.0,30.758,49.302,63.27,121.316,0.998,93.8,84.1,0.143,,0.202 +100000,6,125000,150000,24.919,25000,0,1003.2,0.0,30.93,48.325,61.902,132.72,0.999,93.8,85.7,0.142,,0.207 +100000,7,150000,175000,25.013,25000,0,999.5,0.0,31.302,52.031,69.564,167.018,0.994,93.8,84.5,0.135,,0.196 +100000,8,175000,200000,24.846,25000,0,1006.2,0.0,30.897,49.575,63.109,109.945,0.999,93.9,82.1,0.14,,0.203 +500000,1,0,25000,25.869,25000,0,966.4,0.0,32.087,48.601,60.638,226.512,1.0,91.6,81.9,0.146,,0.196 +500000,2,25000,50000,25.92,25000,0,964.5,0.0,32.229,49.003,61.449,106.153,0.999,91.6,80.2,0.148,,0.197 +500000,3,50000,75000,25.648,25000,0,974.7,0.0,31.861,49.2,62.392,131.124,0.999,93.5,83.7,0.149,,0.197 +500000,4,75000,100000,25.417,25000,0,983.6,0.0,31.467,48.771,61.275,138.494,0.999,93.5,85.7,0.151,,0.202 +500000,5,100000,125000,25.347,25000,0,986.3,0.0,31.351,49.7,64.813,136.929,0.999,93.5,81.0,0.146,,0.198 +500000,6,125000,150000,25.198,25000,0,992.1,0.0,31.269,48.913,60.63,125.494,0.998,93.5,83.8,0.15,,0.202 +500000,7,150000,175000,25.495,25000,0,980.6,0.0,31.573,50.34,65.576,117.396,1.0,93.5,83.8,0.15,,0.202 +500000,8,175000,200000,25.503,25000,0,980.3,0.0,31.597,49.362,62.299,123.807,1.0,93.5,83.9,0.15,,0.201 +500000,9,200000,225000,25.459,25000,0,982.0,0.0,31.631,49.367,62.181,116.696,1.0,93.5,82.2,0.148,,0.199 +500000,10,225000,250000,25.713,25000,0,972.3,0.0,31.989,49.642,62.341,115.707,0.999,93.5,82.2,0.149,,0.203 +500000,11,250000,275000,25.497,25000,0,980.5,0.0,31.757,47.924,59.047,118.424,0.999,93.5,82.1,0.151,,0.199 +500000,12,275000,300000,25.497,25000,0,980.5,0.0,31.738,49.39,61.324,117.2,0.999,93.5,84.1,0.148,,0.199 +500000,13,300000,325000,25.476,25000,0,981.3,0.0,31.607,49.551,64.119,121.885,0.999,93.5,83.5,0.148,,0.202 +500000,14,325000,350000,25.597,25000,0,976.7,0.0,31.869,49.537,63.452,134.916,1.0,93.5,84.0,0.154,,0.2 +500000,15,350000,375000,25.676,25000,0,973.7,0.0,31.854,49.588,62.773,120.791,0.999,93.5,83.6,0.144,,0.204 +500000,16,375000,400000,25.436,25000,0,982.9,0.0,31.518,49.032,61.564,121.115,0.999,93.5,83.8,0.149,,0.201 +500000,17,400000,425000,25.557,25000,0,978.2,0.0,31.632,49.717,64.356,118.422,0.999,93.5,83.5,0.15,,0.205 +500000,18,425000,450000,25.543,25000,0,978.7,0.0,31.694,49.71,63.337,125.742,1.0,93.5,83.7,0.148,,0.2 +500000,19,450000,475000,25.347,25000,0,986.3,0.0,31.511,49.773,62.739,127.729,1.0,93.5,77.3,0.15,,0.199 +500000,20,475000,500000,25.535,25000,0,979.0,0.0,31.624,50.995,66.098,141.822,0.998,93.5,83.8,0.151,,0.204 +500000,21,500000,525000,25.55,25000,0,978.5,0.0,31.552,51.092,67.933,186.302,0.998,93.5,82.4,0.149,,0.2 +500000,22,525000,550000,25.477,25000,0,981.3,0.0,31.556,49.758,62.233,117.464,1.0,93.5,85.6,0.149,,0.204 +500000,23,550000,575000,25.54,25000,0,978.9,0.0,31.658,50.427,65.004,119.37,1.0,93.5,83.5,0.151,,0.201 +500000,24,575000,600000,25.847,25000,0,967.2,0.0,32.024,50.752,65.833,139.209,0.998,93.5,83.8,0.15,,0.203 diff --git a/evidence/bench/restore/progress.json b/evidence/bench/restore/progress.json new file mode 100644 index 00000000..9566792a --- /dev/null +++ b/evidence/bench/restore/progress.json @@ -0,0 +1,12 @@ +{ + "label": "restore", + "profile": "restore", + "stage": "done", + "size": 500000, + "runs_done": 0, + "runs_total": 0, + "elapsed_s": 1056, + "eta_s": 0, + "warnings": [], + "updated_at": "2026-10-02T04:43:03+00:00" +} diff --git a/evidence/bench/restore/raw/prefill-100k-01.json b/evidence/bench/restore/raw/prefill-100k-01.json new file mode 100644 index 00000000..1044c161 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-100k-01.json @@ -0,0 +1 @@ +{"metrics":{"http_req_connecting":{"type":"trend","contains":"time","values":{"avg":0.00023876839999999993,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":3.74875}},"vus_max":{"type":"gauge","contains":"default","values":{"max":32,"value":32,"min":32}},"http_req_waiting":{"type":"trend","contains":"time","values":{"p(50)":31.426021,"p(95)":48.985218749999994,"p(99)":62.27043757999998,"max":226.967541,"avg":32.65178036079971,"min":10.62375,"med":31.426021}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":977.6367293768196}},"iteration_duration":{"type":"trend","contains":"time","values":{"p(99)":62.361848239999986,"max":228.371291,"avg":32.71604249223998,"min":10.686333,"med":31.483520499999997,"p(50)":31.483520499999997,"p(95)":49.047870799999984}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0}},"data_received":{"type":"counter","contains":"data","values":{"rate":431137.7976551775,"count":11025000}},"http_req_duration{expected_response:true}":{"contains":"time","values":{"max":226.999084,"avg":32.667244617080165,"min":10.64025,"med":31.4397915,"p(50)":31.4397915,"p(95)":48.999273249999995,"p(99)":62.28072699999998},"thresholds":{"max>=0":{"ok":true}},"type":"trend"},"http_reqs":{"type":"counter","contains":"default","values":{"rate":977.6367293768196,"count":25000}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.003350793159999876,"min":0.001584,"med":0.002792,"p(50)":0.002792,"p(95)":0.006542,"p(99)":0.012083829999999981,"max":0.47175}},"http_req_blocked":{"type":"trend","contains":"time","values":{"med":0.00075,"p(50)":0.00075,"p(95)":0.001375,"p(99)":0.002209,"max":4.677792,"avg":0.002800037639999973,"min":0.000416}},"http_req_receiving":{"type":"trend","contains":"time","values":{"avg":0.012113463120000036,"min":0.003541,"med":0.010625,"p(50)":0.010625,"p(95)":0.024666,"p(99)":0.04741740999999999,"max":0.288958}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_duration":{"contains":"time","values":{"min":10.64025,"med":31.4397915,"p(50)":31.4397915,"p(95)":48.999273249999995,"p(99)":62.28072699999998,"max":226.999084,"avg":32.667244617080165},"type":"trend"},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":321642.48396497365}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}}},"root_group":{"groups":[],"checks":[{"passes":25000,"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882"}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e"},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25571.870664}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-100k-02.json b/evidence/bench/restore/raw/prefill-100k-02.json new file mode 100644 index 00000000..5b566f89 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-100k-02.json @@ -0,0 +1 @@ +{"root_group":{"groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e"},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25470.096831},"metrics":{"http_req_blocked":{"type":"trend","contains":"time","values":{"avg":0.0011464623999999648,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.002375,"max":0.557792}},"checks":{"values":{"rate":1,"passes":25000,"fails":0},"type":"rate","contains":"default"},"http_reqs":{"contains":"default","values":{"count":25000,"rate":981.5431863443944},"type":"counter"},"http_req_waiting":{"type":"trend","contains":"time","values":{"p(99)":63.535866420000005,"max":140.166833,"avg":32.520151793439894,"min":10.968958,"med":31.650396,"p(50)":31.650396,"p(95)":49.60254169999999}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"vus_max":{"contains":"default","values":{"max":32,"value":32,"min":32},"type":"gauge"},"http_req_duration":{"contains":"time","values":{"max":140.195625,"avg":32.535612070279996,"min":10.983209,"med":31.6673745,"p(50)":31.6673745,"p(95)":49.62224164999999,"p(99)":63.558238089999996},"type":"trend"},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":432860.5451778779}},"http_req_connecting":{"values":{"avg":0.00007778159999999998,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.138834},"type":"trend","contains":"time"},"http_req_sending":{"type":"trend","contains":"time","values":{"max":0.170375,"avg":0.003422777359999874,"min":0.001583,"med":0.002792,"p(50)":0.002792,"p(95)":0.006667,"p(99)":0.01391601}},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(50)":0.010417,"p(95)":0.02470805,"p(99)":0.048542259999999976,"max":0.251792,"avg":0.012037499480000062,"min":0.003458,"med":0.010417}},"http_req_failed":{"contains":"default","values":{"rate":0,"passes":0,"fails":25000},"type":"rate"},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"p(95)":49.62224164999999,"p(99)":63.558238089999996,"max":140.195625,"avg":32.535612070279996,"min":10.983209,"med":31.6673745,"p(50)":31.6673745},"thresholds":{"max>=0":{"ok":true}}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":322927.70830730576}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":981.5431863443944}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0}},"iteration_duration":{"type":"trend","contains":"time","values":{"p(99)":63.60362625,"max":140.332875,"avg":32.58380389791978,"min":11.040917,"med":31.7122495,"p(50)":31.7122495,"p(95)":49.657437499999986}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-100k-03.json b/evidence/bench/restore/raw/prefill-100k-03.json new file mode 100644 index 00000000..a1831f13 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-100k-03.json @@ -0,0 +1 @@ +{"root_group":{"path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":""},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"testRunDurationMs":25447.463498,"isStdOutTTY":false,"isStdErrTTY":false},"metrics":{"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":982.4161847000913}},"http_req_waiting":{"type":"trend","contains":"time","values":{"avg":32.491959802840164,"min":10.469625,"med":31.525812000000002,"p(50)":31.525812000000002,"p(95)":48.9297792,"p(99)":61.17671074999999,"max":113.545833}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_duration":{"type":"trend","contains":"time","values":{"max":113.574,"avg":32.507452722040036,"min":10.482959,"med":31.541625500000002,"p(50)":31.541625500000002,"p(95)":48.943262499999996,"p(99)":61.216565919999994}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":323214.92476633005}},"http_req_duration{expected_response:true}":{"thresholds":{"max>=0":{"ok":true}},"type":"trend","contains":"time","values":{"avg":32.507452722040036,"min":10.482959,"med":31.541625500000002,"p(50)":31.541625500000002,"p(95)":48.943262499999996,"p(99)":61.216565919999994,"max":113.574}},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(99)":0.045833,"max":0.361375,"avg":0.012129971400000165,"min":0.0035,"med":0.010709,"p(50)":0.010709,"p(95)":0.024752049999999956}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(99)":0,"max":0.111875,"avg":0.00006760664000000001,"min":0,"med":0,"p(50)":0,"p(95)":0}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.0033629477999998765,"min":0.001666,"med":0.002833,"p(50)":0.002833,"p(95)":0.006542,"p(99)":0.012625,"max":0.262041}},"iteration_duration":{"type":"trend","contains":"time","values":{"avg":32.55587877859997,"min":10.52025,"med":31.5885,"p(50)":31.5885,"p(95)":48.996289899999994,"p(99)":61.28940434,"max":114.222542}},"http_req_blocked":{"type":"trend","contains":"time","values":{"max":0.656666,"avg":0.001520505079999867,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001416,"p(99)":0.002334}},"http_reqs":{"values":{"count":25000,"rate":982.4161847000913},"type":"counter","contains":"default"},"data_received":{"values":{"count":11025000,"rate":433245.53745274025},"type":"counter","contains":"data"}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-100k-04.json b/evidence/bench/restore/raw/prefill-100k-04.json new file mode 100644 index 00000000..a13308a5 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-100k-04.json @@ -0,0 +1 @@ +{"root_group":{"groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e"},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":24953.481623},"metrics":{"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"iteration_duration":{"type":"trend","contains":"time","values":{"p(50)":31.007917,"p(95)":48.548832999999995,"p(99)":61.390708329999995,"max":116.151875,"avg":31.923250025679867,"min":9.147375,"med":31.007917}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":1001.8642038695364}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.0035431631599998634,"min":0.001542,"med":0.002833,"p(50)":0.002833,"p(95)":0.006708,"p(99)":0.015083,"max":0.182667}},"http_req_waiting":{"type":"trend","contains":"time","values":{"p(95)":48.481112149999994,"p(99)":61.31559065999999,"max":115.9845,"avg":31.859350922119926,"min":9.099125,"med":30.948521,"p(50)":30.948521}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"checks":{"type":"rate","contains":"default","values":{"passes":25000,"fails":0,"rate":1}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":441822.1139064655}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(99)":0.04966933999999993,"max":0.495541,"avg":0.01189834904,"min":0.003666,"med":0.010209,"p(50)":0.010209,"p(95)":0.024083049999999998}},"http_req_duration{expected_response:true}":{"values":{"p(99)":61.32623074999999,"max":116.016875,"avg":31.874792434319964,"min":9.110042,"med":30.962,"p(50)":30.962,"p(95)":48.493816349999996},"thresholds":{"max>=0":{"ok":true}},"type":"trend","contains":"time"},"http_req_duration":{"type":"trend","contains":"time","values":{"p(95)":48.493816349999996,"p(99)":61.32623074999999,"max":116.016875,"avg":31.874792434319964,"min":9.110042,"med":30.962,"p(50)":30.962}},"http_req_blocked":{"contains":"time","values":{"p(99)":0.002542409999999991,"max":1.067042,"avg":0.001448668519999877,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417},"type":"trend"},"http_req_connecting":{"type":"trend","contains":"time","values":{"max":0.367375,"avg":0.00016777015999999999,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":329613.3230730775}},"http_reqs":{"contains":"default","values":{"count":25000,"rate":1001.8642038695364},"type":"counter"}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-100k-05.json b/evidence/bench/restore/raw/prefill-100k-05.json new file mode 100644 index 00000000..03ec3d3a --- /dev/null +++ b/evidence/bench/restore/raw/prefill-100k-05.json @@ -0,0 +1 @@ +{"root_group":{"id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":""},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdErrTTY":false,"testRunDurationMs":24741.813137,"isStdOutTTY":false},"metrics":{"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":445601.94270939374}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":1010.435244238988}},"http_req_waiting":{"type":"trend","contains":"time","values":{"max":121.293667,"avg":31.588475599199928,"min":9.832416,"med":30.741020499999998,"p(50)":30.741020499999998,"p(95)":49.284303849999986,"p(99)":63.254238509999986}},"http_req_receiving":{"type":"trend","contains":"time","values":{"min":0.003583,"med":0.010292,"p(50)":0.010292,"p(95)":0.022711049999999955,"p(99)":0.04262624999999998,"max":0.451458,"avg":0.011582798640000112}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":1010.435244238988}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0}},"iteration_duration":{"type":"trend","contains":"time","values":{"med":30.8041245,"p(50)":30.8041245,"p(95)":49.358394399999995,"p(99)":63.33744642,"max":121.870542,"avg":31.65182912500007,"min":9.90475}},"http_req_duration{expected_response:true}":{"contains":"time","values":{"p(50)":30.757708,"p(95)":49.30159169999999,"p(99)":63.27007533,"max":121.316125,"avg":31.60351216364004,"min":9.844875,"med":30.757708},"thresholds":{"max>=0":{"ok":true}},"type":"trend"},"http_req_sending":{"type":"trend","contains":"time","values":{"min":0.001625,"med":0.002792,"p(50)":0.002792,"p(95)":0.006709,"p(99)":0.014375829999999982,"max":0.298375,"avg":0.0034537657999998794}},"data_sent":{"values":{"count":8225000,"rate":332433.1953546271},"type":"counter","contains":"data"},"http_req_connecting":{"type":"trend","contains":"time","values":{"max":0.198167,"avg":0.00009336664,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0}},"http_req_duration":{"type":"trend","contains":"time","values":{"p(95)":49.30159169999999,"p(99)":63.27007533,"max":121.316125,"avg":31.60351216364004,"min":9.844875,"med":30.757708,"p(50)":30.757708}},"http_req_blocked":{"type":"trend","contains":"time","values":{"max":0.703333,"avg":0.001454682719999868,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001375,"p(99)":0.002459}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-100k-06.json b/evidence/bench/restore/raw/prefill-100k-06.json new file mode 100644 index 00000000..3b2b3138 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-100k-06.json @@ -0,0 +1 @@ +{"state":{"testRunDurationMs":24919.191456,"isStdOutTTY":false,"isStdErrTTY":false},"metrics":{"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":330066.888988872}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.003427393599999881,"min":0.001583,"med":0.002791,"p(50)":0.002791,"p(95)":0.006583,"p(99)":0.01316741999999999,"max":0.859125}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":1003.242823674383}},"http_req_duration":{"type":"trend","contains":"time","values":{"p(95)":48.32500655,"p(99)":61.90154533,"max":132.7205,"avg":31.83240524176003,"min":10.472542,"med":30.929603999999998,"p(50)":30.929603999999998}},"iteration_duration":{"values":{"avg":31.88062545819993,"min":10.515541,"med":30.9757085,"p(50)":30.9757085,"p(95)":48.3767649,"p(99)":61.95168633999999,"max":134.177167},"type":"trend","contains":"time"},"http_req_waiting":{"values":{"p(99)":61.877145,"max":132.688709,"avg":31.81697394468009,"min":10.463708,"med":30.911292,"p(50)":30.911292,"p(95)":48.3084104},"type":"trend","contains":"time"},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"http_req_blocked":{"type":"trend","contains":"time","values":{"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001375,"p(99)":0.00229101,"max":1.396916,"avg":0.0016683745199998585}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_connecting":{"contains":"time","values":{"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.838209,"avg":0.00026025992},"type":"trend"},"http_req_receiving":{"type":"trend","contains":"time","values":{"avg":0.01200390348000004,"min":0.003584,"med":0.010541,"p(50)":0.010541,"p(95)":0.024211049999999956,"p(99)":0.04729282999999998,"max":0.726334}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":442430.0852404029}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":1003.242823674383}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"p(95)":48.32500655,"p(99)":61.90154533,"max":132.7205,"avg":31.83240524176003,"min":10.472542,"med":30.929603999999998,"p(50)":30.929603999999998},"thresholds":{"max>=0":{"ok":true}}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0}}},"root_group":{"path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0,"name":"message 201","path":"::message 201"}],"name":""},"options":{"noColor":true,"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":""}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-100k-07.json b/evidence/bench/restore/raw/prefill-100k-07.json new file mode 100644 index 00000000..24695e6c --- /dev/null +++ b/evidence/bench/restore/raw/prefill-100k-07.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0,"name":"message 201","path":"::message 201"}]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25012.728456},"metrics":{"http_reqs":{"contains":"default","values":{"count":25000,"rate":999.4911208498348},"type":"counter"},"http_req_blocked":{"type":"trend","contains":"time","values":{"max":0.690333,"avg":0.0014830719599998542,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001375,"p(99)":0.00225}},"http_req_receiving":{"type":"trend","contains":"time","values":{"min":0.003625,"med":0.010125,"p(50)":0.010125,"p(95)":0.021625,"p(99)":0.03879240999999999,"max":3.109333,"avg":0.011399115840000007}},"data_received":{"values":{"count":11025000,"rate":440775.5842947772},"type":"counter","contains":"data"},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":999.4911208498348}},"http_req_duration":{"type":"trend","contains":"time","values":{"avg":31.953475630440014,"min":10.710334,"med":31.301667000000002,"p(50)":31.301667000000002,"p(95)":52.03112469999999,"p(99)":69.56447632999999,"max":167.017625}},"iteration_duration":{"type":"trend","contains":"time","values":{"max":167.660417,"avg":32.00003498051991,"min":10.773,"med":31.345021,"p(50)":31.345021,"p(95)":52.080623249999995,"p(99)":69.60214624999999}},"http_req_tls_handshaking":{"values":{"max":0,"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0},"type":"trend","contains":"time"},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":31.953475630440014,"min":10.710334,"med":31.301667000000002,"p(50)":31.301667000000002,"p(95)":52.03112469999999,"p(99)":69.56447632999999,"max":167.017625},"thresholds":{"max>=0":{"ok":true}}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"data_sent":{"contains":"data","values":{"count":8225000,"rate":328832.57875959564},"type":"counter"},"http_req_connecting":{"values":{"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.150042,"avg":0.00009000147999999997},"type":"trend","contains":"time"},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_sending":{"type":"trend","contains":"time","values":{"max":0.149833,"avg":0.0032971815999998755,"min":0.001583,"med":0.002709,"p(50)":0.002709,"p(95)":0.006458,"p(99)":0.01291740999999999}},"http_req_waiting":{"type":"trend","contains":"time","values":{"min":10.696916,"med":31.287604,"p(50)":31.287604,"p(95)":52.005540199999984,"p(99)":69.55678342,"max":166.997416,"avg":31.938779333000348}},"vus":{"type":"gauge","contains":"default","values":{"max":32,"value":32,"min":32}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-100k-08.json b/evidence/bench/restore/raw/prefill-100k-08.json new file mode 100644 index 00000000..b0f2270a --- /dev/null +++ b/evidence/bench/restore/raw/prefill-100k-08.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"passes":25000,"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882"}]},"options":{"noColor":true,"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":""},"state":{"isStdErrTTY":false,"testRunDurationMs":24845.837414,"isStdOutTTY":false},"metrics":{"data_sent":{"contains":"data","values":{"rate":331041.3677329073,"count":8225000},"type":"counter"},"http_req_tls_handshaking":{"contains":"time","values":{"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0},"type":"trend"},"http_req_waiting":{"type":"trend","contains":"time","values":{"avg":31.721492552359944,"min":10.514708,"med":30.883625000000002,"p(50)":30.883625000000002,"p(95)":49.56344374999998,"p(99)":63.08299149999999,"max":109.902125}},"http_req_duration":{"contains":"time","values":{"avg":31.73741599204011,"min":10.529459,"med":30.8970415,"p(50)":30.8970415,"p(95)":49.57473749999998,"p(99)":63.10923523999999,"max":109.945416},"type":"trend"},"http_req_failed":{"type":"rate","contains":"default","values":{"fails":25000,"rate":0,"passes":0}},"iteration_duration":{"type":"trend","contains":"time","values":{"p(95)":49.64096874999999,"p(99)":63.16943633999999,"max":110.899416,"avg":31.78641255704007,"min":10.566625,"med":30.944479,"p(50)":30.944479}},"http_req_duration{expected_response:true}":{"thresholds":{"max>=0":{"ok":true}},"type":"trend","contains":"time","values":{"max":109.945416,"avg":31.73741599204011,"min":10.529459,"med":30.8970415,"p(50)":30.8970415,"p(95)":49.57473749999998,"p(99)":63.10923523999999}},"http_req_connecting":{"type":"trend","contains":"time","values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.326458,"avg":0.00013796976000000002,"min":0}},"http_req_receiving":{"type":"trend","contains":"time","values":{"avg":0.011849599520000026,"min":0.0035,"med":0.010291,"p(50)":0.010291,"p(95)":0.023667,"p(99)":0.049292409999999995,"max":0.390625}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":1006.2047651456149}},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(99)":0.00270801,"max":1.1255,"avg":0.0016993346399998323,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001416}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.004073840159999809,"min":0.001625,"med":0.002833,"p(50)":0.002833,"p(95)":0.006708,"p(99)":0.014708419999999991,"max":0.783333}},"checks":{"contains":"default","values":{"rate":1,"passes":25000,"fails":0},"type":"rate"},"vus":{"contains":"default","values":{"value":32,"min":32,"max":32},"type":"gauge"},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":1006.2047651456149}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":443736.30142921617}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-10k-01.json b/evidence/bench/restore/raw/prefill-10k-01.json new file mode 100644 index 00000000..3fe6ed50 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-10k-01.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"passes":25000,"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882"}]},"options":{"summaryTimeUnit":"","noColor":true,"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"]},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25351.961554},"metrics":{"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"http_req_receiving":{"values":{"p(99)":0.048959409999999995,"max":0.291708,"avg":0.012114442559999954,"min":0.003625,"med":0.010417,"p(50)":0.010417,"p(95)":0.025},"type":"trend","contains":"time"},"vus_max":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"http_req_duration":{"type":"trend","contains":"time","values":{"max":215.129083,"avg":32.38451171124009,"min":10.069375,"med":31.3395625,"p(50)":31.3395625,"p(95)":49.1059152,"p(99)":61.459992499999984}},"http_req_duration{expected_response:true}":{"values":{"p(99)":61.459992499999984,"max":215.129083,"avg":32.38451171124009,"min":10.069375,"med":31.3395625,"p(50)":31.3395625,"p(95)":49.1059152},"thresholds":{"max>=0":{"ok":true}},"type":"trend","contains":"time"},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":986.1169892810733}},"http_reqs":{"values":{"count":25000,"rate":986.1169892810733},"type":"counter","contains":"default"},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(99)":0.0026678299999999817,"max":0.69225,"avg":0.0014721973199998636,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001416}},"http_req_sending":{"values":{"min":0.001625,"med":0.002875,"p(50)":0.002875,"p(95)":0.006834,"p(99)":0.01550040999999999,"max":0.150417,"avg":0.0035678502399998633},"type":"trend","contains":"time"},"http_req_waiting":{"type":"trend","contains":"time","values":{"p(99)":61.45324833999999,"max":215.062333,"avg":32.36882941843998,"min":10.0575,"med":31.324562,"p(50)":31.324562,"p(95)":49.085697599999996}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":434877.59227295336}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":324432.4894734731}},"iteration_duration":{"type":"trend","contains":"time","values":{"max":215.702541,"avg":32.43422964359964,"min":10.103125,"med":31.390896,"p(50)":31.390896,"p(95)":49.15443475,"p(99)":61.497779499999986}},"http_req_connecting":{"type":"trend","contains":"time","values":{"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.173875,"avg":0.00010791652}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-10k-02.json b/evidence/bench/restore/raw/prefill-10k-02.json new file mode 100644 index 00000000..1e2b5ce4 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-10k-02.json @@ -0,0 +1 @@ +{"root_group":{"groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e"},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25263.064456},"metrics":{"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":32.27333918236014,"min":10.165458,"med":31.250687,"p(50)":31.250687,"p(95)":49.67421039999999,"p(99)":63.861638329999984,"max":120.369042},"thresholds":{"max>=0":{"ok":true}}},"data_sent":{"contains":"data","values":{"count":8225000,"rate":325574.12084053626},"type":"counter"},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":436407.86410539964}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":989.5869934362804}},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(99)":0.002292,"max":0.6995,"avg":0.001528687519999858,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001375}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0.233625,"avg":0.00010080832000000002,"min":0,"med":0,"p(50)":0}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_duration":{"type":"trend","contains":"time","values":{"avg":32.27333918236014,"min":10.165458,"med":31.250687,"p(50)":31.250687,"p(95)":49.67421039999999,"p(99)":63.861638329999984,"max":120.369042}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":989.5869934362804}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(99)":0.04337583999999998,"max":1.304916,"avg":0.011793697720000064,"min":0.003542,"med":0.010375,"p(50)":0.010375,"p(95)":0.023419049999999955}},"http_req_waiting":{"type":"trend","contains":"time","values":{"avg":32.258152324040054,"min":10.151042,"med":31.233479,"p(50)":31.233479,"p(95)":49.66393719999999,"p(99)":63.830947499999986,"max":120.344917}},"http_req_sending":{"type":"trend","contains":"time","values":{"min":0.001625,"med":0.002792,"p(50)":0.002792,"p(95)":0.006667,"p(99)":0.01333341999999999,"max":0.145292,"avg":0.0033931605999998975}},"iteration_duration":{"type":"trend","contains":"time","values":{"min":10.204458,"med":31.2959375,"p(50)":31.2959375,"p(95)":49.714933649999985,"p(99)":63.91729491999999,"max":121.105584,"avg":32.320805360719845}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-10k-03.json b/evidence/bench/restore/raw/prefill-10k-03.json new file mode 100644 index 00000000..0c7221ab --- /dev/null +++ b/evidence/bench/restore/raw/prefill-10k-03.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000}]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25297.424248},"metrics":{"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":988.2429038986642}},"http_req_receiving":{"type":"trend","contains":"time","values":{"min":0.003416,"med":0.010416,"p(50)":0.010416,"p(95)":0.023125,"p(99)":0.045083,"max":0.658583,"avg":0.011764007600000048}},"iteration_duration":{"type":"trend","contains":"time","values":{"p(95)":49.456567299999996,"p(99)":63.140441759999995,"max":131.336958,"avg":32.36498972648017,"min":10.553709,"med":31.364646,"p(50)":31.364646}},"vus_max":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"http_req_waiting":{"values":{"avg":32.30282998087993,"min":10.507,"med":31.3031045,"p(50)":31.3031045,"p(95)":49.39425239999999,"p(99)":63.083606749999994,"max":130.830417},"type":"trend","contains":"time"},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":325131.9153826605}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":435815.1206193109}},"http_req_duration":{"type":"trend","contains":"time","values":{"avg":32.317972934399535,"min":10.516583,"med":31.3187085,"p(50)":31.3187085,"p(95)":49.408843749999996,"p(99)":63.09982158,"max":130.85225}},"http_req_duration{expected_response:true}":{"thresholds":{"max>=0":{"ok":true}},"type":"trend","contains":"time","values":{"max":130.85225,"avg":32.317972934399535,"min":10.516583,"med":31.3187085,"p(50)":31.3187085,"p(95)":49.408843749999996,"p(99)":63.09982158}},"http_req_connecting":{"values":{"p(99)":0,"max":0.139041,"avg":0.0000786934,"min":0,"med":0,"p(50)":0,"p(95)":0},"type":"trend","contains":"time"},"http_req_sending":{"type":"trend","contains":"time","values":{"min":0.001542,"med":0.00275,"p(50)":0.00275,"p(95)":0.006625,"p(99)":0.013292,"max":0.283292,"avg":0.0033789459199998913}},"http_req_tls_handshaking":{"contains":"time","values":{"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0},"type":"trend"},"checks":{"type":"rate","contains":"default","values":{"fails":0,"rate":1,"passes":25000}},"http_req_blocked":{"type":"trend","contains":"time","values":{"min":0.000416,"med":0.000709,"p(50)":0.000709,"p(95)":0.001375,"p(99)":0.002209409999999991,"max":0.658209,"avg":0.0014992504799998516}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"http_reqs":{"type":"counter","contains":"default","values":{"rate":988.2429038986642,"count":25000}},"vus":{"contains":"default","values":{"value":32,"min":32,"max":32},"type":"gauge"}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-10k-04.json b/evidence/bench/restore/raw/prefill-10k-04.json new file mode 100644 index 00000000..77f5eaf7 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-10k-04.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":24948.055206},"metrics":{"iteration_duration":{"values":{"p(99)":63.96663392999999,"max":119.330709,"avg":31.917123148720112,"min":9.877667,"med":31.102271000000002,"p(50)":31.102271000000002,"p(95)":49.27511249999999},"type":"trend","contains":"time"},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(50)":0.00075,"p(95)":0.001416,"p(99)":0.00275,"max":0.697334,"avg":0.0014262207599998673,"min":0.000416,"med":0.00075}},"http_req_receiving":{"type":"trend","contains":"time","values":{"max":0.639542,"avg":0.012039179280000062,"min":0.003542,"med":0.010375,"p(50)":0.010375,"p(95)":0.024292,"p(99)":0.050958839999999984}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"data_sent":{"values":{"count":8225000,"rate":329685.01681132603},"type":"counter","contains":"data"},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(99)":0,"max":0,"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0}},"http_req_sending":{"values":{"p(50)":0.002791,"p(95)":0.006625,"p(99)":0.014333829999999981,"max":0.163,"avg":0.0033979878799998476,"min":0.001584,"med":0.002791},"type":"trend","contains":"time"},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"max":119.286042,"avg":31.868212926399888,"min":9.835583,"med":31.0563335,"p(50)":31.0563335,"p(95)":49.20772499999999,"p(99)":63.90320291999999},"thresholds":{"max>=0":{"ok":true}}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_reqs":{"contains":"default","values":{"count":25000,"rate":1002.0821179675563},"type":"counter"},"data_received":{"contains":"data","values":{"count":11025000,"rate":441918.21402369236},"type":"counter"},"http_req_duration":{"type":"trend","contains":"time","values":{"avg":31.868212926399888,"min":9.835583,"med":31.0563335,"p(50)":31.0563335,"p(95)":49.20772499999999,"p(99)":63.90320291999999,"max":119.286042}},"http_req_connecting":{"contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0.128291,"avg":0.0000707848,"min":0,"med":0},"type":"trend"},"http_req_waiting":{"type":"trend","contains":"time","values":{"avg":31.852775759240004,"min":9.820208,"med":31.0419585,"p(50)":31.0419585,"p(95)":49.18868125,"p(99)":63.885784579999985,"max":119.270875}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":1002.0821179675563}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-10k-05.json b/evidence/bench/restore/raw/prefill-10k-05.json new file mode 100644 index 00000000..3720d1d7 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-10k-05.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":10000,"fails":0}]},"options":{"summaryTimeUnit":"","noColor":true,"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"]},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":10011.061213},"metrics":{"http_req_waiting":{"type":"trend","contains":"time","values":{"p(50)":30.8975835,"p(95)":49.2613625,"p(99)":63.45860107999999,"max":112.623125,"avg":31.93633183749979,"min":10.347084,"med":30.8975835}},"data_sent":{"type":"counter","contains":"data","values":{"count":3290000,"rate":328636.4881804664}},"iterations":{"values":{"count":10000,"rate":998.8951008524815},"type":"counter","contains":"default"},"http_req_connecting":{"type":"trend","contains":"time","values":{"avg":0.00020457509999999998,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.234542}},"http_req_receiving":{"values":{"p(99)":0.04558482999999999,"max":3.288416,"avg":0.01241668240000005,"min":0.003708,"med":0.010375,"p(50)":0.010375,"p(95)":0.024},"type":"trend","contains":"time"},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":10000,"fails":0}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_blocked":{"contains":"time","values":{"p(95)":0.001375,"p(99)":0.0031674099999999964,"max":0.644208,"avg":0.0023027774999999063,"min":0.000417,"med":0.00075,"p(50)":0.00075},"type":"trend"},"http_req_sending":{"type":"trend","contains":"time","values":{"p(99)":0.015500409999999996,"max":0.427334,"avg":0.0034683676999999725,"min":0.001667,"med":0.002792,"p(50)":0.002792,"p(95)":0.006834}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_reqs":{"type":"counter","contains":"default","values":{"count":10000,"rate":998.8951008524815}},"http_req_failed":{"values":{"rate":0,"passes":0,"fails":10000},"type":"rate","contains":"default"},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"p(50)":30.9104165,"p(95)":49.27660065,"p(99)":63.50640833999999,"max":112.648625,"avg":31.95221688759997,"min":10.363,"med":30.9104165},"thresholds":{"max>=0":{"ok":true}}},"http_req_duration":{"type":"trend","contains":"time","values":{"avg":31.95221688759997,"min":10.363,"med":30.9104165,"p(50)":30.9104165,"p(95)":49.27660065,"p(99)":63.50640833999999,"max":112.648625}},"http_req_tls_handshaking":{"values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0},"type":"trend","contains":"time"},"data_received":{"type":"counter","contains":"data","values":{"count":4410000,"rate":440512.7394759443}},"iteration_duration":{"type":"trend","contains":"time","values":{"avg":32.00223009539997,"min":10.41775,"med":30.9607705,"p(50)":30.9607705,"p(95)":49.3262119,"p(99)":63.56155675,"max":113.130542}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-01.json b/evidence/bench/restore/raw/prefill-500k-01.json new file mode 100644 index 00000000..0ba99a1e --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-01.json @@ -0,0 +1 @@ +{"root_group":{"path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0,"name":"message 201","path":"::message 201"}],"name":""},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdErrTTY":false,"testRunDurationMs":25869.153331,"isStdOutTTY":false},"metrics":{"http_req_failed":{"contains":"default","values":{"rate":0,"passes":0,"fails":25000},"type":"rate"},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":426183.25613263575}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":966.4019413438452}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":33.048306210719964,"min":9.508917,"med":32.0868335,"p(50)":32.0868335,"p(95)":48.60084825,"p(99)":60.63763558999999,"max":226.51175},"thresholds":{"max>=0":{"ok":true}}},"checks":{"values":{"rate":1,"passes":25000,"fails":0},"type":"rate","contains":"default"},"http_req_tls_handshaking":{"values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0},"type":"trend","contains":"time"},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_sending":{"type":"trend","contains":"time","values":{"p(50)":0.002834,"p(95)":0.006583,"p(99)":0.012625,"max":0.237,"avg":0.0034406851599998885,"min":0.001542,"med":0.002834}},"http_req_duration":{"values":{"max":226.51175,"avg":33.048306210719964,"min":9.508917,"med":32.0868335,"p(50)":32.0868335,"p(95)":48.60084825,"p(99)":60.63763558999999},"type":"trend","contains":"time"},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(95)":0.001416,"p(99)":0.002167,"max":0.693291,"avg":0.001530837039999878,"min":0.000416,"med":0.00075,"p(50)":0.00075}},"iteration_duration":{"type":"trend","contains":"time","values":{"avg":33.09623465123992,"min":9.565875,"med":32.132166999999995,"p(50)":32.132166999999995,"p(95)":48.6458333,"p(99)":60.68028541999999,"max":227.1575}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":317946.2387021251}},"http_req_waiting":{"type":"trend","contains":"time","values":{"avg":33.03272816855991,"min":9.498625,"med":32.0727295,"p(50)":32.0727295,"p(95)":48.585120499999995,"p(99)":60.61645124999999,"max":226.458083}},"iterations":{"values":{"count":25000,"rate":966.4019413438452},"type":"counter","contains":"default"},"vus_max":{"type":"gauge","contains":"default","values":{"min":32,"max":32,"value":32}},"http_req_connecting":{"contains":"time","values":{"avg":0.00009983663999999997,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.188959},"type":"trend"},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(50)":0.010542,"p(95)":0.024167,"p(99)":0.04646023999999997,"max":1.856584,"avg":0.012137357000000045,"min":0.003625,"med":0.010542}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-02.json b/evidence/bench/restore/raw/prefill-500k-02.json new file mode 100644 index 00000000..4f1f5372 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-02.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdErrTTY":false,"testRunDurationMs":25920.364665,"isStdOutTTY":false},"metrics":{"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":317318.066558922}},"http_req_blocked":{"type":"trend","contains":"time","values":{"avg":0.001324730999999963,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.002667,"max":0.611625}},"http_req_waiting":{"type":"trend","contains":"time","values":{"max":106.121958,"avg":33.09603870116023,"min":10.246666,"med":32.2125205,"p(50)":32.2125205,"p(95)":48.9705851,"p(99)":61.37967157999999}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":425341.2381534486}},"iteration_duration":{"type":"trend","contains":"time","values":{"p(99)":61.514455,"max":106.281791,"avg":33.160596914440085,"min":10.300875,"med":32.276396000000005,"p(50)":32.276396000000005,"p(95)":49.04819104999999}},"http_req_connecting":{"type":"trend","contains":"time","values":{"max":0.162542,"avg":0.00008621004,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0}},"vus":{"contains":"default","values":{"value":32,"min":32,"max":32},"type":"gauge"},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":964.4926035225592}},"http_req_receiving":{"type":"trend","contains":"time","values":{"min":0.003708,"med":0.010375,"p(50)":0.010375,"p(95)":0.02533305,"p(99)":0.05308898999999989,"max":0.722209,"avg":0.01240327868000003}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":964.4926035225592}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0}},"http_req_duration":{"type":"trend","contains":"time","values":{"p(99)":61.449445000000004,"max":106.153,"avg":33.11198111664007,"min":10.262375,"med":32.2291455,"p(50)":32.2291455,"p(95)":49.003482999999996}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"med":32.2291455,"p(50)":32.2291455,"p(95)":49.003482999999996,"p(99)":61.449445000000004,"max":106.153,"avg":33.11198111664007,"min":10.262375},"thresholds":{"max>=0":{"ok":true}}},"http_req_sending":{"type":"trend","contains":"time","values":{"min":0.001667,"med":0.002875,"p(50)":0.002875,"p(95)":0.006708,"p(99)":0.01525,"max":0.267292,"avg":0.003539136799999857}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-03.json b/evidence/bench/restore/raw/prefill-500k-03.json new file mode 100644 index 00000000..31741935 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-03.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0,"name":"message 201"}]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"testRunDurationMs":25648.418873,"isStdOutTTY":false,"isStdErrTTY":false},"metrics":{"http_req_failed":{"contains":"default","values":{"rate":0,"passes":0,"fails":25000},"type":"rate"},"checks":{"values":{"passes":25000,"fails":0,"rate":1},"type":"rate","contains":"default"},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":974.7189533900436}},"http_req_blocked":{"contains":"time","values":{"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.002375,"max":0.71875,"avg":0.0015734289599998558},"type":"trend"},"http_req_duration":{"type":"trend","contains":"time","values":{"med":31.860563,"p(50)":31.860563,"p(95)":49.20016699999999,"p(99)":62.39212933999999,"max":131.124458,"avg":32.7652061041201,"min":9.493917}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"min":9.493917,"med":31.860563,"p(50)":31.860563,"p(95)":49.20016699999999,"p(99)":62.39212933999999,"max":131.124458,"avg":32.7652061041201},"thresholds":{"max>=0":{"ok":true}}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":320682.5356653243}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":429851.05844500917}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0.198416,"avg":0.00012638011999999992,"min":0,"med":0,"p(50)":0}},"http_req_waiting":{"contains":"time","values":{"p(95)":49.1842226,"p(99)":62.37770824,"max":131.102583,"avg":32.74930012432005,"min":9.479917,"med":31.846208500000003,"p(50)":31.846208500000003},"type":"trend"},"vus":{"type":"gauge","contains":"default","values":{"min":32,"max":32,"value":32}},"iteration_duration":{"contains":"time","values":{"med":31.904729500000002,"p(50)":31.904729500000002,"p(95)":49.24961844999999,"p(99)":62.44896416999999,"max":131.884458,"avg":32.813783223120055,"min":9.531375},"type":"trend"},"http_req_sending":{"type":"trend","contains":"time","values":{"p(50)":0.002875,"p(95)":0.006791,"p(99)":0.01520801,"max":0.472084,"avg":0.0035111017199998913,"min":0.001583,"med":0.002875}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":974.7189533900436}},"http_req_receiving":{"type":"trend","contains":"time","values":{"avg":0.012394878080000019,"min":0.003541,"med":0.010583,"p(50)":0.010583,"p(95)":0.025544049999999954,"p(99)":0.05208341999999999,"max":0.645708}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-04.json b/evidence/bench/restore/raw/prefill-500k-04.json new file mode 100644 index 00000000..6e259de4 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-04.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0,"name":"message 201","path":"::message 201"}]},"options":{"summaryTimeUnit":"","noColor":true,"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"]},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25416.672248},"metrics":{"iteration_duration":{"type":"trend","contains":"time","values":{"p(99)":61.32919383999998,"max":139.12775,"avg":32.517132080759914,"min":10.9165,"med":31.5132705,"p(50)":31.5132705,"p(95)":48.8174042}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":983.6063413835465}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":32.469031423360015,"min":10.878208,"med":31.4669165,"p(50)":31.4669165,"p(95)":48.77075415,"p(99)":61.27498374999998,"max":138.493542},"thresholds":{"max>=0":{"ok":true}}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":323606.4863151868}},"http_req_tls_handshaking":{"contains":"time","values":{"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0},"type":"trend"},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":983.6063413835465}},"http_req_receiving":{"contains":"time","values":{"avg":0.012257557000000143,"min":0.003541,"med":0.010625,"p(50)":0.010625,"p(95)":0.025417,"p(99)":0.04975042,"max":0.276208},"type":"trend"},"data_received":{"values":{"count":11025000,"rate":433770.396550144},"type":"counter","contains":"data"},"vus_max":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"http_req_sending":{"values":{"min":0.001625,"med":0.002834,"p(50)":0.002834,"p(95)":0.006584,"p(99)":0.013709409999999991,"max":0.568083,"avg":0.003487230999999889},"type":"trend","contains":"time"},"http_req_duration":{"type":"trend","contains":"time","values":{"p(95)":48.77075415,"p(99)":61.27498374999998,"max":138.493542,"avg":32.469031423360015,"min":10.878208,"med":31.4669165,"p(50)":31.4669165}},"http_req_blocked":{"type":"trend","contains":"time","values":{"max":2.28725,"avg":0.0015983289199998695,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.002417}},"checks":{"type":"rate","contains":"default","values":{"passes":25000,"fails":0,"rate":1}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0.140333,"avg":0.00007684832000000002,"min":0,"med":0,"p(50)":0}},"http_req_waiting":{"type":"trend","contains":"time","values":{"max":138.469625,"avg":32.453286635360165,"min":10.864208,"med":31.4527915,"p(50)":31.4527915,"p(95)":48.76035895,"p(99)":61.26160832999998}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-05.json b/evidence/bench/restore/raw/prefill-500k-05.json new file mode 100644 index 00000000..9fc56475 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-05.json @@ -0,0 +1 @@ +{"root_group":{"checks":[{"passes":25000,"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882"}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"testRunDurationMs":25346.962929,"isStdOutTTY":false,"isStdErrTTY":false},"metrics":{"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":986.3114594844405}},"vus":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0}},"http_req_waiting":{"type":"trend","contains":"time","values":{"med":31.338707999999997,"p(50)":31.338707999999997,"p(95)":49.684068399999994,"p(99)":64.79218792,"max":136.870083,"avg":32.35314432232013,"min":10.500667}},"iteration_duration":{"type":"trend","contains":"time","values":{"med":31.398062,"p(50)":31.398062,"p(95)":49.74971395,"p(99)":64.89842882999997,"max":137.532,"avg":32.41707629880007,"min":10.558708}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":986.3114594844405}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"checks":{"type":"rate","contains":"default","values":{"passes":25000,"fails":0,"rate":1}},"http_req_duration{expected_response:true}":{"contains":"time","values":{"med":31.351291500000002,"p(50)":31.351291500000002,"p(95)":49.6995625,"p(99)":64.81275016999999,"max":136.929417,"avg":32.36879668147983,"min":10.518291},"thresholds":{"max>=0":{"ok":true}},"type":"trend"},"data_received":{"values":{"count":11025000,"rate":434963.3536326383},"type":"counter","contains":"data"},"data_sent":{"contains":"data","values":{"count":8225000,"rate":324496.47017038096},"type":"counter"},"http_req_duration":{"type":"trend","contains":"time","values":{"max":136.929417,"avg":32.36879668147983,"min":10.518291,"med":31.351291500000002,"p(50)":31.351291500000002,"p(95)":49.6995625,"p(99)":64.81275016999999}},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.002625,"max":0.678125,"avg":0.0015591115999998564,"min":0.000416,"med":0.00075}},"http_req_connecting":{"type":"trend","contains":"time","values":{"max":0.171959,"avg":0.00009317832,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0}},"http_req_receiving":{"values":{"max":0.302542,"avg":0.012112775400000084,"min":0.003709,"med":0.010458,"p(50)":0.010458,"p(95)":0.025002049999999956,"p(99)":0.048833},"type":"trend","contains":"time"},"http_req_sending":{"type":"trend","contains":"time","values":{"p(50)":0.002833,"p(95)":0.006666,"p(99)":0.014,"max":1.977375,"avg":0.0035395837599998766,"min":0.001583,"med":0.002833}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-06.json b/evidence/bench/restore/raw/prefill-500k-06.json new file mode 100644 index 00000000..fc87de01 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-06.json @@ -0,0 +1 @@ +{"metrics":{"http_req_duration":{"contains":"time","values":{"p(99)":60.62958708,"max":125.493542,"avg":32.19020913131986,"min":10.810167,"med":31.268957999999998,"p(50)":31.268957999999998,"p(95)":48.91262915},"type":"trend"},"iteration_duration":{"type":"trend","contains":"time","values":{"avg":32.237364626800286,"min":10.852792,"med":31.3139585,"p(50)":31.3139585,"p(95)":48.979116350000005,"p(99)":60.678442499999996,"max":126.062041}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":326411.5952581636}},"checks":{"values":{"rate":1,"passes":25000,"fails":0},"type":"rate","contains":"default"},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":437530.4361971129}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":992.132508383476}},"http_req_duration{expected_response:true}":{"contains":"time","values":{"med":31.268957999999998,"p(50)":31.268957999999998,"p(95)":48.91262915,"p(99)":60.62958708,"max":125.493542,"avg":32.19020913131986,"min":10.810167},"thresholds":{"max>=0":{"ok":true}},"type":"trend"},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"http_req_waiting":{"type":"trend","contains":"time","values":{"avg":32.175241727560014,"min":10.798625,"med":31.254375500000002,"p(50)":31.254375500000002,"p(95)":48.898981899999995,"p(99)":60.616745419999994,"max":125.476792}},"http_reqs":{"contains":"default","values":{"count":25000,"rate":992.132508383476},"type":"counter"},"http_req_receiving":{"contains":"time","values":{"min":0.00375,"med":0.01025,"p(50)":0.01025,"p(95)":0.023127049999999955,"p(99)":0.044875,"max":0.351584,"avg":0.011666458960000159},"type":"trend"},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0.234542,"avg":0.00009593164,"min":0,"med":0,"p(50)":0}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(99)":0,"max":0,"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_blocked":{"type":"trend","contains":"time","values":{"avg":0.0014147211199999018,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001416,"p(99)":0.00233301,"max":0.702709}},"http_req_sending":{"type":"trend","contains":"time","values":{"p(99)":0.01254101,"max":0.137084,"avg":0.003300944799999863,"min":0.001584,"med":0.00275,"p(50)":0.00275,"p(95)":0.006042}}},"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdErrTTY":false,"testRunDurationMs":25198.246997,"isStdOutTTY":false}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-07.json b/evidence/bench/restore/raw/prefill-500k-07.json new file mode 100644 index 00000000..b6b6a1ec --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-07.json @@ -0,0 +1 @@ +{"root_group":{"groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e"},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25494.804748},"metrics":{"http_req_failed":{"type":"rate","contains":"default","values":{"fails":25000,"rate":0,"passes":0}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":322614.7476436441}},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(99)":0.003,"max":2.579625,"avg":0.0027435128799998734,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001458}},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(95)":0.024708,"p(99)":0.046835089999999954,"max":0.609417,"avg":0.01203387284000009,"min":0.003625,"med":0.010417,"p(50)":0.010417}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_duration":{"type":"trend","contains":"time","values":{"avg":32.56517893216015,"min":10.9535,"med":31.573291500000003,"p(50)":31.573291500000003,"p(95)":50.34002295,"p(99)":65.57636582999999,"max":117.395709}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":432441.04471382085}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0}},"http_req_sending":{"type":"trend","contains":"time","values":{"p(95)":0.006792,"p(99)":0.01508440999999999,"max":0.152875,"avg":0.003524148719999885,"min":0.001583,"med":0.002833,"p(50)":0.002833}},"iteration_duration":{"type":"trend","contains":"time","values":{"p(99)":65.62990574,"max":117.445417,"avg":32.615204337919955,"min":10.990417,"med":31.6222295,"p(50)":31.6222295,"p(95)":50.400731549999996}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":980.5919381265779}},"vus_max":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"http_reqs":{"contains":"default","values":{"count":25000,"rate":980.5919381265779},"type":"counter"},"http_req_waiting":{"contains":"time","values":{"avg":32.54962091059986,"min":10.939416,"med":31.557375,"p(50)":31.557375,"p(95)":50.32450354999999,"p(99)":65.54788690999999,"max":117.383417},"type":"trend"},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(99)":0,"max":0.225958,"avg":0.00011040827999999998,"min":0,"med":0,"p(50)":0,"p(95)":0}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":32.56517893216015,"min":10.9535,"med":31.573291500000003,"p(50)":31.573291500000003,"p(95)":50.34002295,"p(99)":65.57636582999999,"max":117.395709},"thresholds":{"max>=0":{"ok":true}}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-08.json b/evidence/bench/restore/raw/prefill-500k-08.json new file mode 100644 index 00000000..2b7ba0c7 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-08.json @@ -0,0 +1 @@ +{"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25502.902331},"metrics":{"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"max":123.806542,"avg":32.57893952711992,"min":10.549208,"med":31.596978999999997,"p(50)":31.596978999999997,"p(95)":49.3624083,"p(99)":62.29912749999998},"thresholds":{"max>=0":{"ok":true}}},"http_req_blocked":{"type":"trend","contains":"time","values":{"max":0.710542,"avg":0.001475810679999896,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.0025}},"data_sent":{"values":{"count":8225000,"rate":322512.312255618},"type":"counter","contains":"data"},"http_req_duration":{"type":"trend","contains":"time","values":{"p(50)":31.596978999999997,"p(95)":49.3624083,"p(99)":62.29912749999998,"max":123.806542,"avg":32.57893952711992,"min":10.549208,"med":31.596978999999997}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_waiting":{"type":"trend","contains":"time","values":{"p(99)":62.28925415999999,"max":123.746125,"avg":32.56332335719986,"min":10.53575,"med":31.5806665,"p(50)":31.5806665,"p(95)":49.3470952}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0,"p(50)":0}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":432303.737704339}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0.161333,"avg":0.00009558164,"min":0,"med":0,"p(50)":0}},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(50)":0.010458,"p(95)":0.024833,"p(99)":0.04787540999999999,"max":1.194042,"avg":0.01212100768,"min":0.003625,"med":0.010458}},"iterations":{"values":{"count":25000,"rate":980.2805843635805},"type":"counter","contains":"default"},"iteration_duration":{"type":"trend","contains":"time","values":{"min":10.596834,"med":31.645646,"p(50)":31.645646,"p(95)":49.40304584999999,"p(99)":62.34492499999999,"max":124.394667,"avg":32.62677444819998}},"http_req_failed":{"values":{"passes":0,"fails":25000,"rate":0},"type":"rate","contains":"default"},"vus":{"contains":"default","values":{"value":32,"min":32,"max":32},"type":"gauge"},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_reqs":{"type":"counter","contains":"default","values":{"rate":980.2805843635805,"count":25000}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.0034951622399998876,"min":0.001667,"med":0.002834,"p(50)":0.002834,"p(95)":0.006667,"p(99)":0.014542,"max":0.214417}}},"root_group":{"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[]}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-09.json b/evidence/bench/restore/raw/prefill-500k-09.json new file mode 100644 index 00000000..4ace7f04 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-09.json @@ -0,0 +1 @@ +{"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25459.459373},"metrics":{"http_req_duration":{"type":"trend","contains":"time","values":{"min":10.530958,"med":31.6312705,"p(50)":31.6312705,"p(95)":49.367319099999996,"p(99)":62.18139834,"max":116.695958,"avg":32.52235061840006}},"http_req_receiving":{"type":"trend","contains":"time","values":{"avg":0.011973105280000132,"min":0.003334,"med":0.010291,"p(50)":0.010291,"p(95)":0.024333,"p(99)":0.05033440999999999,"max":0.761}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":323062.63379350037}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"med":31.6312705,"p(50)":31.6312705,"p(95)":49.367319099999996,"p(99)":62.18139834,"max":116.695958,"avg":32.52235061840006,"min":10.530958},"thresholds":{"max>=0":{"ok":true}}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":981.9532942051683}},"vus_max":{"type":"gauge","contains":"default","values":{"min":32,"max":32,"value":32}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":981.9532942051683}},"http_req_waiting":{"values":{"p(95)":49.34902769999999,"p(99)":62.161984679999996,"max":116.675084,"avg":32.50693920856009,"min":10.519542,"med":31.61675,"p(50)":31.61675},"type":"trend","contains":"time"},"http_req_sending":{"type":"trend","contains":"time","values":{"max":0.143667,"avg":0.0034383045599998894,"min":0.0015,"med":0.002792,"p(50)":0.002792,"p(95)":0.006667,"p(99)":0.01475}},"http_req_failed":{"contains":"default","values":{"rate":0,"passes":0,"fails":25000},"type":"rate"},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":433041.40274447924}},"http_req_blocked":{"values":{"max":1.37425,"avg":0.0019332118799997627,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.002459409999999991},"type":"trend","contains":"time"},"iteration_duration":{"type":"trend","contains":"time","values":{"avg":32.570719600679766,"min":10.577542,"med":31.676583,"p(50)":31.676583,"p(95)":49.41768989999999,"p(99)":62.25610292,"max":117.856667}},"http_req_connecting":{"type":"trend","contains":"time","values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.166542,"avg":0.00008747171999999999,"min":0}}},"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-10.json b/evidence/bench/restore/raw/prefill-500k-10.json new file mode 100644 index 00000000..a163e1ef --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-10.json @@ -0,0 +1 @@ +{"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25712.658498},"metrics":{"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_failed":{"type":"rate","contains":"default","values":{"fails":25000,"rate":0,"passes":0}},"iterations":{"contains":"default","values":{"count":25000,"rate":972.2837489536357},"type":"counter"},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"p(50)":31.988708000000003,"p(95)":49.64163604999999,"p(99)":62.34122283,"max":115.7065,"avg":32.84683028691998,"min":10.550709,"med":31.988708000000003},"thresholds":{"max>=0":{"ok":true}}},"vus":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":428777.13328855333}},"http_req_receiving":{"values":{"max":0.758541,"avg":0.01252348048000003,"min":0.003459,"med":0.01075,"p(50)":0.01075,"p(95)":0.025625,"p(99)":0.05191740999999999},"type":"trend","contains":"time"},"data_sent":{"values":{"count":8225000,"rate":319881.35340574617},"type":"counter","contains":"data"},"http_reqs":{"values":{"rate":972.2837489536357,"count":25000},"type":"counter","contains":"default"},"http_req_blocked":{"contains":"time","values":{"med":0.000791,"p(50)":0.000791,"p(95)":0.001417,"p(99)":0.0026254199999999907,"max":0.563375,"avg":0.0013387026399999857,"min":0.000416},"type":"trend"},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0}},"iteration_duration":{"type":"trend","contains":"time","values":{"max":116.071625,"avg":32.89598540388034,"min":10.587167,"med":32.0386465,"p(50)":32.0386465,"p(95)":49.696941699999996,"p(99)":62.38712542}},"http_req_connecting":{"type":"trend","contains":"time","values":{"avg":0.00006994496,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.12025}},"http_req_duration":{"type":"trend","contains":"time","values":{"avg":32.84683028691998,"min":10.550709,"med":31.988708000000003,"p(50)":31.988708000000003,"p(95)":49.64163604999999,"p(99)":62.34122283,"max":115.7065}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.0035969285999998745,"min":0.001584,"med":0.002958,"p(50)":0.002958,"p(95)":0.006833,"p(99)":0.01525082999999998,"max":0.19375}},"http_req_waiting":{"type":"trend","contains":"time","values":{"p(99)":62.32392315999999,"max":115.693833,"avg":32.830709877840086,"min":10.539,"med":31.974542,"p(50)":31.974542,"p(95)":49.62787885}}},"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000}]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-11.json b/evidence/bench/restore/raw/prefill-500k-11.json new file mode 100644 index 00000000..c81b53e4 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-11.json @@ -0,0 +1 @@ +{"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"testRunDurationMs":25496.757248,"isStdOutTTY":false,"isStdErrTTY":false},"metrics":{"http_req_duration":{"type":"trend","contains":"time","values":{"min":10.497041,"med":31.756583,"p(50)":31.756583,"p(95)":47.92368299999999,"p(99)":59.04658183999999,"max":118.423542,"avg":32.570549265000025}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":32.570549265000025,"min":10.497041,"med":31.756583,"p(50)":31.756583,"p(95)":47.92368299999999,"p(99)":59.04658183999999,"max":118.423542},"thresholds":{"max>=0":{"ok":true}}},"http_req_sending":{"contains":"time","values":{"p(50)":0.002916,"p(95)":0.006458,"p(99)":0.013083009999999999,"max":0.155,"avg":0.0034742929599998803,"min":0.001625,"med":0.002916},"type":"trend"},"checks":{"type":"rate","contains":"default","values":{"passes":25000,"fails":0,"rate":1}},"iteration_duration":{"type":"trend","contains":"time","values":{"min":10.536584,"med":31.8049995,"p(50)":31.8049995,"p(95)":47.968946149999994,"p(99)":59.094073339999994,"max":118.536708,"avg":32.61912858988004}},"http_req_waiting":{"type":"trend","contains":"time","values":{"max":118.407375,"avg":32.554648338880234,"min":10.481584,"med":31.741354,"p(50)":31.741354,"p(95)":47.9106271,"p(99)":59.02986874999999}},"vus":{"contains":"default","values":{"max":32,"value":32,"min":32},"type":"gauge"},"http_req_blocked":{"type":"trend","contains":"time","values":{"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.002459409999999991,"max":0.650292,"avg":0.001341007959999981}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":980.5168459985645}},"http_req_connecting":{"type":"trend","contains":"time","values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.173334,"avg":0.00009797176,"min":0}},"http_req_failed":{"type":"rate","contains":"default","values":{"passes":0,"fails":25000,"rate":0}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":322590.0423335277}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":980.5168459985645}},"data_received":{"type":"counter","contains":"data","values":{"rate":432407.92908536695,"count":11025000}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_receiving":{"type":"trend","contains":"time","values":{"avg":0.012426633159999988,"min":0.003667,"med":0.010666,"p(50)":0.010666,"p(95)":0.025333,"p(99)":0.049584409999999995,"max":0.493375}}},"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}]}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-12.json b/evidence/bench/restore/raw/prefill-500k-12.json new file mode 100644 index 00000000..a825fd26 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-12.json @@ -0,0 +1 @@ +{"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25497.043582},"metrics":{"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":432403.07310700347}},"vus":{"contains":"default","values":{"value":32,"min":32,"max":32},"type":"gauge"},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":980.5058347097585}},"iteration_duration":{"type":"trend","contains":"time","values":{"avg":32.61942290003993,"min":10.153167,"med":31.789583999999998,"p(50)":31.789583999999998,"p(95)":49.43076665,"p(99)":61.37515042,"max":117.645417}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":980.5058347097585}},"http_req_duration":{"type":"trend","contains":"time","values":{"max":117.199667,"avg":32.57061870888001,"min":10.115042,"med":31.737854499999997,"p(50)":31.737854499999997,"p(95)":49.389925000000005,"p(99)":61.32421483}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":322586.41961951053}},"http_req_sending":{"type":"trend","contains":"time","values":{"p(95)":0.006708,"p(99)":0.01520841999999999,"max":0.369666,"avg":0.0034923990799998763,"min":0.001583,"med":0.002875,"p(50)":0.002875}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0.168,"avg":0.00009281836000000002,"min":0,"med":0,"p(50)":0}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0}},"http_req_failed":{"type":"rate","contains":"default","values":{"passes":0,"fails":25000,"rate":0}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(50)":0.00075,"p(95)":0.001459,"p(99)":0.002792,"max":0.662083,"avg":0.0015193051599998984,"min":0.000416,"med":0.00075}},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(50)":0.010583,"p(95)":0.02566605,"p(99)":0.05408424999999997,"max":0.516916,"avg":0.012479683320000115,"min":0.003708,"med":0.010583}},"http_req_duration{expected_response:true}":{"contains":"time","values":{"med":31.737854499999997,"p(50)":31.737854499999997,"p(95)":49.389925000000005,"p(99)":61.32421483,"max":117.199667,"avg":32.57061870888001,"min":10.115042},"thresholds":{"max>=0":{"ok":true}},"type":"trend"},"http_req_waiting":{"values":{"avg":32.55464662648013,"min":10.104042,"med":31.722375,"p(50)":31.722375,"p(95)":49.3764184,"p(99)":61.29455366,"max":117.153917},"type":"trend","contains":"time"}},"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"passes":25000,"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882"}]}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-13.json b/evidence/bench/restore/raw/prefill-500k-13.json new file mode 100644 index 00000000..aaebad01 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-13.json @@ -0,0 +1 @@ +{"root_group":{"id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":""},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25475.917053},"metrics":{"iteration_duration":{"type":"trend","contains":"time","values":{"min":10.879584,"med":31.6527915,"p(50)":31.6527915,"p(95)":49.59651875,"p(99)":64.15913649999999,"max":122.441917,"avg":32.5933924157601}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(50)":0.00075,"p(95)":0.001416,"p(99)":0.0025830099999999997,"max":2.051875,"avg":0.0015848183999998516,"min":0.000416,"med":0.00075}},"http_req_tls_handshaking":{"contains":"time","values":{"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0},"type":"trend"},"iterations":{"values":{"count":25000,"rate":981.3189432195943},"type":"counter","contains":"default"},"http_req_sending":{"values":{"avg":0.0034501641599998687,"min":0.001584,"med":0.002833,"p(50)":0.002833,"p(95)":0.006542,"p(99)":0.01354101,"max":0.247},"type":"trend","contains":"time"},"http_req_receiving":{"contains":"time","values":{"max":0.31825,"avg":0.01211025372000005,"min":0.00375,"med":0.0105,"p(50)":0.0105,"p(95)":0.024544049999999956,"p(99)":0.04850082999999998},"type":"trend"},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":32.54517790939989,"min":10.842375,"med":31.606771000000002,"p(50)":31.606771000000002,"p(95)":49.5508497,"p(99)":64.11938982,"max":121.8845},"thresholds":{"max>=0":{"ok":true}}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":322853.9323192465}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"http_req_waiting":{"type":"trend","contains":"time","values":{"min":10.82975,"med":31.591583,"p(50)":31.591583,"p(95)":49.540894349999995,"p(99)":64.09475606999999,"max":121.841916,"avg":32.529617491520305}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":432761.65395984106}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0.155083,"avg":0.00008279335999999999,"min":0,"med":0,"p(50)":0}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":981.3189432195943}},"http_req_duration":{"type":"trend","contains":"time","values":{"med":31.606771000000002,"p(50)":31.606771000000002,"p(95)":49.5508497,"p(99)":64.11938982,"max":121.8845,"avg":32.54517790939989,"min":10.842375}},"checks":{"type":"rate","contains":"default","values":{"fails":0,"rate":1,"passes":25000}},"vus":{"values":{"min":32,"max":32,"value":32},"type":"gauge","contains":"default"}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-14.json b/evidence/bench/restore/raw/prefill-500k-14.json new file mode 100644 index 00000000..2ccf5e8a --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-14.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"testRunDurationMs":25597.048748,"isStdOutTTY":false,"isStdErrTTY":false},"metrics":{"http_req_failed":{"type":"rate","contains":"default","values":{"fails":25000,"rate":0,"passes":0}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.0035548823999998844,"min":0.001583,"med":0.002958,"p(50)":0.002958,"p(95)":0.006708,"p(99)":0.01375,"max":0.261042}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0,"p(50)":0}},"http_req_duration{expected_response:true}":{"thresholds":{"max>=0":{"ok":true}},"type":"trend","contains":"time","values":{"max":134.915959,"avg":32.6970293313199,"min":10.18475,"med":31.8691665,"p(50)":31.8691665,"p(95)":49.53743124999999,"p(99)":63.452136159999995}},"http_req_waiting":{"contains":"time","values":{"avg":32.68102806236018,"min":10.172,"med":31.8528545,"p(50)":31.8528545,"p(95)":49.521764899999994,"p(99)":63.43788283,"max":134.79175},"type":"trend"},"http_req_blocked":{"type":"trend","contains":"time","values":{"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.002458,"max":0.884291,"avg":0.0016821271999998262}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":321326.1060278542}},"iterations":{"contains":"default","values":{"count":25000,"rate":976.6750943095872},"type":"counter"},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":976.6750943095872}},"checks":{"type":"rate","contains":"default","values":{"passes":25000,"fails":0,"rate":1}},"http_req_receiving":{"type":"trend","contains":"time","values":{"med":0.010916,"p(50)":0.010916,"p(95)":0.025125,"p(99)":0.04862666999999996,"max":0.508541,"avg":0.012446386559999991,"min":0.003708}},"http_req_connecting":{"values":{"avg":0.00023994323999999997,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.325625},"type":"trend","contains":"time"},"iteration_duration":{"values":{"p(95)":49.5832681,"p(99)":63.49779399,"max":135.498041,"avg":32.74629402224016,"min":10.236875,"med":31.9170415,"p(50)":31.9170415},"type":"trend","contains":"time"},"vus_max":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"http_req_duration":{"type":"trend","contains":"time","values":{"p(99)":63.452136159999995,"max":134.915959,"avg":32.6970293313199,"min":10.18475,"med":31.8691665,"p(50)":31.8691665,"p(95)":49.53743124999999}},"data_received":{"values":{"count":11025000,"rate":430713.71659052797},"type":"counter","contains":"data"},"vus":{"type":"gauge","contains":"default","values":{"min":32,"max":32,"value":32}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-15.json b/evidence/bench/restore/raw/prefill-500k-15.json new file mode 100644 index 00000000..db8499d4 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-15.json @@ -0,0 +1 @@ +{"root_group":{"id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0,"name":"message 201","path":"::message 201"}],"name":"","path":""},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25676.041164},"metrics":{"data_received":{"type":"counter","contains":"data","values":{"rate":429388.6245772962,"count":11025000}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":973.6703505154109}},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(50)":0.00075,"p(95)":0.001458,"p(99)":0.002375,"max":0.503375,"avg":0.0011805035999999667,"min":0.000416,"med":0.00075}},"iteration_duration":{"contains":"time","values":{"p(95)":49.631606549999994,"p(99)":62.83270856999998,"max":120.891583,"avg":32.848881617639975,"min":10.360875,"med":31.900917,"p(50)":31.900917},"type":"trend"},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"checks":{"contains":"default","values":{"rate":1,"passes":25000,"fails":0},"type":"rate"},"http_req_connecting":{"type":"trend","contains":"time","values":{"max":0.118208,"avg":0.00006430668000000001,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0}},"http_req_receiving":{"values":{"p(95)":0.02475,"p(99)":0.048419079999999955,"max":2.270959,"avg":0.01229524955999996,"min":0.003625,"med":0.0105,"p(50)":0.0105},"type":"trend","contains":"time"},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_failed":{"values":{"rate":0,"passes":0,"fails":25000},"type":"rate","contains":"default"},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0}},"http_req_duration{expected_response:true}":{"contains":"time","values":{"max":120.7915,"avg":32.80141788155982,"min":10.319458,"med":31.854146,"p(50)":31.854146,"p(95)":49.5875045,"p(99)":62.77305791999998},"thresholds":{"max>=0":{"ok":true}},"type":"trend"},"http_req_sending":{"type":"trend","contains":"time","values":{"p(50)":0.002833,"p(95)":0.006666,"p(99)":0.014375,"max":0.114375,"avg":0.003407581359999867,"min":0.001583,"med":0.002833}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":320337.54531957017}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":973.6703505154109}},"http_req_duration":{"type":"trend","contains":"time","values":{"min":10.319458,"med":31.854146,"p(50)":31.854146,"p(95)":49.5875045,"p(99)":62.77305791999998,"max":120.7915,"avg":32.80141788155982}},"http_req_waiting":{"type":"trend","contains":"time","values":{"avg":32.78571505063996,"min":10.304833,"med":31.8394165,"p(50)":31.8394165,"p(95)":49.566999999999986,"p(99)":62.76213790999998,"max":120.763333}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-16.json b/evidence/bench/restore/raw/prefill-500k-16.json new file mode 100644 index 00000000..8a0c324f --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-16.json @@ -0,0 +1 @@ +{"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25435.790373},"metrics":{"iteration_duration":{"values":{"max":121.168375,"avg":32.540878416679575,"min":10.661292,"med":31.566603999999998,"p(50)":31.566603999999998,"p(95)":49.08515205,"p(99)":61.61700992},"type":"trend","contains":"time"},"iterations":{"type":"counter","contains":"default","values":{"rate":982.867040237028,"count":25000}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.0034810080799999024,"min":0.001583,"med":0.002875,"p(50)":0.002875,"p(95)":0.006708,"p(99)":0.013833,"max":0.095958}},"http_req_duration{expected_response:true}":{"contains":"time","values":{"max":121.115291,"avg":32.49226965311986,"min":10.620958,"med":31.518209,"p(50)":31.518209,"p(95)":49.032424999999996,"p(99)":61.56401426},"thresholds":{"max>=0":{"ok":true}},"type":"trend"},"http_req_connecting":{"contains":"time","values":{"max":0.2585,"avg":0.00015520832000000007,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0},"type":"trend"},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0}},"http_req_receiving":{"type":"trend","contains":"time","values":{"med":0.010542,"p(50)":0.010542,"p(95)":0.024542,"p(99)":0.05041642999999999,"max":0.30425,"avg":0.012181975800000088,"min":0.003666}},"http_req_failed":{"contains":"default","values":{"rate":0,"passes":0,"fails":25000},"type":"rate"},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_blocked":{"values":{"med":0.00075,"p(50)":0.00075,"p(95)":0.001375,"p(99)":0.002292,"max":0.691417,"avg":0.0015434962399998836,"min":0.000416},"type":"trend","contains":"time"},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":982.867040237028}},"vus_max":{"type":"gauge","contains":"default","values":{"min":32,"max":32,"value":32}},"http_req_duration":{"type":"trend","contains":"time","values":{"avg":32.49226965311986,"min":10.620958,"med":31.518209,"p(50)":31.518209,"p(95)":49.032424999999996,"p(99)":61.56401426,"max":121.115291}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_waiting":{"type":"trend","contains":"time","values":{"med":31.501979,"p(50)":31.501979,"p(95)":49.009264599999995,"p(99)":61.550139079999994,"max":121.099792,"avg":32.47660666924004,"min":10.6085}},"data_sent":{"contains":"data","values":{"count":8225000,"rate":323363.2562379822},"type":"counter"},"data_received":{"type":"counter","contains":"data","values":{"rate":433444.36474452936,"count":11025000}}},"root_group":{"id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":""}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-17.json b/evidence/bench/restore/raw/prefill-500k-17.json new file mode 100644 index 00000000..1a93a242 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-17.json @@ -0,0 +1 @@ +{"root_group":{"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[]},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25556.566707},"metrics":{"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0}},"http_req_duration":{"type":"trend","contains":"time","values":{"p(50)":31.632041,"p(95)":49.71729999999998,"p(99)":64.35627499999998,"max":118.422167,"avg":32.64688386108011,"min":10.558667,"med":31.632041}},"http_req_failed":{"values":{"rate":0,"passes":0,"fails":25000},"type":"rate","contains":"default"},"http_req_connecting":{"contains":"time","values":{"max":0.325584,"avg":0.00009820675999999999,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0},"type":"trend"},"iterations":{"values":{"count":25000,"rate":978.2221644487341},"type":"counter","contains":"default"},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_duration{expected_response:true}":{"thresholds":{"max>=0":{"ok":true}},"type":"trend","contains":"time","values":{"avg":32.64688386108011,"min":10.558667,"med":31.632041,"p(50)":31.632041,"p(95)":49.71729999999998,"p(99)":64.35627499999998,"max":118.422167}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":431395.97452189174}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":978.2221644487341}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":321835.09210363356}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_receiving":{"contains":"time","values":{"min":0.003625,"med":0.010584,"p(50)":0.010584,"p(95)":0.025292,"p(99)":0.05116808999999996,"max":0.66775,"avg":0.012405526199999954},"type":"trend"},"http_req_sending":{"type":"trend","contains":"time","values":{"min":0.001583,"med":0.002917,"p(50)":0.002917,"p(95)":0.006875,"p(99)":0.015500839999999981,"max":0.308875,"avg":0.0037928074399998456}},"http_req_waiting":{"type":"trend","contains":"time","values":{"avg":32.630685527439915,"min":10.545459,"med":31.617708999999998,"p(50)":31.617708999999998,"p(95)":49.706674349999986,"p(99)":64.34460149,"max":118.399791}},"http_req_blocked":{"type":"trend","contains":"time","values":{"avg":0.0015700647199998739,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001458,"p(99)":0.002833,"max":0.679708}},"iteration_duration":{"type":"trend","contains":"time","values":{"med":31.680375,"p(50)":31.680375,"p(95)":49.761043099999995,"p(99)":64.40254575,"max":119.115,"avg":32.69565628800024,"min":10.597917}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-18.json b/evidence/bench/restore/raw/prefill-500k-18.json new file mode 100644 index 00000000..3b7f7a19 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-18.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0,"name":"message 201"}]},"options":{"noColor":true,"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":""},"state":{"testRunDurationMs":25543.436456,"isStdOutTTY":false,"isStdErrTTY":false},"metrics":{"vus_max":{"type":"gauge","contains":"default","values":{"min":32,"max":32,"value":32}},"http_req_waiting":{"type":"trend","contains":"time","values":{"p(99)":63.32789124999999,"max":125.731208,"avg":32.61361436384008,"min":10.219417,"med":31.6819165,"p(50)":31.6819165,"p(95)":49.70076045}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0.181125,"avg":0.00010337512,"min":0,"med":0}},"data_received":{"values":{"count":11025000,"rate":431617.72766914824},"type":"counter","contains":"data"},"vus":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"http_req_blocked":{"type":"trend","contains":"time","values":{"med":0.000791,"p(50)":0.000791,"p(95)":0.001458,"p(99)":0.002708,"max":0.624417,"avg":0.0014374089199999309,"min":0.000416}},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(99)":0.05091865999999996,"max":0.576083,"avg":0.01231262196000018,"min":0.003583,"med":0.010625,"p(50)":0.010625,"p(95)":0.02458305}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(99)":0,"max":0,"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":978.7250060524904}},"http_req_duration":{"type":"trend","contains":"time","values":{"p(99)":63.337413009999985,"max":125.741584,"avg":32.62950284123991,"min":10.232459,"med":31.6939375,"p(50)":31.6939375,"p(95)":49.7104042}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"iteration_duration":{"values":{"p(95)":49.7673128,"p(99)":63.39563482999999,"max":125.792541,"avg":32.67858343327986,"min":10.278833,"med":31.7411045,"p(50)":31.7411045},"type":"trend","contains":"time"},"http_req_sending":{"values":{"avg":0.003575855439999914,"min":0.001584,"med":0.002917,"p(50)":0.002917,"p(95)":0.006875,"p(99)":0.0155,"max":0.172834},"type":"trend","contains":"time"},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":32.62950284123991,"min":10.232459,"med":31.6939375,"p(50)":31.6939375,"p(95)":49.7104042,"p(99)":63.337413009999985,"max":125.741584},"thresholds":{"max>=0":{"ok":true}}},"data_sent":{"contains":"data","values":{"count":8225000,"rate":322000.5269912693},"type":"counter"},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":978.7250060524904}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-19.json b/evidence/bench/restore/raw/prefill-500k-19.json new file mode 100644 index 00000000..d8dc67ce --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-19.json @@ -0,0 +1 @@ +{"metrics":{"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0}},"http_req_connecting":{"values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0.124125,"avg":0.00006866504,"min":0,"med":0},"type":"trend","contains":"time"},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(99)":0.002375,"max":0.556167,"avg":0.0012258107599999496,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001416}},"http_req_duration":{"contains":"time","values":{"p(99)":62.73896899,"max":127.729083,"avg":32.379756051479994,"min":10.35175,"med":31.510832999999998,"p(50)":31.510832999999998,"p(95)":49.77292674999999},"type":"trend"},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":324498.1383930803}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":434965.5897609375}},"iterations":{"values":{"count":25000,"rate":986.316530070153},"type":"counter","contains":"default"},"http_req_receiving":{"type":"trend","contains":"time","values":{"med":0.0105,"p(50)":0.0105,"p(95)":0.023375,"p(99)":0.04479141999999999,"max":0.465084,"avg":0.011801019640000038,"min":0.003666}},"http_req_duration{expected_response:true}":{"contains":"time","values":{"med":31.510832999999998,"p(50)":31.510832999999998,"p(95)":49.77292674999999,"p(99)":62.73896899,"max":127.729083,"avg":32.379756051479994,"min":10.35175},"thresholds":{"max>=0":{"ok":true}},"type":"trend"},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.0035134892399998926,"min":0.001583,"med":0.002875,"p(50)":0.002875,"p(95)":0.006583,"p(99)":0.0125,"max":0.2595}},"vus_max":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"iteration_duration":{"type":"trend","contains":"time","values":{"min":10.389042,"med":31.558812500000002,"p(50)":31.558812500000002,"p(95)":49.81858365,"p(99)":62.77749391,"max":127.76875,"avg":32.42675235219995}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_waiting":{"type":"trend","contains":"time","values":{"p(50)":31.496562500000003,"p(95)":49.7556167,"p(99)":62.72974417,"max":127.720042,"avg":32.36444154260004,"min":10.342458,"med":31.496562500000003}},"http_reqs":{"values":{"count":25000,"rate":986.316530070153},"type":"counter","contains":"default"},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_failed":{"values":{"rate":0,"passes":0,"fails":25000},"type":"rate","contains":"default"}},"root_group":{"groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e"},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25346.832622}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-20.json b/evidence/bench/restore/raw/prefill-500k-20.json new file mode 100644 index 00000000..4cf22710 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-20.json @@ -0,0 +1 @@ +{"root_group":{"path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0,"name":"message 201"}],"name":""},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25535.409331},"metrics":{"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":979.0326709057288}},"http_req_sending":{"type":"trend","contains":"time","values":{"min":0.001666,"med":0.002875,"p(50)":0.002875,"p(95)":0.006791,"p(99)":0.014125409999999991,"max":1.20725,"avg":0.0035786263599998694}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"data_sent":{"values":{"count":8225000,"rate":322101.7487279848},"type":"counter","contains":"data"},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":32.61990776540017,"min":10.652625,"med":31.6242085,"p(50)":31.6242085,"p(95)":50.995453549999986,"p(99)":66.09816675,"max":141.822458},"thresholds":{"max>=0":{"ok":true}}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"iteration_duration":{"type":"trend","contains":"time","values":{"med":31.672458499999998,"p(50)":31.672458499999998,"p(95)":51.0690702,"p(99)":66.13500540999999,"max":142.641875,"avg":32.66849282119992,"min":10.693625}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":431753.4078694264}},"http_req_duration":{"type":"trend","contains":"time","values":{"min":10.652625,"med":31.6242085,"p(50)":31.6242085,"p(95)":50.995453549999986,"p(99)":66.09816675,"max":141.822458,"avg":32.61990776540017}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":979.0326709057288}},"http_req_tls_handshaking":{"contains":"time","values":{"max":0,"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0},"type":"trend"},"vus_max":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"http_req_receiving":{"type":"trend","contains":"time","values":{"max":0.418625,"avg":0.012207540480000062,"min":0.003792,"med":0.010625,"p(50)":0.010625,"p(95)":0.02475,"p(99)":0.04700082999999998}},"http_req_waiting":{"type":"trend","contains":"time","values":{"max":141.79775,"avg":32.604121598559956,"min":10.63775,"med":31.611708999999998,"p(50)":31.611708999999998,"p(95)":50.98537645,"p(99)":66.09050416999999}},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(95)":0.001458,"p(99)":0.002708,"max":0.771709,"avg":0.0015457659999998784,"min":0.000416,"med":0.00075,"p(50)":0.00075}},"http_req_connecting":{"type":"trend","contains":"time","values":{"avg":0.00009221652000000001,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.335333}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-21.json b/evidence/bench/restore/raw/prefill-500k-21.json new file mode 100644 index 00000000..febc7289 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-21.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000,"fails":0}]},"options":{"summaryTimeUnit":"","noColor":true,"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"]},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25549.795845},"metrics":{"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0}},"http_req_connecting":{"type":"trend","contains":"time","values":{"avg":0.00008606176,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.13}},"iteration_duration":{"contains":"time","values":{"avg":32.68692823099975,"min":11.015375,"med":31.6001455,"p(50)":31.6001455,"p(95)":51.13210244999998,"p(99)":67.98428134,"max":186.365583},"type":"trend"},"vus_max":{"type":"gauge","contains":"default","values":{"max":32,"value":32,"min":32}},"iterations":{"type":"counter","contains":"default","values":{"rate":978.4813996818064,"count":25000}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"p(95)":51.091660099999984,"p(99)":67.9330325,"max":186.301666,"avg":32.638462487359796,"min":10.97425,"med":31.551833000000002,"p(50)":31.551833000000002},"thresholds":{"max>=0":{"ok":true}}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":321920.3804953143}},"http_req_blocked":{"type":"trend","contains":"time","values":{"med":0.00075,"p(50)":0.00075,"p(95)":0.001417,"p(99)":0.00254101,"max":0.6865,"avg":0.0015596495599998542,"min":0.000416}},"checks":{"type":"rate","contains":"default","values":{"passes":25000,"fails":0,"rate":1}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":978.4813996818064}},"http_req_receiving":{"contains":"time","values":{"max":0.377625,"avg":0.012035221360000077,"min":0.003541,"med":0.0105,"p(50)":0.0105,"p(95)":0.024458,"p(99)":0.048334409999999994},"type":"trend"},"http_req_failed":{"contains":"default","values":{"rate":0,"passes":0,"fails":25000},"type":"rate"},"http_req_waiting":{"type":"trend","contains":"time","values":{"p(50)":31.5368335,"p(95)":51.07838779999998,"p(99)":67.91643176,"max":186.27,"avg":32.62290137712009,"min":10.95525,"med":31.5368335}},"http_req_duration":{"type":"trend","contains":"time","values":{"p(95)":51.091660099999984,"p(99)":67.9330325,"max":186.301666,"avg":32.638462487359796,"min":10.97425,"med":31.551833000000002,"p(50)":31.551833000000002}},"http_req_sending":{"type":"trend","contains":"time","values":{"p(50)":0.002833,"p(95)":0.006791,"p(99)":0.01470801,"max":1.62625,"avg":0.0035258888799998677,"min":0.001625,"med":0.002833}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":431510.2972596766}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-22.json b/evidence/bench/restore/raw/prefill-500k-22.json new file mode 100644 index 00000000..07df8e53 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-22.json @@ -0,0 +1 @@ +{"root_group":{"groups":[],"checks":[{"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000}],"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e"},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25476.711164},"metrics":{"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"http_req_sending":{"type":"trend","contains":"time","values":{"avg":0.003484488399999883,"min":0.001542,"med":0.002875,"p(50)":0.002875,"p(95)":0.006791,"p(99)":0.01329240999999999,"max":0.15625}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_duration{expected_response:true}":{"contains":"time","values":{"p(99)":62.23291558999999,"max":117.464125,"avg":32.5457614687601,"min":10.2775,"med":31.555895999999997,"p(50)":31.555895999999997,"p(95)":49.75822055},"thresholds":{"max>=0":{"ok":true}},"type":"trend"},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":981.2883554344479}},"http_req_waiting":{"type":"trend","contains":"time","values":{"max":117.442875,"avg":32.53011367308015,"min":10.26475,"med":31.5399785,"p(50)":31.5399785,"p(95)":49.73674229999999,"p(99)":62.21930258999999}},"data_received":{"values":{"rate":432748.16474659153,"count":11025000},"type":"counter","contains":"data"},"iteration_duration":{"type":"trend","contains":"time","values":{"max":118.215458,"avg":32.59363314383998,"min":10.318584,"med":31.6043125,"p(50)":31.6043125,"p(95)":49.806098199999994,"p(99)":62.28497766999999}},"http_req_tls_handshaking":{"values":{"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0},"type":"trend","contains":"time"},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"http_req_connecting":{"type":"trend","contains":"time","values":{"avg":0.00011015163999999999,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0,"max":0.221625}},"http_req_receiving":{"type":"trend","contains":"time","values":{"med":0.01075,"p(50)":0.01075,"p(95)":0.024417,"p(99)":0.047000419999999994,"max":0.27825,"avg":0.012163307280000073,"min":0.00375}},"data_sent":{"contains":"data","values":{"count":8225000,"rate":322843.86893793335},"type":"counter"},"iterations":{"type":"counter","contains":"default","values":{"rate":981.2883554344479,"count":25000}},"http_req_blocked":{"values":{"p(99)":0.002542,"max":0.945583,"avg":0.0016240069999998636,"min":0.000416,"med":0.00075,"p(50)":0.00075,"p(95)":0.001417},"type":"trend","contains":"time"},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_duration":{"type":"trend","contains":"time","values":{"p(99)":62.23291558999999,"max":117.464125,"avg":32.5457614687601,"min":10.2775,"med":31.555895999999997,"p(50)":31.555895999999997,"p(95)":49.75822055}}}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-23.json b/evidence/bench/restore/raw/prefill-500k-23.json new file mode 100644 index 00000000..8a43cfc9 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-23.json @@ -0,0 +1 @@ +{"metrics":{"http_req_duration":{"contains":"time","values":{"min":10.930916,"med":31.657979,"p(50)":31.657979,"p(95)":50.426958299999995,"p(99)":65.003935,"max":119.3695,"avg":32.62555685903966},"type":"trend"},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"max":0,"avg":0,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0}},"http_req_waiting":{"type":"trend","contains":"time","values":{"avg":32.60959448984013,"min":10.913959,"med":31.640271,"p(50)":31.640271,"p(95)":50.39773989999998,"p(99)":64.98243842,"max":119.3485}},"iterations":{"type":"counter","contains":"default","values":{"count":25000,"rate":978.8683963448784}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":322047.702397465}},"vus":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"avg":32.62555685903966,"min":10.930916,"med":31.657979,"p(50)":31.657979,"p(95)":50.426958299999995,"p(99)":65.003935,"max":119.3695},"thresholds":{"max>=0":{"ok":true}}},"vus_max":{"type":"gauge","contains":"default","values":{"value":32,"min":32,"max":32}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":978.8683963448784}},"http_req_sending":{"type":"trend","contains":"time","values":{"p(50)":0.002917,"p(95)":0.006833,"p(99)":0.01370841999999999,"max":0.146208,"avg":0.003559024599999907,"min":0.001583,"med":0.002917}},"http_req_receiving":{"type":"trend","contains":"time","values":{"min":0.003834,"med":0.010875,"p(50)":0.010875,"p(95)":0.024833,"p(99)":0.04841601,"max":0.50575,"avg":0.012403344600000005}},"iteration_duration":{"type":"trend","contains":"time","values":{"avg":32.67442039999994,"min":10.971125,"med":31.702583500000003,"p(50)":31.702583500000003,"p(95)":50.47691604999999,"p(99)":65.05356574,"max":120.053666}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(95)":0,"p(99)":0,"max":0.184792,"avg":0.00008189328000000002,"min":0,"med":0,"p(50)":0}},"http_req_blocked":{"type":"trend","contains":"time","values":{"med":0.00075,"p(50)":0.00075,"p(95)":0.001458,"p(99)":0.0025,"max":0.74975,"avg":0.0016125492399998438,"min":0.000416}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":25000}},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":431680.9627880914}}},"root_group":{"path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000}],"name":""},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25539.694706}} \ No newline at end of file diff --git a/evidence/bench/restore/raw/prefill-500k-24.json b/evidence/bench/restore/raw/prefill-500k-24.json new file mode 100644 index 00000000..9bb6e767 --- /dev/null +++ b/evidence/bench/restore/raw/prefill-500k-24.json @@ -0,0 +1 @@ +{"root_group":{"name":"","path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[{"fails":0,"name":"message 201","path":"::message 201","id":"6445aff337e1ade0bc10402fbac79882","passes":25000}]},"options":{"summaryTimeUnit":"","noColor":true,"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"]},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":25846.567373},"metrics":{"vus_max":{"type":"gauge","contains":"default","values":{"max":32,"value":32,"min":32}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0}},"http_req_sending":{"values":{"avg":0.0035195835599999047,"min":0.001542,"med":0.002958,"p(50)":0.002958,"p(95)":0.006708,"p(99)":0.012417,"max":0.152125},"type":"trend","contains":"time"},"http_req_duration{expected_response:true}":{"thresholds":{"max>=0":{"ok":true}},"type":"trend","contains":"time","values":{"p(99)":65.83254291,"max":139.208792,"avg":33.01910850244,"min":10.740917,"med":32.0244795,"p(50)":32.0244795,"p(95)":50.751716349999995}},"data_received":{"type":"counter","contains":"data","values":{"count":11025000,"rate":426555.67530089134}},"http_req_connecting":{"type":"trend","contains":"time","values":{"p(99)":0,"max":0.166791,"avg":0.00008819996000000001,"min":0,"med":0,"p(50)":0,"p(95)":0}},"http_req_receiving":{"type":"trend","contains":"time","values":{"p(50)":0.011,"p(95)":0.024958,"p(99)":0.0465,"max":0.310208,"avg":0.01239548328000019,"min":0.003667,"med":0.011}},"http_req_failed":{"type":"rate","contains":"default","values":{"passes":0,"fails":25000,"rate":0}},"http_req_duration":{"values":{"avg":33.01910850244,"min":10.740917,"med":32.0244795,"p(50)":32.0244795,"p(95)":50.751716349999995,"p(99)":65.83254291,"max":139.208792},"type":"trend","contains":"time"},"vus":{"values":{"value":32,"min":32,"max":32},"type":"gauge","contains":"default"},"checks":{"type":"rate","contains":"default","values":{"rate":1,"passes":25000,"fails":0}},"iteration_duration":{"type":"trend","contains":"time","values":{"p(50)":32.069833,"p(95)":50.8008622,"p(99)":65.87149675,"max":139.253625,"avg":33.067255302999804,"min":10.7875,"med":32.069833}},"http_req_waiting":{"type":"trend","contains":"time","values":{"max":139.199751,"avg":33.003193435599954,"min":10.727791,"med":32.0074375,"p(50)":32.0074375,"p(95)":50.742931299999995,"p(99)":65.8174375}},"data_sent":{"type":"counter","contains":"data","values":{"count":8225000,"rate":318224.0752244745}},"http_reqs":{"type":"counter","contains":"default","values":{"count":25000,"rate":967.2464292537219}},"iterations":{"values":{"count":25000,"rate":967.2464292537219},"type":"counter","contains":"default"},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(50)":0.00075,"p(95)":0.001458,"p(99)":0.002458,"max":0.600334,"avg":0.0014175901999999205,"min":0.000416,"med":0.00075}}}} \ No newline at end of file diff --git a/evidence/bench/restore/summary.md b/evidence/bench/restore/summary.md new file mode 100644 index 00000000..d1f3ae1a --- /dev/null +++ b/evidence/bench/restore/summary.md @@ -0,0 +1,181 @@ +# Нагрузочный замер: метка `restore` + +- Статус: **complete** +- Commit: `67cb4d7` +- Профиль `restore`: размеры 10k, 100k, 500k; клиенты ; повторов 0; чтение 0 с после 0 с прогрева; запись 0 после 0 +- Лимиты без swap: API 1 CPU / 2g, PostgreSQL 4 CPU / 3g, Valkey 2 CPU / 512m; значения — медиана (min–max) по повторам +- Посторонние контейнеры в VM во время замера: нет + +## Память и наполнение по размерам + +Объём `messages` — после `VACUUM (ANALYZE)`, до прогонов: в таблице N сообщений читаемого чата и сообщения фоновых чатов (`Сообщений`). + +| Размер | Сообщений | RSS API до, МиБ | RSS API после, МиБ | Байт RSS на сообщение | Таблица, МиБ | Индексы, МиБ | Байт в БД на сообщение | Наполнение, сообщ/с | Курсоров в пуле | Пик RSS за размер, МиБ | +|---|---|---|---|---|---|---|---|---|---|---| +| 10k | 110000 | 87.6 | 93.0 | 51 | 16.7 | 14.9 | 301 | 992 | 99 | 151.1 | +| 100k | 200000 | 87.6 | 93.9 | 33 | 30.1 | 27.5 | 302 | 995 | 999 | 151.1 | +| 500k | 600000 | 87.7 | 93.5 | 10 | 90.4 | 83.4 | 304 | 979 | 1000 | 151.1 | + +## Планы запроса истории + +Страница (`limit` профиля) читаемого чата и первого чата каждого фонового уровня. `app` — план запроса приложения (auto_explain). Остальное — тот же запрос с теми же параметрами в psql, в откатываемой транзакции: `psql` — индекс приложения, `generic` — он же с generic plan, `or-cursor` — условие курсора через OR, `no-index` — без индекса, дальше — варианты индекса профиля. Буферы — верхнего узла плана, файлы — `explain-<размер>.txt`. + +| Размер | Чат | Страница | После сообщений | Вариант | Узел | shared hit | read | Строк | Время, мс | План | +|---|---|---|---|---|---|---|---|---|---|---| +| 10k | read 10k | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 46 | 0 | 51 | 0.063 | custom | +| 10k | read 10k | middle | 5000 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 55 | 0 | 51 | 0.065 | generic | +| 10k | read 10k | middle | 5000 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 55 | 0 | 51 | 0.024 | custom | +| 10k | read 10k | middle | 5000 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 55 | 0 | 51 | 0.022 | generic | +| 10k | read 10k | middle | 5000 | or-cursor | Index Scan using ix_messages_chat_id_created_at_id on messages | 4973 | 0 | 51 | 0.715 | custom | +| 10k | read 10k | middle | 5000 | no-index | Seq Scan on messages | 2128 | 0 | 51 | 3.310 | custom | +| 10k | read 10k | middle | 5000 | chat_only | Bitmap Heap Scan on messages | 2031 | 0 | 51 | 1.438 | custom | +| 10k | read 10k | middle | 5000 | covering | Index Only Scan using bench_variant on messages | 5 | 0 | 51 | 0.013 | custom | +| 10k | read 10k | last | 9900 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 53 | 0 | 51 | 0.055 | generic | +| 10k | bg 5k | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 46 | 0 | 51 | 0.049 | custom | +| 10k | bg 5k | middle | 2500 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 50 | 0 | 51 | 0.051 | generic | +| 10k | bg 5k | middle | 2500 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 50 | 0 | 51 | 0.025 | custom | +| 10k | bg 5k | middle | 2500 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 50 | 0 | 51 | 0.025 | generic | +| 10k | bg 5k | middle | 2500 | or-cursor | Index Scan using ix_messages_chat_id_created_at_id on messages | 2431 | 0 | 51 | 0.360 | custom | +| 10k | bg 5k | middle | 2500 | no-index | Seq Scan on messages | 2128 | 0 | 51 | 2.936 | custom | +| 10k | bg 5k | middle | 2500 | chat_only | Bitmap Heap Scan on messages | 1867 | 0 | 51 | 0.903 | custom | +| 10k | bg 5k | middle | 2500 | covering | Index Only Scan using bench_variant on messages | 5 | 0 | 51 | 0.013 | custom | +| 10k | bg 5k | last | 4900 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 53 | 0 | 51 | 0.052 | generic | +| 10k | bg 400 | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 53 | 0 | 51 | 0.081 | custom | +| 10k | bg 400 | middle | 200 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 49 | 0 | 51 | 0.076 | generic | +| 10k | bg 400 | middle | 200 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 49 | 0 | 51 | 0.028 | custom | +| 10k | bg 400 | middle | 200 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 49 | 0 | 51 | 0.030 | generic | +| 10k | bg 400 | middle | 200 | or-cursor | Index Scan using ix_messages_chat_id_created_at_id on messages | 238 | 0 | 51 | 0.066 | custom | +| 10k | bg 400 | middle | 200 | no-index | Seq Scan on messages | 2128 | 0 | 51 | 2.595 | custom | +| 10k | bg 400 | middle | 200 | chat_only | Bitmap Heap Scan on messages | 365 | 0 | 51 | 0.158 | custom | +| 10k | bg 400 | middle | 200 | covering | Index Only Scan using bench_variant on messages | 5 | 0 | 51 | 0.020 | custom | +| 10k | bg 400 | last | 300 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.069 | generic | +| 10k | bg 10 | first | 0 | app | Bitmap Heap Scan on messages | 13 | 0 | 10 | 0.031 | custom | +| 10k | bg 10 | first | 0 | psql | Bitmap Heap Scan on messages | 13 | 0 | 10 | 0.020 | custom | +| 10k | bg 10 | first | 0 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 13 | 0 | 10 | 0.007 | generic | +| 10k | bg 10 | first | 0 | no-index | Seq Scan on messages | 2128 | 0 | 10 | 2.445 | custom | +| 10k | bg 10 | first | 0 | chat_only | Bitmap Heap Scan on messages | 12 | 0 | 10 | 0.019 | custom | +| 10k | bg 10 | first | 0 | covering | Index Only Scan using bench_variant on messages | 4 | 0 | 10 | 0.009 | custom | +| 100k | read 100k | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 24 | 0 | 51 | 0.043 | custom | +| 100k | read 100k | middle | 50000 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 50 | 0 | 51 | 0.059 | generic | +| 100k | read 100k | middle | 50000 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 50 | 0 | 51 | 0.032 | custom | +| 100k | read 100k | middle | 50000 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 50 | 0 | 51 | 0.030 | generic | +| 100k | read 100k | middle | 50000 | or-cursor | Index Scan using ix_messages_chat_id_created_at_id on messages | 50488 | 0 | 51 | 7.379 | custom | +| 100k | read 100k | middle | 50000 | no-index | Parallel Seq Scan on messages | 3882 | 0 | 51 | 6.795 | custom | +| 100k | read 100k | middle | 50000 | chat_only | Parallel Seq Scan on messages | 3882 | 0 | 51 | 5.659 | custom | +| 100k | read 100k | middle | 50000 | covering | Index Only Scan using bench_variant on messages | 5 | 0 | 51 | 0.019 | custom | +| 100k | read 100k | last | 99900 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.047 | generic | +| 100k | bg 5k | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 52 | 0 | 51 | 0.052 | custom | +| 100k | bg 5k | middle | 2500 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 52 | 0 | 51 | 0.055 | generic | +| 100k | bg 5k | middle | 2500 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 52 | 0 | 51 | 0.025 | custom | +| 100k | bg 5k | middle | 2500 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 52 | 0 | 51 | 0.026 | generic | +| 100k | bg 5k | middle | 2500 | or-cursor | Index Scan using ix_messages_chat_id_created_at_id on messages | 2430 | 0 | 51 | 0.416 | custom | +| 100k | bg 5k | middle | 2500 | no-index | Parallel Seq Scan on messages | 3882 | 0 | 51 | 5.168 | custom | +| 100k | bg 5k | middle | 2500 | chat_only | Bitmap Heap Scan on messages | 2825 | 0 | 51 | 1.289 | custom | +| 100k | bg 5k | middle | 2500 | covering | Index Only Scan using bench_variant on messages | 5 | 0 | 51 | 0.019 | custom | +| 100k | bg 5k | last | 4900 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 53 | 0 | 51 | 0.061 | generic | +| 100k | bg 400 | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 53 | 0 | 51 | 0.077 | custom | +| 100k | bg 400 | middle | 200 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.070 | generic | +| 100k | bg 400 | middle | 200 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.027 | custom | +| 100k | bg 400 | middle | 200 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.027 | generic | +| 100k | bg 400 | middle | 200 | or-cursor | Bitmap Heap Scan on messages | 201 | 0 | 51 | 0.124 | custom | +| 100k | bg 400 | middle | 200 | no-index | Parallel Seq Scan on messages | 3882 | 0 | 51 | 4.377 | custom | +| 100k | bg 400 | middle | 200 | chat_only | Index Scan using bench_variant on messages | 390 | 0 | 51 | 0.132 | custom | +| 100k | bg 400 | middle | 200 | covering | Index Only Scan using bench_variant on messages | 5 | 0 | 51 | 0.035 | custom | +| 100k | bg 400 | last | 300 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 53 | 0 | 51 | 0.068 | generic | +| 100k | bg 10 | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 13 | 0 | 10 | 0.022 | custom | +| 100k | bg 10 | first | 0 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 13 | 0 | 10 | 0.013 | custom | +| 100k | bg 10 | first | 0 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 13 | 0 | 10 | 0.016 | generic | +| 100k | bg 10 | first | 0 | no-index | Parallel Seq Scan on messages | 3852 | 0 | 10 | 4.210 | custom | +| 100k | bg 10 | first | 0 | chat_only | Index Scan using bench_variant on messages | 13 | 0 | 10 | 0.013 | custom | +| 100k | bg 10 | first | 0 | covering | Index Only Scan using bench_variant on messages | 4 | 0 | 10 | 0.009 | custom | +| 500k | read 500k | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 6 | 0 | 51 | 0.035 | custom | +| 500k | read 500k | middle | 250000 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.050 | custom | +| 500k | read 500k | middle | 250000 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.023 | custom | +| 500k | read 500k | middle | 250000 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.027 | generic | +| 500k | read 500k | middle | 250000 | or-cursor | Index Scan using ix_messages_chat_id_created_at_id on messages | 252418 | 0 | 51 | 36.126 | custom | +| 500k | read 500k | middle | 250000 | no-index | Parallel Seq Scan on messages | 11589 | 0 | 51 | 16.862 | custom | +| 500k | read 500k | middle | 250000 | chat_only | Parallel Seq Scan on messages | 11589 | 0 | 51 | 16.230 | custom | +| 500k | read 500k | middle | 250000 | covering | Index Only Scan using bench_variant on messages | 5 | 0 | 51 | 0.021 | custom | +| 500k | read 500k | last | 499500 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.045 | custom | +| 500k | bg 5k | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 51 | 0 | 51 | 0.071 | custom | +| 500k | bg 5k | middle | 2500 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 51 | 0 | 51 | 0.058 | custom | +| 500k | bg 5k | middle | 2500 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 51 | 0 | 51 | 0.027 | custom | +| 500k | bg 5k | middle | 2500 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 51 | 0 | 51 | 0.030 | generic | +| 500k | bg 5k | middle | 2500 | or-cursor | Index Scan using ix_messages_chat_id_created_at_id on messages | 2448 | 0 | 51 | 0.506 | custom | +| 500k | bg 5k | middle | 2500 | no-index | Parallel Seq Scan on messages | 11589 | 0 | 51 | 10.282 | custom | +| 500k | bg 5k | middle | 2500 | chat_only | Index Scan using bench_variant on messages | 4168 | 0 | 51 | 1.345 | custom | +| 500k | bg 5k | middle | 2500 | covering | Index Only Scan using bench_variant on messages | 5 | 0 | 51 | 0.021 | custom | +| 500k | bg 5k | last | 4900 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 52 | 0 | 51 | 0.065 | custom | +| 500k | bg 400 | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 54 | 0 | 51 | 0.066 | custom | +| 500k | bg 400 | middle | 200 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 55 | 0 | 51 | 0.067 | custom | +| 500k | bg 400 | middle | 200 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 55 | 0 | 51 | 0.032 | custom | +| 500k | bg 400 | middle | 200 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 55 | 0 | 51 | 0.030 | generic | +| 500k | bg 400 | middle | 200 | or-cursor | Bitmap Heap Scan on messages | 208 | 0 | 51 | 0.118 | custom | +| 500k | bg 400 | middle | 200 | no-index | Parallel Seq Scan on messages | 11589 | 0 | 51 | 9.445 | custom | +| 500k | bg 400 | middle | 200 | chat_only | Index Scan using bench_variant on messages | 403 | 0 | 51 | 0.134 | custom | +| 500k | bg 400 | middle | 200 | covering | Index Only Scan using bench_variant on messages | 5 | 0 | 51 | 0.018 | custom | +| 500k | bg 400 | last | 300 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 55 | 0 | 51 | 0.079 | custom | +| 500k | bg 10 | first | 0 | app | Index Scan using ix_messages_chat_id_created_at_id on messages | 13 | 0 | 10 | 0.023 | custom | +| 500k | bg 10 | first | 0 | psql | Index Scan using ix_messages_chat_id_created_at_id on messages | 13 | 0 | 10 | 0.012 | custom | +| 500k | bg 10 | first | 0 | generic | Index Scan using ix_messages_chat_id_created_at_id on messages | 13 | 0 | 10 | 0.015 | generic | +| 500k | bg 10 | first | 0 | no-index | Parallel Seq Scan on messages | 11649 | 0 | 10 | 9.766 | custom | +| 500k | bg 10 | first | 0 | chat_only | Index Scan using bench_variant on messages | 13 | 0 | 10 | 0.013 | custom | +| 500k | bg 10 | first | 0 | covering | Index Only Scan using bench_variant on messages | 4 | 0 | 10 | 0.008 | custom | + +## Стоимость записи по вариантам индекса + +Вставка порции сообщений во все чаты в пропорции наполнения одной командой, в транзакции, которая откатывается; индекс истории построен заново, перед вставкой `CHECKPOINT`. Значения — медиана (min–max) повторов. «4000 символов» — вставка сообщения максимальной длины из несжимаемого текста. + +| Размер | Вариант | Строк вставки | Индекс, МиБ | Байт индекса на сообщение | мкс на сообщение | WAL байт на сообщение | FPI на 1000 | 4000 символов | +|---|---|---|---|---|---|---|---|---| +| 10k | app | 20000 | 6.2 | 59.1 | 5.67 (5.56–5.76) | 661 (660–666) | 44.3 (42.5–44.4) | ok | +| 10k | chat_only | 20000 | 0.8 | 7.6 | 5.18 (5.16–5.28) | 526 (526–526) | 35.0 (34.8–35.2) | ok | +| 10k | covering | 20000 | 16.7 | 158.8 | 6.12 (5.91–6.82) | 912 (912–913) | 51.0 (50.9–51.1) | index row requires 12072 bytes, maximum size is 8191 | +| 10k | none | 20000 | 0.0 | 0.0 | 4.61 (4.53–4.68) | 418 (417–418) | 31.4 (31.2–31.6) | ok | +| 100k | app | 20000 | 11.2 | 59.0 | 5.80 (5.77–5.87) | 791 (791–810) | 70.7 (64.3–70.8) | ok | +| 100k | chat_only | 20000 | 1.4 | 7.4 | 5.30 (5.22–5.30) | 645 (644–646) | 61.0 (60.4–61.4) | ok | +| 100k | covering | 20000 | 30.3 | 158.7 | 5.96 (5.95–6.23) | 1005 (1005–1005) | 75.7 (75.3–76.0) | index row requires 12072 bytes, maximum size is 8191 | +| 100k | none | 20000 | 0.0 | 0.0 | 4.79 (4.72–4.93) | 545 (545–546) | 58.1 (57.8–58.3) | ok | +| 500k | app | 20000 | 33.7 | 58.9 | 6.35 (6.25–6.73) | 1306 (1305–1327) | 166.4 (158.2–166.4) | ok | +| 500k | chat_only | 20000 | 4.1 | 7.2 | 6.01 (5.80–6.10) | 1219 (1218–1225) | 162.9 (160.9–164.2) | ok | +| 500k | covering | 20000 | 90.7 | 158.6 | 6.46 (6.45–6.86) | 1536 (1534–1539) | 171.1 (170.0–171.6) | index row requires 12072 bytes, maximum size is 8191 | +| 500k | none | 20000 | 0.0 | 0.0 | 5.08 (5.06–5.32) | 1117 (1116–1118) | 159.8 (158.9–160.0) | ok | + +## Backup и восстановление + +`pg_dump -Fc` исходной базы во время записи через HTTP, затем активность после backup (пользователь, сессия, чат, сообщение), `pg_restore -j` в новый контейнер PostgreSQL на новом volume, `ANALYZE`, сверка обеих баз (число строк, md5 каждого сообщения, индексы, ревизия схемы), переключение API и проверки через HTTP до и после `FLUSHALL`. RTO — от запуска нового хранилища до готовности API, без сверки. Сверка прошла на каждом размере: иначе команда завершилась бы ошибкой. + +| Размер | До backup | Исходная в конце | Восстановлено | Потеряно | Записей во время backup (в backup) | Backup, МиБ | Байт backup на сообщение | dump, с | restore, с | ANALYZE, с | API, с | RTO, с | Сверка, с | Чат после backup: GET / POST до FLUSHALL, GET после | Сессия после backup | +|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| 10k | 110000 | 115001 | 110132 | 4869 | 5000 (132) | 4.5 | 42.6 | 0.32 | 0.3 | 0.14 | 1.55 | 2.9 | 0.51 | 200 / 500, 404 | 401 | +| 100k | 200000 | 205001 | 200144 | 4857 | 5000 (144) | 7.5 | 39.5 | 0.5 | 0.5 | 0.15 | 2.27 | 3.88 | 0.72 | 200 / 500, 404 | 401 | +| 500k | 600000 | 605001 | 600158 | 4843 | 5000 (158) | 21.0 | 36.6 | 1.3 | 1.43 | 0.17 | 2.12 | 4.76 | 1.74 | 200 / 500, 404 | 401 | + +## Кривая наполнения 500k: запись при росте хранилища, 32 клиента + +| Порция | Сообщений после | RPS | p50, мс | p95, мс | p99, мс | max, мс | CPU API, ядер | CPU БД, ядер | RSS, МиБ | Пометки | +|---|---|---|---|---|---|---|---|---|---|---| +| 1 | 25000 | 966 | 32.087 | 48.601 | 60.638 | 226.512 | 1.0 | 0.196 | 91.6 | — | +| 2 | 50000 | 964 | 32.229 | 49.003 | 61.449 | 106.153 | 0.999 | 0.197 | 91.6 | — | +| 3 | 75000 | 975 | 31.861 | 49.2 | 62.392 | 131.124 | 0.999 | 0.197 | 93.5 | — | +| 4 | 100000 | 984 | 31.467 | 48.771 | 61.275 | 138.494 | 0.999 | 0.202 | 93.5 | — | +| 5 | 125000 | 986 | 31.351 | 49.7 | 64.813 | 136.929 | 0.999 | 0.198 | 93.5 | — | +| 6 | 150000 | 992 | 31.269 | 48.913 | 60.63 | 125.494 | 0.998 | 0.202 | 93.5 | — | +| 7 | 175000 | 981 | 31.573 | 50.34 | 65.576 | 117.396 | 1.0 | 0.202 | 93.5 | — | +| 8 | 200000 | 980 | 31.597 | 49.362 | 62.299 | 123.807 | 1.0 | 0.201 | 93.5 | — | +| 9 | 225000 | 982 | 31.631 | 49.367 | 62.181 | 116.696 | 1.0 | 0.199 | 93.5 | — | +| 10 | 250000 | 972 | 31.989 | 49.642 | 62.341 | 115.707 | 0.999 | 0.203 | 93.5 | — | +| 11 | 275000 | 980 | 31.757 | 47.924 | 59.047 | 118.424 | 0.999 | 0.199 | 93.5 | — | +| 12 | 300000 | 980 | 31.738 | 49.39 | 61.324 | 117.2 | 0.999 | 0.199 | 93.5 | — | +| 13 | 325000 | 981 | 31.607 | 49.551 | 64.119 | 121.885 | 0.999 | 0.202 | 93.5 | — | +| 14 | 350000 | 977 | 31.869 | 49.537 | 63.452 | 134.916 | 1.0 | 0.2 | 93.5 | — | +| 15 | 375000 | 974 | 31.854 | 49.588 | 62.773 | 120.791 | 0.999 | 0.204 | 93.5 | — | +| 16 | 400000 | 983 | 31.518 | 49.032 | 61.564 | 121.115 | 0.999 | 0.201 | 93.5 | — | +| 17 | 425000 | 978 | 31.632 | 49.717 | 64.356 | 118.422 | 0.999 | 0.205 | 93.5 | — | +| 18 | 450000 | 979 | 31.694 | 49.71 | 63.337 | 125.742 | 1.0 | 0.2 | 93.5 | — | +| 19 | 475000 | 986 | 31.511 | 49.773 | 62.739 | 127.729 | 1.0 | 0.199 | 93.5 | — | +| 20 | 500000 | 979 | 31.624 | 50.995 | 66.098 | 141.822 | 0.998 | 0.204 | 93.5 | — | +| 21 | 525000 | 978 | 31.552 | 51.092 | 67.933 | 186.302 | 0.998 | 0.2 | 93.5 | — | +| 22 | 550000 | 981 | 31.556 | 49.758 | 62.233 | 117.464 | 1.0 | 0.204 | 93.5 | — | +| 23 | 575000 | 979 | 31.658 | 50.427 | 65.004 | 119.37 | 1.0 | 0.201 | 93.5 | — | +| 24 | 600000 | 967 | 32.024 | 50.752 | 65.833 | 139.209 | 0.998 | 0.203 | 93.5 | — | diff --git a/openspec/changes/track2-backup-restore/tasks.md b/openspec/changes/track2-backup-restore/tasks.md index 412c9ffe..d3511668 100644 --- a/openspec/changes/track2-backup-restore/tasks.md +++ b/openspec/changes/track2-backup-restore/tasks.md @@ -79,12 +79,12 @@ ## 5. Замер и отчёт -- [ ] 5.1 Записать в `REPORT.md` гипотезы R1–R5 (решение 8) до замера +- [x] 5.1 Записать в `REPORT.md` гипотезы R1–R5 (решение 8) до замера и закоммитить (`docs: record track 2 backup and restore hypotheses`). -- [ ] 5.2 Подготовить хост и запустить `make bench_restore`. Проверка: +- [x] 5.2 Подготовить хост и запустить `make bench_restore`. Проверка: - код 0, `status: complete`, `dirty: false`, без `host_warnings`; - сверка прошла на 10k, 100k и 500k. -- [ ] 5.3 Закоммитить `evidence/bench/restore/` (`docs: add track 2 +- [x] 5.3 Закоммитить `evidence/bench/restore/` (`docs: add track 2 backup and restore evidence`). - [ ] 5.4 `REPORT.md`, трек 2, часть 2: - процедура восстановления по шагам, включая `FLUSHALL`;