From 5c31d1469207a41ddfaca8a55994d1912affd672 Mon Sep 17 00:00:00 2001 From: Ivan Kovmir Date: Sat, 27 Jan 2024 11:08:27 +0100 Subject: [PATCH] Add benchmarks --- README.md | 19 +++++++++++++++++++ pg_show_plans.c | 1 + 2 files changed, 20 insertions(+) diff --git a/README.md b/README.md index b267dca..f54d380 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,25 @@ query | ``` +# BENCHMARKS + +`pgbench -c 10 -j 3 -t 5000 -S` plain PostgreSQL `16.1`: + +``` +tps = 193655.084802 (without initial connection time) +tps = 200890.346014 (without initial connection time) +tps = 199931.223659 (without initial connection time) +``` + +`pgbench -c 10 -j 3 -t 5000 -S` PostgreSQL `16.1` with `pg_show_plans` version +2.1.0: + +``` +tps = 166564.507102 (without initial connection time) +tps = 172814.245424 (without initial connection time) +tps = 174658.455390 (without initial connection time) +``` + # REFERENCE ## GUC Variables diff --git a/pg_show_plans.c b/pg_show_plans.c index 066c0da..3912929 100644 --- a/pg_show_plans.c +++ b/pg_show_plans.c @@ -464,6 +464,7 @@ pgsp_ExecutorStart(QueryDesc *queryDesc, int eflags) es = NewExplainState(); es->format = pgsp->plan_format; + es->costs = false; ExplainBeginOutput(es); ExplainPrintPlan(es, queryDesc); ExplainEndOutput(es);