pg.ddx.io  pgdogdev/pgdog GitHub issues and pull requests  
help / color / mirror / Atom feed
From: github-actions[bot] (bot) (@github-actions[bot]) <noreply+github-actions[bot]@github.com>
To: pgdogdev/pgdog <noreply+pgdogdev-pgdog@github.com>
Subject: Re: [pgdogdev/pgdog] PR #2069: refactor(frontend): carry comment spans on ClientRequest
Date: Thu, 19 Nov 2026 11:45:14 +0000
Message-ID: <gh-pgdogdev-pgdog-2069-c7008145208@github.com> (raw)
In-Reply-To: <gh-pgdogdev-pgdog-2069@github.com>
References: <gh-pgdogdev-pgdog-2069@github.com>

<!-- metal-bench -->

**Metal bench (arm64) failed.** 48 of 520 measures outside bounds.

| suite | throughput | cpu/txn | user cycles/txn | user instr/txn | kernel cycles/txn | kernel instr/txn | ctx/txn |
|---|---|---|---|---|---|---|---|
| pooler |  | 18.94 (+0.2% ± 1.7%) | 17,871 (-0.7% ± 1.1%) | 31,448 (+0.1% ± 0.1%) | 30,615 (+1.0% ± 2.6%) | 51,158 (+0.3% ± 0.4%) |  |
| lb |  | 19.48 (-0.2% ± 1.3%) | 18,604 (+0.1% ± 0.7%) | 32,362 (+0.1% ± 0.03%) | 31,022 (-0.3% ± 2.1%) | 52,216 (+0.0% ± 0.4%) |  |
| sharding-w2 |  | 33.8 (+2.0% ± 1.0%) | 45,537 (+1.6% ± 1.0%) | 94,918 (+0.0% ± 0.01%) | 42,459 (+2.0% ± 2.0%) | 53,756 (-0.0% ± 0.08%) | 1.54 (-0.1% ± 0.6%) |
| sharding-w8 | 234,538 (-1.4% ± 0.8%) | 30.71 (+1.3% ± 0.8%) | 45,708 (+0.6% ± 1.6%) | 50,541 (+0.1% ± 0.2%) | 39,190 (+2.0% ± 0.7%) | 42,397 (+0.1% ± 0.09%) | 0.1595 (+0.4% ± 3.0%) |

<details><summary>Counters per txn</summary>

| suite | frontend stall | l1i refill | backend stall |
|---|---|---|---|
| pooler | 7,520 (-1.9% ± 3.1%) | 2,669 (-1.2% ± 1.4%) |  |
| lb | 8,023 (+0.3% ± 1.6%) | 2,743 (-0.2% ± 0.7%) |  |
| sharding-w2 | 20,584 (+3.4% ± 3.1%) | 4,529 (+2.6% ± 1.6%) |  |
| sharding-w8 | 22,986 (+3.3% ± 2.9%) | 4,532 (+3.0% ± 1.8%) |  |
</details>

