Skip to content

Commit

Permalink
Add benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
kovmir committed Jan 27, 2024
1 parent 572fa77 commit 5c31d14
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pg_show_plans.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5c31d14

Please sign in to comment.