| benchmark | measure | result | baseline | change | bound |
|---|---|---|---|---|---|
| extended_cached::aggregate | instructions | 17,601 | 17,395 | **+1.18% ± 0.00%** | +1% |
| extended_cached::insert_split | alloc_bytes | 7,026 | 6,834 | **+2.81% ± 0.00%** | +1% |
| extended_cold::insert_split | alloc_bytes | 9,362 | 9,170 | **+2.09% ± 0.00%** | +1% |
| extended_evicting::insert_split | alloc_bytes | 9,242 | 9,050 | **+2.12% ± 0.00%** | +1% |
| full_extended_cached::cte | alloc_bytes | 7,447 | 7,351 | **+1.31% ± 0.00%** | +1% |
| full_extended_cached::delete_all_shards | alloc_bytes | 12,960 | 12,820 | **+1.09% ± 0.00%** | +1% |
| full_extended_cached::delete_by_key | alloc_bytes | 6,374 | 6,278 | **+1.53% ± 0.00%** | +1% |
| full_extended_cached::insert | alloc_bytes | 6,328 | 6,232 | **+1.54% ± 0.00%** | +1% |
| full_extended_cached::insert_returning | alloc_bytes | 6,394 | 6,298 | **+1.52% ± 0.00%** | +1% |
| full_extended_cached::insert_split | alloc_bytes | 15,610 | 15,270 | **+2.23% ± 0.00%** | +1% |
| full_extended_cached::insert_split | instructions | 97,028 | 94,408 | **+2.78% ± 0.00%** | +1% |
| full_extended_cached::join | alloc_bytes | 7,853 | 7,757 | **+1.24% ± 0.00%** | +1% |
| full_extended_cached::lookup | alloc_bytes | 7,155 | 7,059 | **+1.36% ± 0.00%** | +1% |
| full_extended_cached::select_by_key | alloc_bytes | 7,123 | 7,027 | **+1.37% ± 0.00%** | +1% |
| full_extended_cached::select_omni | alloc_bytes | 6,603 | 6,507 | **+1.48% ± 0.00%** | +1% |
| full_extended_cached::update_all_shards | alloc_bytes | 13,000 | 12,860 | **+1.09% ± 0.00%** | +1% |
| full_extended_cached::update_by_key | alloc_bytes | 6,396 | 6,300 | **+1.52% ± 0.00%** | +1% |
| full_named_cached::aggregate | instructions | 136,185 | 134,369 | **+1.35% ± 0.00%** | +1% |
| full_named_cached::cte | alloc_bytes | 7,324 | 7,228 | **+1.33% ± 0.00%** | +1% |
| full_named_cached::delete_all_shards | alloc_bytes | 12,840 | 12,700 | **+1.10% ± 0.00%** | +1% |
| full_named_cached::delete_by_key | alloc_bytes | 6,281 | 6,185 | **+1.55% ± 0.00%** | +1% |
| full_named_cached::insert | alloc_bytes | 6,221 | 6,125 | **+1.57% ± 0.00%** | +1% |
| full_named_cached::insert_returning | alloc_bytes | 6,274 | 6,178 | **+1.55% ± 0.00%** | +1% |
| full_named_cached::insert_split | alloc_bytes | 14,980 | 14,650 | **+2.25% ± 0.00%** | +1% |
| full_named_cached::join | alloc_bytes | 7,720 | 7,624 | **+1.26% ± 0.00%** | +1% |
| full_named_cached::lookup | alloc_bytes | 7,045 | 6,949 | **+1.38% ± 0.00%** | +1% |
| full_named_cached::select_all_shards | alloc_bytes | 14,220 | 14,070 | **+1.07% ± 0.00%** | +1% |
| full_named_cached::select_by_key | alloc_bytes | 7,029 | 6,933 | **+1.38% ± 0.00%** | +1% |
| full_named_cached::select_omni | alloc_bytes | 6,517 | 6,421 | **+1.50% ± 0.00%** | +1% |
| full_named_cached::update_all_shards | alloc_bytes | 12,860 | 12,720 | **+1.10% ± 0.00%** | +1% |
| full_named_cached::update_by_key | alloc_bytes | 6,293 | 6,197 | **+1.55% ± 0.00%** | +1% |
| full_simple::cte | alloc_bytes | 7,486 | 7,390 | **+1.30% ± 0.00%** | +1% |
| full_simple::delete_all_shards | alloc_bytes | 12,010 | 11,870 | **+1.18% ± 0.00%** | +1% |
| full_simple::delete_by_key | alloc_bytes | 6,361 | 6,265 | **+1.53% ± 0.00%** | +1% |
| full_simple::insert | alloc_bytes | 6,747 | 6,651 | **+1.44% ± 0.00%** | +1% |
| full_simple::insert_returning | alloc_bytes | 6,879 | 6,783 | **+1.42% ± 0.00%** | +1% |
| full_simple::insert_split | alloc_bytes | 15,770 | 15,430 | **+2.20% ± 0.00%** | +1% |
| full_simple::join | alloc_bytes | 7,897 | 7,801 | **+1.23% ± 0.00%** | +1% |
| full_simple::select_all_shards | alloc_bytes | 13,440 | 13,300 | **+1.05% ± 0.00%** | +1% |
| full_simple::select_by_key | alloc_bytes | 7,166 | 7,070 | **+1.36% ± 0.00%** | +1% |

Microbench: 459 of 507 measures within bounds. See verdict.json for the rest.

<details><summary>Microbench latency: 2 benches changed more than 3%</summary>

| benchmark | latency | baseline | change | instructions change |
|---|---|---|---|---|
| extended_cached::select_by_key | 2,202 ns | 2,122 ns | +3.77% ± 0.35% | +0.19% ± 0.00% |
| extended_cached::subquery | 2,326 ns | 2,248 ns | +3.50% ± 0.36% | +0.16% ± 0.00% |
</details>

<details><summary>Hot code per txn</summary>

| path | base | head | change |
|---|---|---|---|
| pooler | 113.4 KB | 113.8 KB | **+0.4 KB** |
| sharding-w2 | 169.2 KB | 168.7 KB | **-0.6 KB** |

pooler:

| crate | base | head | change |
|---|---|---|---|
| pgdog::frontend::client::query_engine | 20.1 KB | 20.6 KB | +0.4 KB |
| tokio | 18.5 KB | 18.3 KB | -0.2 KB |
| pgdog::backend::pool | 17.8 KB | 17.6 KB | -0.2 KB |
| aws-lc (TLS crypto) | 10.2 KB | 10.3 KB | +0.1 KB |
| rustls (TLS) | 8.3 KB | 8.3 KB | +0.0 KB |
| pgdog::frontend (other) | 7.9 KB | 7.9 KB | +0.0 KB |
| pgdog::backend::server | 7.8 KB | 7.6 KB | -0.1 KB |
| other | 5.9 KB | 6.1 KB | +0.2 KB |
| everything else | 16.9 KB | 17.1 KB | +0.2 KB |

| function | head | change |
|---|---|---|
| `pgdog::frontend::client::Client::run::{{closure}}` | 5.5 KB | -0.1 KB |
| `pgdog::frontend::client::query_engine::query::<impl pgdog::frontend::client::query_engine:` | 5.4 KB | +0.1 KB |
| `pgdog::frontend::client::query_engine::QueryEngine::handle::{{closure}}` | 4.4 KB | +0.4 KB |
| `pgdog::frontend::client::query_engine::query::<impl pgdog::frontend::client::query_engine:` | 3.4 KB | +0.1 KB |
| `tokio::runtime::task::raw::poll` | 3.2 KB | +0.0 KB |

sharding-w2:

| crate | base | head | change |
|---|---|---|---|
| pgdog::frontend::router | 29.4 KB | 29.4 KB | +0.0 KB |
| pgdog::frontend::client::query_engine | 21.6 KB | 21.8 KB | +0.2 KB |
| tokio | 18.4 KB | 18.8 KB | +0.4 KB |
| pgdog::backend::pool | 18.5 KB | 18.3 KB | -0.2 KB |
| aws-lc (TLS crypto) | 13.1 KB | 13.1 KB | +0.0 KB |
| other | 10.4 KB | 10.1 KB | -0.3 KB |
| pgdog::frontend (other) | 9.0 KB | 8.9 KB | -0.1 KB |
| rustls (TLS) | 8.3 KB | 8.3 KB | +0.0 KB |
| everything else | 40.6 KB | 40.1 KB | -0.6 KB |

| function | head | change |
|---|---|---|
| `pgdog::frontend::client::Client::run::{{closure}}` | 6.3 KB | -0.1 KB |
| `pgdog::frontend::client::query_engine::query::<impl pgdog::frontend::client::query_engine:` | 5.2 KB | +0.1 KB |
| `pgdog::frontend::client::query_engine::QueryEngine::handle::{{closure}}` | 4.1 KB | +0.1 KB |
| `pgdog::frontend::client::query_engine::query::<impl pgdog::frontend::client::query_engine:` | 3.4 KB | +0.0 KB |
| `tokio::runtime::task::raw::poll` | 3.3 KB | +0.2 KB |

</details>

<details><summary>lb flamegraph vs 73a9197f</summary>

![lb](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...) for hover, zoom and search.

![lb removed](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...).
</details>
<details><summary>microbench flamegraph vs 73a9197f</summary>

![microbench](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...) for hover, zoom and search.

![microbench removed](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...).
</details>
<details><summary>pooler flamegraph vs 73a9197f</summary>

![pooler](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...) for hover, zoom and search.

![pooler removed](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...).
</details>
<details><summary>sharding-w2 flamegraph vs 73a9197f</summary>

![sharding-w2](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...) for hover, zoom and search.

![sharding-w2 removed](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...).
</details>
<details><summary>sharding-w8 flamegraph vs 73a9197f</summary>

![sharding-w8](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...) for hover, zoom and search.

![sharding-w8 removed](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...)

[Open interactive](https://pgdog-metal-bench.s3.amazonaws.com/results/murex-request-comment-spans/44f1616133f192301e66d...).
</details>

<details><summary>Logs</summary>

[lb](https://s3.console.aws.amazon.com/s3/object/pgdog-metal-bench?prefix=results/murex-request-comment-s...), [microbench](https://s3.console.aws.amazon.com/s3/object/pgdog-metal-bench?prefix=results/murex-request-comment-s...), [pooler](https://s3.console.aws.amazon.com/s3/object/pgdog-metal-bench?prefix=results/murex-request-comment-s...), [sharding-w2](https://s3.console.aws.amazon.com/s3/object/pgdog-metal-bench?prefix=results/murex-request-comment-s...), [sharding-w8](https://s3.console.aws.amazon.com/s3/object/pgdog-metal-bench?prefix=results/murex-request-comment-s...), [verdict.json](https://s3.console.aws.amazon.com/s3/object/pgdog-metal-bench?prefix=results/murex-request-comment-s...)
</details>

Compared 44f16161 with 73a9197f on m8g.metal-24xl (spot).


view thread (6+ messages)  latest in thread

Message-ID: <gh-pgdogdev-pgdog-2069-c7008145208@github.com>
Permalink:  ../gh-pgdogdev-pgdog-2069-c7008145208@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox