Skip to content

[4.2-dev] Fix ordered ODKU key ownership and action semantics on 4.2 - #31979

Merged
XuPeng-SH merged 10 commits into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/odku-4.2-systematic
Dec 1, 2026
Merged

XuPeng-SH merged 10 commits into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/odku-4.2-systematic

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • BUG
  • Improvement
  • Documentation
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes

Fixes #31956, fixes #31961, fixes #31962. Adds scalar ENUM coverage for #31958 and retains the resolved-row locking fix from #31957 for #31955 and #31959.

Problem and design

Inputs in one INSERT ... ON DUPLICATE KEY UPDATE can reach the same row through different UNIQUE indexes or through a key inserted or moved earlier in the statement. Resolving every action from the initial snapshot loses updates or raises false duplicate errors.

  • PreInsertUnique owns ordered row images, physical PK/UNIQUE claims, and typed SQL no-op checks. The planner binds assignments and key encodings. The compiler validates the coordinator owner before starting producers and publishes logical affected rows after writer success.

  • Immutable keys use the snapshot join. Generated-key moves use the engine's statement view of stored and workspace rows, including partitions. Failure rolls back the statement and retry starts with fresh state.

  • Retires the unreachable legacy ODKU rewrite, redundant plan marker and scratch images, and unused HashBuild copy/cleanup paths. Compiler preflight finds the owner in its validation pass.

  • The action owner validates the inserted row or the fully assigned duplicate row. A later input sees evaluated values, including signed zero and JSON representations. A standalone payload-only no-op reports zero affected rows and leaves the stored image intact. The physical-key index follows actual moves even when the SQL affected count is zero.

  • Insert-only output keeps old-image columns as constant NULL vectors. Each append sets their length from the cumulative batch row count. This fixes the valid 60,000-row wide-table upsert that previously failed at the downstream writer with error 20301.

Design and acceptance criteria

Validation

Rebased on 4.2-dev@95679da6cf. The rebase retains the release timeout classifier, both wire fields and final-row CHECK behavior. The feature head is a76c71369e.

  • Red/green through the MySQL frontend. The old output length calculation failed with invalid vector window; the corrected owner returned 60,000 affected rows, 60,000 stored rows and the expected payload sum. The operator regression also reproduced the mismatch of 7,371 batch rows and a 1,421-entry old-image column.
  • Embedded public SQL exercises [Bug]: ODKU on a fake-PK table rejects conflicts on later UNIQUE keys (v4.2.6) #31956, [Bug]: v4.2.6 multi-row ODKU drops later updates when different UNIQUE keys reach the same row #31961 and [Bug]: v4.2.6 multi-row ODKU rejects conflicts with earlier rows in the same batch #31962, repeated assignments and generated keys, statement rollback on a later CHECK or writer memory error, and competing connections. A dedicated test under the race detector verifies that a signed-zero key move reports zero affected rows, frees the old key and preserves the moved owner through a forced-index read.
  • Six repository BVT fixtures passed all 1,264 checked statements. They cover CHECK and generated columns, historical and modern duplicate handling, nullable defaults and cast errors.
  • Five affected owner packages passed their CI-short race suites on this rebase. Reordered inputs, signed-zero key movement and the upstream query-timeout cases passed under race. Seven affected packages passed configured static analysis. The previous integration had also passed its broader 37-package race run and repository-wide static analysis.

Current performance

The previous PR revision showed a 9.73% p50 slowdown for 8,192 existing-PK updates. The updated owner batches column copies for independent snapshot rows. Repeated targets and general expressions retain ordered scalar evaluation.

Public MySQL workload Release p50 Updated PR p50 Median change Release p95 Updated PR p95 Release / PR median spread
Update 8,192 existing primary keys 46.74 ms 42.93 ms -8.14% 119.71 ms 114.24 ms 1.16% / 0.81%
Ordinary INSERT of 8,192 rows 67.86 ms 68.57 ms +1.06% 102.20 ms 90.25 ms 1.90% / 1.35%

This release comparison used 322 verified MySQL executions per version per workload in 336 time blocks. In the separate three-version diagnostic the existing-PK p50 was 49.37 ms on release, 54.58 ms on the previous PR and 45.91 ms on the updated PR. Previous-PR process spread was 6.48%. Full-matrix release qualification remains open. Measurements, variation and raw samples · Previous comparison

Earlier Linux comparison on 0e4db02ddd and 9085200685

Linux amd64, Go 1.26.4, three in-process CNs, identical native libraries and the same public MySQL benchmark. Each version verifies the final rows after each untimed setup and timed execution. Each comparison used base, candidate, candidate, base process order and three warmups per workload per process. Times are in milliseconds. Spread is the difference between the two process medians divided by the smaller median. Peak RSS across the full-sweep processes was 1.47 GiB for the base and 1.40 GiB for the candidate.

The initial 15-workload sweep produced 14 measured executions per workload per version. Fourteen workloads exceeded their same-version spread limit. The 512-byte insert was the one workload meeting precision, and its p50 was 13.6% above base. A focused repeat with CPU profiles and 42 measurements per version gave 91.37 → 92.86 ms (+1.6%) for the same workload. Its p95 increased from 738 to 1,439 ms. Empty-table PK inserts also met the focused p50 and spread budgets. The complete performance acceptance remains open, including tail behavior.

Focused workload Base p50 PR p50 Change Base p95 PR p95 Base spread PR spread
varlen512_insert_8192 91.37 92.86 +1.6% 737.85 1438.74 3.60% 0.41%
pk_bulk_insert_8192 29.39 31.73 +8.0% 31.92 34.11 1.39% 3.51%
pk_bulk_existing_8192 51.04 47.31 -7.3% 774.29 1478.62 10.59% 3.36%
single_noop 1.00 1.03 +2.9% 1.31 1.41 6.31% 6.13%
ordinary_bulk_insert_8192 73.72 71.76 -2.7% 1336.95 814.53 7.13% 1.77%

The generated-unique workload passed its forced-index oracle at a standalone candidate p50 of 38.61 ms (seven executions, 512 actions per execution).

All 15 workloads from the first sweep
Workload Base p50 PR p50 Change % Base p95 PR p95 Base spread % PR spread % Gate
single_insert 16.62 21.80 +31.2 20.52 601.22 6.40 22.20 spread
single_conflict 4.96 6.81 +37.2 6.72 11.79 6.42 41.92 spread
single_noop 0.91 1.59 +75.5 1.46 1.97 29.13 8.49 spread
bulk_insert_8192 73.61 82.19 +11.7 79.25 584.41 6.24 0.72 spread
bulk_existing_8192 74.90 77.80 +3.9 1965.00 1261.82 14.17 19.70 spread
bulk_hot_8192_100keys 13.54 15.08 +11.3 16.92 19.49 3.00 6.91 spread
bulk_noop_8192 45.90 42.84 -6.7 49.11 52.89 2.88 17.46 spread
varlen512_insert_8192 86.99 98.79 +13.6 257.85 652.22 2.97 4.79 regression
varlen512_existing_8192 129.75 105.14 -19.0 1182.88 1153.56 267.99 2.28 spread
varlen512_hot_8192_100keys 31.90 28.64 -10.2 38.77 31.95 15.62 7.85 spread
pk_single_insert 8.72 9.60 +10.1 14.04 11.80 34.85 9.71 spread
pk_single_conflict 5.27 4.86 -7.7 8.02 7.24 28.01 18.92 spread
pk_bulk_insert_8192 28.94 32.93 +13.8 35.03 43.00 13.17 26.14 spread
pk_bulk_existing_8192 41.71 47.76 +14.5 190.52 585.36 9.51 8.36 spread
ordinary_bulk_insert_8192 83.80 103.83 +23.9 2003.04 733.85 69.45 17.39 spread

Earlier performance evidence

Before this rebase, the target and candidate used the same three-CN MySQL fixture, native libraries, Go 1.26.4 and Darwin arm64 host. Each comparison alternated target and candidate processes in ABBA order. The fixture validates resulting rows outside the timing window. The empty-table PK row uses a dedicated rerun with the ordinary INSERT control after the broader focused run found excess baseline spread.

8,192-row workload Samples per version Target → PR p50 (ms) p50 delta Target → PR p95 (ms) Target / PR spread p50 gate
Existing-PK ODKU 84 45.78 → 47.96 +4.8% 55.59 → 67.08 3.06% / 1.97% Pass
Empty-table PK ODKU 56 28.77 → 30.68 +6.6% 33.57 → 36.33 0.35% / 4.61% Pass
Ordinary INSERT 84 75.53 → 74.80 -1.0% 92.63 → 85.25 2.16% / 1.89% Pass

On this earlier Darwin comparison, both review-targeted PK workloads met the 10% batch p50 budget and the 5% process-spread limit in focused runs. The 15-workload sweep checked SQL results in both versions; several workloads, including the ordinary INSERT control, exceeded the process-spread limit. Full-suite performance acceptance remains open. An isolated 512-byte insert follow-up measured p50 86.51 → 92.83 ms and p95 99.17 → 106.10 ms. The companion ordinary INSERT control spread was 6.01% on the candidate in that run.

The previous 2996355 comparison reported +36.1% for existing-PK ODKU and +21.3% for empty-table PK ODKU. The review requested a reduction and a repeat comparison. Review

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH

XuPeng-SH commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 2f7d53593b1b5f0d4198a5a3238993153cc9136e

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 2f7d53593b1b5f0d4198a5a3238993153cc9136e

Assessment: approve

Reviewed the complete delta, affected owners and consumers, six linked issues, and complete discussion. Ordered arbitration, replay, validation, locking, cleanup, and protocol handling are coherent. No actionable findings remain.

Model: gpt-6-astra / xhigh

Session: 01a1869d-999c-7481-b340-ae4a63e8cee4 · slot 1 · generation 2

Validation:

  • Go 1.26.4 focused tests passed: 50 top-level tests across eight packages. Log: focused-go1264.log; receipt: checks/1793528732174922836-2.json.

  • Public MySQL/three-CN regression suite passed all 21 scenarios, including remote ordering, rollback, foreign-key retries, and competing writes. Log: public-sql.log; receipt: checks/1793528914393151351-2.json.

  • Generated protobuf audit passed, preserving existing field definitions and unrelated method semantics. Report: generated-audit.json; receipt: checks/1793528493293781754-2.json.

  • Final audit confirmed unchanged source, matching frozen delta, 170 matching native inputs, complete discussion coverage, and test receipt/log consistency. Report: validation-evidence.json; receipt: checks/1793529004991746785-2.json.

Limitations:

  • Broader race suites and comparative benchmarks remain author-reported; they were assessed but not independently repeated.

  • CI was still in progress in the supplied snapshot.

  • Initial native-header and toolchain setup failures were recovered before successful validation.

@XuPeng-SH

XuPeng-SH commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 6c2d460de5b2a161cbec01229a6df6f322b87c55

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 6c2d460de5b2a161cbec01229a6df6f322b87c55

Assessment: approve

Completed the full review and reconciled all discussion. Ordered ODKU behavior and the implicit-NULL type correction are consistent with the accepted design. No actionable findings remain.

Model: gpt-6-astra / xhigh

Session: 01a1869d-820c-7212-9788-aecfb86a4141 · slot 0 · generation 2

Validation:

  • Planner and dedupjoin package suites passed; three unrelated planner subtests explicitly skipped.

  • All 22 public three-CN ODKU scenarios and CDC TestGetErrorMsg passed.

  • Package selection, build and vet passed for all 11 changed production packages.

  • Verified reusable same-PR evidence and 170 matching native inputs. Source remained unchanged.

  • Logs and receipts are indexed in attempt-1/validation-evidence.json; final audit passed with receipt checks/1793531822915872821-4.json. Discussion coverage is saved in discussion-assessment.json.

Limitations:

  • Broader race, performance, SCA and standalone BVT results remain author-reported; they were not independently rerun.

  • Frozen CI evidence still contains pending or in-progress checks.

@fengttt fengttt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume changes to 4.2 are all port/cherrypicks from main. All reviewed/tested.

If this is correct, go ahead with the merge.

@XuPeng-SH

XuPeng-SH commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 6c2d460de5b2a161cbec01229a6df6f322b87c55

New discussion was assessed; the previous review remains unchanged.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes required

Reviewed published head 6c2d460de5b2a161cbec01229a6df6f322b87c55, against original comparison base 7a161fda57d53e0f15131b26372c71b67cc5db87. These two findings remain applicable to the published code. This is a COMMENT review because the authenticated account is also the PR author.

[P2] Preserve generated-column semantics on the compatibility execution path

In bind_insert.go:1765–1788, generated expressions now read column references from the current row image. That works with sequential ordered replay, but the retained skipDedup=1 path evaluates all assignment RHS expressions before installing their results (join.go:1027–1054).

Earlier exact-base/head SQL validation recorded a=2, g=4 for g=a*2 on the base, but a=2, g=2 on this head in compatibility mode; the normal ordered path produced 2,4. This is a silent stored-value inconsistency.

Retain the appropriate generated-expression substitution for that path, or migrate it completely to equivalent sequential evaluation. Add regression coverage for both execution modes and dependent generated columns.

[P2] Remove quadratic cold-buffer selection from repeated updates

In ordered_odku.go:334–347, every destination vector in a candidate bank is compared against every vector in the row image. For each non-final action this costs O(U × C), where U is the mutable-column count and C is the row width; updating most columns makes the scan quadratic.

Replace the nested identity scan with a linear-time ownership/membership check while preserving cross-column aliases, borrowed vectors, failure cleanup and reuse safety. Validate repeated-target updates across increasing table widths, including aliasing and allocation-failure cases.

Evidence and publication status

This review rechecked remote source. The SQL evidence is from the earlier review, not tests rerun during this posting. The separately prepared local fixes have not been committed and pushed to this PR, so their validation does not clear these findings on the published head.

The final local candidate's performance assessment remained INCONCLUSIVE: the prespecified confidence bounds were not met. That is neither a performance pass nor proof of a stable regression in that candidate. Publish the complete fixes and validate the resulting remote commit before treating these findings as resolved.

@XuPeng-SH

XuPeng-SH commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 9085200685a58ee644fc96c013fd35fddf9b7ad7

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 9085200685a58ee644fc96c013fd35fddf9b7ad7

Assessment: request_changes

The ordered action owner, writer fence, and captured transaction view have distinct responsibilities and reuse existing execution and storage mechanisms. The previously reported wide-batch failure is fixed. A performance validation gap remains for the common existing-owner upsert path; the available current comparison is inconclusive and does not demonstrate a regression.

Model: gpt-6.1-terra / max

Session: 01a22b07-00b6-7e32-b0a1-3099d0b867c7 · slot 1 · generation 39

  • P2 docs/design/ordered-odku-4.2.md:304: Representative 8,192-row upserts update existing primary-key owners through the new ordered-action path.
    Impact: The latency impact on an existing 4.2 workload remains unbounded by the available evidence. The pinned feature-design policy requires proportionate performance evidence for affected hot paths, and the 4.2 maintenance policy requires bounded deployment impact. This is a validation gap, not an observed production regression.
    Evidence: The author-reported focused existing-owner comparison is 51.04 ms versus 47.31 ms, but the baseline process spread is 10.59%, above the design's 5% batch precision criterion. The ordinary INSERT control has 7.13% baseline spread. The focused PK-insert and 512-byte insert comparisons provide useful counterevidence, but do not validate existing-owner updates; earlier reported regressions concern different heads. Complete a repeatable matched comparison against the current base for an existing-owner batch with an ordinary INSERT control, then address any reproducible breach or obtain the responsible owner's explicit decision on a bounded cost.

Validation:

  • Isolation preflight passed, and the retained native libraries were checked against 170 source inputs: checks/1796049738757233163-3.json and checks/1796050136913193964-4.json.

  • Focused action-owner, planner, compiler, statement-view, cleanup, and TN policy tests passed: checks/1796050381561639370-3.json and owners.stdout.log.

  • Public SQL ordered-upsert, writer-rollback, and partitioned-upsert tests passed, including the 60,000-row wide insert: checks/1796050499649867538-3.json and public.stdout.log.

  • Additional no-conflict SQL and persisted deduplication tests passed: checks/1796050803014837613-3.json and extra.stdout.log.

  • Targeted race tests passed across seven packages, including action reset, typed equality, hash join, streaming row number, spill replay, attempt publication, and statement-view cleanup: checks/1796051356753211251-3.json and race.stdout.log.

  • The assigned diff passed git diff --check: checks/1796051819307806302-3.json. discussion-assessment.json accounts for all 47 indexed discussion keys.

Limitations:

  • The benchmark figures are author-reported; raw samples and command receipts were not supplied in local_validation and were not independently reproduced.

  • The supplied CI snapshot had relevant build, unit-test, and static-analysis jobs in progress. The author's broader BVT and race-suite claims were not independently rerun.

@XuPeng-SH

XuPeng-SH commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · superseded

Commit: 173a98c51c207ccbab6749b089b25b8321c646cc

"interrupted"

@XuPeng-SH

XuPeng-SH commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Rebased on 4.2-dev@95679da6cf. This follow-up measures the existing-PK workload requested in the latest review and the ordinary INSERT control on the same database configurations. The feature head is 173a98c51c207ccbab6749b089b25b8321c646cc.

Matched comparison within the same time blocks. Both workloads satisfy the 5% repeatability requirement and the 10% median-cost limit in the time-blocked comparison. This supplies the matched evidence requested for the existing-PK path. The full release performance matrix is still open.

8,192-row workload Release → PR p50, ms Change Release → PR p95, ms Release / PR process spread
pk_bulk_existing_8192 44.85 → 49.22 +9.73% 617.82 → 525.92 2.44% / 0.52%
ordinary_bulk_insert_8192 72.18 → 72.26 +0.11% 169.35 → 160.58 1.95% / 1.31%

The existing-PK point estimate is 0.27 percentage points below the budget. As a cross-check, the median of the 161 within-block ratios (the mean of the two PR times divided by the mean of the two release times) was +9.54% for existing-PK and −0.93% for plain INSERT. Both versions had long p95 tails on this shared host.

Four independent file-backed clusters were online together, with two processes per version. For each SQL iteration the four processes took turns doing reset, public MySQL Exec and result verification. The test driver rotated the order across blocks so that each process occupied every position and ran immediately after each other process equally often across a complete four-block cycle. Only one client did foreground work at once. The three untimed warmups and the single-iteration calibration were retained. Each workload has 161 timed executions per process, 322 per version. Scheduler coordination is outside the Exec timer and does not change database code, SQL or correctness checks. Peak RSS per process was 1.62 GiB on release and 1.67 GiB on the PR.

Whole-process sequential control. The same CPU set and the original benchmark measured first release, then PR, PR and release. In that experiment release p50 varied between processes by 14.81% on existing-PK and 12.59% on INSERT. Keeping that separate result exposes the sensitivity to which time window each process received.

8,192-row workload Release → PR p50, ms Change Release → PR p95, ms Release / PR process spread Criterion
pk_bulk_existing_8192 46.05 → 41.80 -9.22% 132.91 → 49.53 14.81% / 1.40% spread exceeds 5%
ordinary_bulk_insert_8192 66.38 → 61.25 -7.72% 95.18 → 81.61 12.59% / 2.52% spread exceeds 5%

Four fresh three-CN Linux clusters used the order release, PR, PR, release. Each process timed 251 public MySQL autocommit executions of each workload. That gives 502 samples per version per workload. Every iteration seeded the same table contents and checked the resulting row count and values outside the timer. The three warmups and the benchmark framework’s separate single-iteration calibration are excluded. Peak process RSS for the complete two-workload process was 1.79 GiB on release and 1.80 GiB on the PR. RSS includes the embedded database services. Raw samples appear below in acquisition order.

What changed. On the first encounter with a stored row with immutable keys, the ordered action owner reuses the source layout already checked on batch admission. It still checks key conflicts before evaluating assignments and validates the evaluated row when publishing it. The regression permutes the incoming columns. A deliberately incorrect mapping reports zero affected rows where SQL semantics require four. The correct implementation passes under the race detector. Implementation · Regression

Effect of the optimization itself. A separate six-process run compared release, the rebased PR before the optimization (a94d49faae), and the optimized code. On existing-PK updates, pre-optimization p50 was 48.54 ms and optimized p50 was 47.26 ms (−2.65%). Both process pairs improved. Their spreads were 2.91% and 0.38%, respectively. P95 moved from 64.38 to 66.27 ms. Ordinary INSERT p50 was 67.93 and 67.73 ms. The release comparison for existing-PK in that run showed +16.94% at 8.63% release spread. Its six-core results and the four-core results above are kept separate.

CPU sample. Separate 71-execution existing-PK profiles on the final sources sampled 7.25 CPU seconds on release and 7.74 on the PR across the full process, including setup, seeding and verification. On the PR, ordered action application accounted for 0.47 s inclusive, including 0.37 s in publication. Target preparation accounted for 0.30 s. The lock operator was comparable at 1.17 and 1.16 s. These inclusive stacks overlap and do not break down the timed Exec latency.

Correctness and checks. All 1,264 checked statements across six repository BVT fixtures passed on this rebase. All 106 tests and subtests in the public SQL selection passed, including the 60,000-row upsert and statement rollback. Five affected packages passed their full CI-short race suites. Public signed-zero key movement, both upstream max-execution-time tests and the reordered-input regression also passed under race. Configured incremental static analysis finished with zero lint issues across seven packages.

Build, commands and sampling method

Linux amd64, Go 1.26.4 with CGO, file-backed ext4/NVMe, one log service, one TN and three CNs. The exact public benchmark was copied from the final tree into the release tree as a Go test overlay. Both binaries used the same native libraries. Each process had its own network namespace with loopback and its own fresh data and temp directories. Both cases used the same pinned cores and GOMAXPROCS=4. CPU membership was fixed once from a five-second load sample before the first process. No profiler ran during the latency experiment.

# In the release checkout, benchmark.overlay maps the absolute path of the
# missing pkg/tests/dml/ordered_odku_benchmark_test.go to the exact PR file.
.agents/skills/mo-dev/scripts/mo-cgo-test -p=3 -overlay "$overlay" -c -o "$out/base.test" ./pkg/tests/dml
# In the checked-out PR:
.agents/skills/mo-dev/scripts/mo-cgo-test -p=2 -c -o "$out/final.test" ./pkg/tests/dml

# From a fresh working directory for each process, with a fresh TMPDIR
# and the same native LD_LIBRARY_PATH:
GOMAXPROCS=4 taskset -c 4,5,6,7 "$binary" -test.v -test.timeout=20m \
  '-test.run=^$' '-test.bench=^BenchmarkOrderedODKU$/^(pk_bulk_existing_8192|ordinary_bulk_insert_8192)$' \
  -test.benchtime=251x -test.count=1

The six-process comparison used six fixed cores, 151 executions per case and the order release / pre-optimization / optimized / optimized / pre-optimization / release. Both experiments compute the pooled median, nearest-rank p95, and spread as the larger process median divided by the smaller minus one. All timed executions are included. SHA-256 fingerprints are below.

770e7b773e573d34c14910bff2af7a36abc87fb69640b1b43b099049fe38cdde  benchmark source
b5a05490d1ecf922da0b39eaae681065f7ed3f0accc1bfac2fc850084240f3be  release binary
d19631f661283e978dd21f76fa679ecd10bf3ea232f149a12f53029026f424f4  pre-optimization binary
636da8f0b4c496a07938fd77f6418b79931e8872516a15b01756532405aaf0e1  final binary (identical to 4bfb0edada)
ae9524fb6b022bf0417d88faec5dbc79a71b4a98496218b7aebb86127ae0658f  libmo.so
7c5371abd6ba5f0e6eace81a900d2b314353fab31fe68169b8159ef3d13d7766  libusearch_c.so
Final four-process comparison, raw Exec durations in ns
process,workload,ns_1,ns_2,ns_3,ns_4,ns_5,ns_6,ns_7,ns_8,ns_9,ns_10,ns_11,ns_12,ns_13,ns_14,ns_15,ns_16,ns_17,ns_18,ns_19,ns_20,ns_21,ns_22,ns_23,ns_24,ns_25,ns_26,ns_27,ns_28,ns_29,ns_30,ns_31,ns_32,ns_33,ns_34,ns_35,ns_36,ns_37,ns_38,ns_39,ns_40,ns_41,ns_42,ns_43,ns_44,ns_45,ns_46,ns_47,ns_48,ns_49,ns_50,ns_51,ns_52,ns_53,ns_54,ns_55,ns_56,ns_57,ns_58,ns_59,ns_60,ns_61,ns_62,ns_63,ns_64,ns_65,ns_66,ns_67,ns_68,ns_69,ns_70,ns_71,ns_72,ns_73,ns_74,ns_75,ns_76,ns_77,ns_78,ns_79,ns_80,ns_81,ns_82,ns_83,ns_84,ns_85,ns_86,ns_87,ns_88,ns_89,ns_90,ns_91,ns_92,ns_93,ns_94,ns_95,ns_96,ns_97,ns_98,ns_99,ns_100,ns_101,ns_102,ns_103,ns_104,ns_105,ns_106,ns_107,ns_108,ns_109,ns_110,ns_111,ns_112,ns_113,ns_114,ns_115,ns_116,ns_117,ns_118,ns_119,ns_120,ns_121,ns_122,ns_123,ns_124,ns_125,ns_126,ns_127,ns_128,ns_129,ns_130,ns_131,ns_132,ns_133,ns_134,ns_135,ns_136,ns_137,ns_138,ns_139,ns_140,ns_141,ns_142,ns_143,ns_144,ns_145,ns_146,ns_147,ns_148,ns_149,ns_150,ns_151,ns_152,ns_153,ns_154,ns_155,ns_156,ns_157,ns_158,ns_159,ns_160,ns_161,ns_162,ns_163,ns_164,ns_165,ns_166,ns_167,ns_168,ns_169,ns_170,ns_171,ns_172,ns_173,ns_174,ns_175,ns_176,ns_177,ns_178,ns_179,ns_180,ns_181,ns_182,ns_183,ns_184,ns_185,ns_186,ns_187,ns_188,ns_189,ns_190,ns_191,ns_192,ns_193,ns_194,ns_195,ns_196,ns_197,ns_198,ns_199,ns_200,ns_201,ns_202,ns_203,ns_204,ns_205,ns_206,ns_207,ns_208,ns_209,ns_210,ns_211,ns_212,ns_213,ns_214,ns_215,ns_216,ns_217,ns_218,ns_219,ns_220,ns_221,ns_222,ns_223,ns_224,ns_225,ns_226,ns_227,ns_228,ns_229,ns_230,ns_231,ns_232,ns_233,ns_234,ns_235,ns_236,ns_237,ns_238,ns_239,ns_240,ns_241,ns_242,ns_243,ns_244,ns_245,ns_246,ns_247,ns_248,ns_249,ns_250,ns_251
A1,pk_bulk_existing_8192,1280824691,978101138,280403623,51525831,46038929,50557109,46247286,51760743,46120690,52263963,89020449,51726657,44445265,49501597,51235845,70334733,85006899,66553362,45273093,71934812,64810695,44114626,65220267,44777368,53839542,46200243,50203671,42956123,51904522,45261622,52348049,55269787,47082114,58567447,86279388,50447491,46573267,50453390,69978858,51073384,46728275,45931557,63421515,47853077,50577925,51541153,45506187,43448594,48399432,145814758,140279838,173439581,149273366,242745782,132910282,127189352,64475268,85992023,67267577,70331876,60144013,57749614,53824850,60854363,52000957,54143161,83164645,55577659,80335301,57936588,62845451,50984666,54043269,53073799,61742866,48247951,40176749,44996114,38676251,39155209,40926525,39742853,40652433,40678900,82311567,44234839,46496849,41339152,64338920,47631612,44966209,47236614,78394791,40550097,41370680,45375863,39042713,39120106,39221069,38266735,41156193,41380618,708595874,172694546,275249116,171926524,437482672,313194557,647777271,194741763,127031435,95945558,102588304,99486138,87407285,105920063,98799154,110600484,106857994,96076190,102286835,108957040,100898851,268723507,125262741,100648811,95958249,99649577,109186795,88006871,121102300,3395000415,58260446,54221662,42305266,50641736,46720610,41838494,64977342,43473186,61771461,88005492,83135025,58923774,53086331,46104707,52070654,41661433,42174593,48520821,39415955,39248286,48428522,48532112,51882004,62590594,90472798,54813994,41882478,52843620,50305502,42184861,41218366,47745288,40678528,47042954,47800897,40621726,49650749,42161544,39001293,48679996,215387218,223459852,181035722,57434340,62489661,62978916,66905384,56509745,51443807,58914130,50957945,52148136,62119989,57830480,53385439,52580952,70869792,53601190,48224211,42270099,50317336,52028879,49225821,58144078,52871658,64232475,45425494,61096453,46148893,45540015,44176436,41734678,41755835,37621913,36134778,42265832,34018535,37454633,36091187,36007501,36586622,33856627,34905581,36993421,33934648,39686293,40152443,34820518,38301035,37817720,34773154,42327576,41749661,35235895,41988565,34106464,35909375,38884243,34777683,36021234,39036968,34730225,40243330,35025441,47158388,46579150,40922200,41101979,43297993,43393711,35740047,34118533,36972920,34163114,33626152,39130692,33902638,34868639,35233594
A1,ordinary_bulk_insert_8192,57540112,68538729,59077650,67174591,59714498,63277253,57677017,61904787,58904406,60969584,63417237,61848167,61732571,61951480,71601710,61409236,67802209,62667208,66421903,61638019,64541025,62984051,66289723,62310638,61720035,61287033,61778934,62264125,60610205,66432294,61438704,101144535,59856178,78821802,78078694,67828114,67257548,67431018,66555690,67241737,70793247,64686544,65682352,65433994,68957310,71364865,69095982,68895021,58274008,62650490,65491261,59323949,68464650,59977538,64837570,59309959,67266957,59382729,61455986,58921632,67026858,59472285,60848696,57494140,59896578,62515223,79053581,96396083,72041591,63238696,70949156,63184609,66751239,65902319,70317250,68234283,71126693,70474239,57075930,60739030,59422293,68980405,56780056,60126750,60235181,57509461,57780246,57264277,63980709,57547357,64886871,57100589,68859017,60128449,384200101,63874427,72916078,68782301,65874527,69105684,72550297,58141993,61472358,108172446,57874639,67092995,57281810,65843972,56604958,67567709,56594935,59753187,56973543,61074066,56773173,60187276,57089565,58669184,58561477,56786779,57568980,58403349,66571397,58190623,68069186,60469567,59910644,57967393,59400417,56458548,64538968,57754135,58227878,57776842,57349348,56623882,59476911,64469335,58434479,64222107,106395948,70407747,58193052,60974656,58765345,68359819,59613988,64153428,58305324,58265221,70364150,67632993,68914987,66068658,71947031,75055370,67267925,60692941,1828430525,70468635,69251387,69143666,68383899,58928552,59467227,68951654,61335484,69123845,59713469,67758626,59381467,65174696,60771806,63385125,57760189,114520675,58494999,60213377,58194782,56937333,71014470,58325880,66345380,56300941,75768300,56246968,61494101,61599109,62751353,57203039,61964051,58277399,62562820,65306328,57798957,64415672,76212981,73670313,70625765,66412682,64900150,70029814,63474373,57073365,57737011,66489120,58379845,65801057,58649049,69140046,56438512,63082368,62191803,118355318,58875924,66279079,57608160,63449390,57636974,59785395,1900258565,59002376,61490121,58810490,68174062,57526802,63133470,57836450,59812175,58691702,57822403,64193262,57517373,68917712,59869596,66861025,58184108,66268839,57676526,63567694,57619849,67895816,58789015,64724165,56859011,58794364,59219799,56650851,73760854,63927462,68636558
B1,pk_bulk_existing_8192,46011443,41214795,41125478,43120852,42484169,47537728,45339137,43729057,49150961,42900214,45270477,43062770,42472822,42312768,47425740,41815250,47302245,41742683,45525544,42665810,42425005,44327211,66649924,46309673,43161386,39747984,40426131,44378079,39701096,42953886,39587302,46892842,46262360,48242973,40188879,40061174,46771474,45215642,40388391,39716676,39908180,41096154,46309891,39525790,41401871,42550315,39040446,49981201,70296494,40142381,41475556,43258856,40194975,47171961,38841407,39336122,44055119,39909181,41235278,42406720,39794261,39821918,41621839,41412224,48231551,43449175,40165841,42206703,41217980,40167126,41335406,46802242,39870544,39719052,44885860,45888879,42172881,43714954,41120539,51888117,41795902,46700008,42713495,39453124,40669125,39877262,41326825,42230510,45005196,41629035,62601613,48487351,43452182,43178066,40728128,47748708,41556346,39709700,50548806,39291546,42141849,43874499,40796101,42619031,43769326,40430818,42014841,45363161,40097656,40483808,43670219,42402740,44598451,47486490,78467585,57299374,43333055,39887116,43907610,46703481,41437267,40527690,44577323,39186172,40453832,40001212,38792890,44327130,41638968,42366555,40163670,40695879,42594100,39331668,40142681,42174491,39860268,48232625,40146952,41148350,46854087,46397937,44279355,40844557,41506649,41560365,46427650,38869321,38906053,40322688,39092914,42108923,42266179,51953658,51882702,46931965,44558949,47519636,45618552,46786077,46924191,51194616,49530570,46914094,47504765,41168306,40052930,43806362,40408482,41778352,40519461,40413606,45657847,52274070,49535919,47207567,41832381,39740057,44858679,39938478,40097663,44286615,41008723,46545216,40335435,40517576,46579144,43960074,41916378,45618048,40440541,41272322,41187972,40581055,42160708,40482883,41685154,43524394,40985540,40418873,42301749,39574698,41021136,44254902,42186803,42612280,42065346,40189669,46963886,39862970,39426402,39493994,43384530,39451508,40208319,42617398,39623381,49291884,40323742,39795124,49374258,39461343,39063796,42518124,42706159,42826254,42888601,42291020,44403157,45539589,41794046,40427854,49116424,42618503,41080628,43136484,46990094,41022338,41453145,40738514,41143948,45566321,40678359,43848107,39492052,39185888,41303136,45196706,39515064,653060722,39853915
B1,ordinary_bulk_insert_8192,58095667,59263868,58628240,60952840,58485607,65424728,58325678,62459222,57612822,60945564,59156010,64369310,63214053,63453575,70446299,64348045,62314825,70108475,64102735,64398317,64452169,62325030,61272658,65482595,61939091,61039488,69214391,60401179,61930269,69073465,103836542,64172131,61041284,57958445,58067901,58318639,56973805,57996001,68725134,61454028,62011177,62314764,57862037,63241590,58181470,62790866,59769486,59735333,73477961,65802948,58154566,67160973,59051335,137830395,70142012,58227863,63540932,57926578,62469382,57622184,64256215,58856311,57950130,58783602,67395522,62163642,106858749,58625036,62256408,57603917,62114492,57800382,62134331,58818900,62126512,58646996,83061841,57856741,63920441,61109961,64205262,56402241,62105348,57336630,76046821,56480041,57734604,57679567,64136580,57986613,62010934,57459748,65125638,57504930,60661142,57633442,63369869,57742076,60493767,59595148,68895414,96972450,64228787,60647079,63203355,62060746,64001944,59414977,61749881,57738579,65331199,62126546,57397187,65842699,58489980,65064075,58760888,66461971,58664119,60702704,57634517,58757067,57089867,59952518,58426907,63139184,57661536,63601425,56999886,61313494,58967497,60339592,58542361,62127926,59098057,59420010,58704871,69246795,123011140,69200503,64342708,59000904,64445170,58256729,61742425,57626658,58107037,58872112,61089203,58289810,68822230,58862035,61599428,58142488,69115007,60728263,59851792,59819106,61369692,60525090,58874735,64609791,81609112,70808600,77973026,75013249,64749354,64422790,76559091,80366115,84609271,71564785,93121099,73164563,81574976,87360601,113927360,86775783,73477775,77679260,82990425,77728935,87193763,75328178,78650658,85067559,73753341,83195685,90156478,83023752,72984552,84597268,72081725,69404916,67069730,73392911,66584524,58364817,57062054,68575350,59899413,60563614,57509091,73040696,57847610,57262962,58498377,57269778,59719451,70795869,57254020,69667622,61108046,68710388,125592711,66385951,71532815,66876572,64536451,75400332,68880873,70787311,61913988,58668181,65418843,60000435,67479775,66174983,58910841,65123102,59758242,60012568,60781744,60040691,68073837,60487940,65106797,61174904,65985312,63876366,59743750,61726517,58714872,59031867,63266544,57444913,63823098,57299520,60425850,57651695,67292342
B2,pk_bulk_existing_8192,48990065,39635390,39744364,45596729,40153342,41340316,46454728,41705500,43090012,40613114,39819352,46000071,41814908,42923529,50874726,41387823,43195203,44359694,42555245,49603609,41675168,43551589,46590688,39445314,46710411,42718793,40768453,41808666,42804634,40803006,46896409,40006013,40320333,44170342,40212479,40351920,41540927,40459507,39533602,46700380,40401331,44612209,40405768,45968787,44169189,41147603,45222329,42641655,40740413,49682801,43019046,39156607,43352754,40720206,41305589,43402901,41594945,43375823,40542629,40023390,43730025,40804103,40448032,40188432,40370632,40489256,45748700,41290335,40273042,43372346,45261830,42239137,41207360,42172120,41160949,47577819,63838931,41798398,42170684,40693022,44737951,39142338,39931268,43500587,40996041,40220435,47500288,41432400,42207440,41643223,40396448,41823912,43142161,44708426,38902930,46878399,38729977,40695418,40455593,46288331,39214810,47323598,39586683,41545058,47675299,40675091,43795877,45407303,44714785,42316806,86056827,40466052,40989430,43321462,40815721,40996490,44108342,42640670,45101115,47799611,56154746,46186409,50094612,48762999,40144829,49390363,41400813,41389010,42947211,40954729,45915820,44908036,41639846,40621644,44362058,40254819,41355320,43912285,40741249,45194885,41367562,41389256,43834599,41097872,40419536,40326987,43078506,41062354,45234455,41617138,40925419,46772468,39781081,45010456,41411807,39307514,40526091,43467094,38768991,44042152,39288009,40088906,45516962,38765342,40697102,43330961,39709801,42977093,39807654,38676632,38312037,41590340,39011733,40271791,41216812,38904506,39954808,40978662,39550904,47822091,47475733,39938950,40398438,68271815,41058507,40211401,46184617,40294368,39074039,41386320,40385710,41980053,50539071,43811055,39163289,48004838,40870797,40154232,46081048,39921518,43154029,46496874,40502962,39638291,46754563,42137992,41734260,42510913,47879709,40285635,40468589,50539842,41536167,43825360,44772367,41475480,45007741,42197463,40079772,42244211,61583176,40360602,42626463,40849899,39305856,46594364,40421826,40038394,42454935,44372408,41296254,45767863,40455163,40806564,45626445,39635347,39829738,44465957,39782526,41014260,46939315,46788076,41038521,40560788,41678567,41267496,49366776,39616716,42006559,44291005,41368969
B2,ordinary_bulk_insert_8192,60880935,58702412,59756538,61021361,58737562,59043293,61891399,58057604,63443310,58928671,59069673,59055023,60884784,56899661,61130679,61258048,62143830,71428255,66387494,61988624,64326429,73391727,70240875,74547005,62897572,74103338,61830010,68762607,63325398,66685634,64014276,97552759,61194498,59281878,60515086,58871475,59495553,58382687,58723310,65947284,58493788,68258675,59323478,72710082,61248379,60537659,59866959,67064381,59194265,65420969,59229276,66143692,58582410,67089530,57296645,59644758,61420174,57839193,57405684,63996652,57679853,65589207,59439525,63702948,58186827,65014336,61443738,104496726,58614811,58860380,59678669,64546666,57999873,66706344,57682316,72385166,62169537,64747190,60345450,61802965,58055685,61122815,58376721,63632738,58546010,59493407,57140146,58324716,60169527,58006660,58629005,56694454,56736400,58451888,65240964,55903019,59583510,61893733,55207780,60216569,57223759,57924080,102224400,57811319,56979766,58078137,63200123,60357428,64326055,59931854,57127834,59159867,57559032,57315065,65936579,57628668,59236375,59104843,63532734,59205185,65976088,61446580,59138255,59475672,58024305,58038824,66840167,58029724,66183786,59730928,65493585,59089455,63814564,58445165,65724289,59728113,58562218,58667184,70691672,64496104,101841961,60056070,68896202,58615455,67351579,59428435,64780393,62176951,59659418,60989313,66817892,59418376,68063386,61116019,70110667,59119207,66982701,69726199,62847089,59074775,65035340,59564130,64787520,65473257,76394239,59152245,64521782,59319864,72536997,59309743,62269970,59090245,66176940,60172451,64546559,59400451,63336689,63726797,126639753,58355978,61859736,60016233,62982152,59661893,64475603,58499470,65308185,60553141,62894837,59436268,59404142,58787688,63771277,57749019,58987948,71881311,58976155,67536054,68641437,58130533,61158044,58884565,58810550,58321050,59214120,65556502,60142767,65149404,59799004,68079414,59133670,58266541,59471889,57986133,57910279,77345615,61963789,114131282,58264028,67745568,58101652,62751128,79011008,79133163,65992691,70462646,72324643,59066337,60058735,63189655,59981117,63248766,58777984,64701335,60585055,59247492,61090938,59610394,61425694,66848722,59219580,69375749,59631895,66160613,62595650,63526108,60076026,64818870,59278707,63361186,58834719
A2,pk_bulk_existing_8192,98962612,70071877,49740269,41828702,47809255,47137769,42092137,48621801,41792282,41470929,45120806,41392507,40662626,42613342,41515755,85177889,92381653,85529825,50454650,50992544,72336263,48585301,48085359,46685272,47477763,40483277,41804756,43838840,44266161,40164787,43126876,79672293,105642762,49077663,42130418,43573048,49737876,59436897,45431154,44496109,43523409,45336397,41974251,44222837,43601690,70582582,40734961,89248815,45701376,46058057,49832659,41675147,43439380,42736030,48580938,39721753,40003083,43159662,44141014,40204049,42603646,40525450,38405801,39575869,38225787,40461120,39957794,88677602,45080455,50809486,42964610,68183526,41602734,41154915,53590637,43577121,41090449,48939979,41806498,39195196,40322212,43532850,45575065,39773777,50881369,41338064,40413007,47613891,41509500,51641062,39490408,39777390,60120537,41266135,42964346,42668104,46507931,49310946,42433121,52689349,42438512,51816459,46074998,46774674,41377890,54123045,43963463,47358828,46239858,40933686,39738311,41131537,58156556,39228248,44136269,42202221,40494997,48641471,39602569,43643198,41846876,837283818,345242283,5299037756,1069854622,47202122,49798768,46336112,39120449,42082754,42231057,39583785,49556395,43438454,40422038,46086170,67081681,44900163,41641383,50349116,44375301,42788206,39209675,37911077,42475999,41378162,39309022,46904606,39937470,40908027,42588324,43029860,44882534,46065454,39429250,48348484,48011196,38588738,36369825,42128760,41240622,55228887,40736689,38368706,37987098,42040030,37347864,38140663,71522890,44113236,52488500,45665657,38866473,39944298,54889765,95817589,93662601,103952526,110658849,110506399,91435240,106091913,45717601,79960353,48053521,40333975,42320259,42300877,38392475,41892457,44600394,40964776,44137388,40977263,41929526,52026854,44745865,50409291,54812543,45282338,39383191,40416976,43098409,73326505,39596450,53218859,45368213,42741405,42947149,41691821,38116113,44852570,45594268,59678452,47421654,42817910,39972322,44740026,42305689,38373196,74915986,48957341,40419295,102968414,70795726,43124419,47412312,42076286,38750527,51414602,40666395,39592011,40557016,47782452,46810190,55028113,43566312,39474115,41887889,44046232,76479769,44314230,49368232,49568918,45504809,43941528,38636935,41268107,45311045,69630572,45427579
A2,ordinary_bulk_insert_8192,85424475,79766344,66427437,73437297,66877105,71720562,67850679,78895190,158580954,87062698,72310436,75954062,70207802,70061624,69285043,1570204595,1580589775,444370115,4376905228,7483730786,92693182,135571025,90127188,83417885,93102953,89252105,95182860,85031170,82207830,82450956,81997812,85295189,69343510,92194860,86965257,93065927,90248003,93256820,93123415,79386697,74470596,76244063,75140048,81057660,70418831,68846543,80323472,72463034,81070810,68819666,76921705,77562579,88241462,78270468,86818592,143411827,83815831,81144791,79490819,82489926,78192183,71707990,72950213,79743839,72666352,74185409,70097352,78147836,67651725,78697559,67929221,78101000,71259183,67752127,70999380,73162749,67640524,74764478,84088196,65231537,80674199,68878429,73589847,67714724,70851927,68960367,93817417,79864034,77193938,75827972,80478077,85213644,135201797,70247151,71197416,79041653,70697507,74090635,68585440,77901589,68405992,78340474,71851964,73102216,70706417,76258419,73394523,72203906,69600429,69065600,72350336,65594564,77100735,66633907,76435519,67641058,74645483,70402598,73780605,387915568,57752948,63404830,57603533,66689270,59190085,62690801,57257957,110260499,58298682,61396421,60386167,63652687,60203073,70018829,57870459,61943140,61184262,63621204,59169845,65597575,58675072,66046820,57910469,65840250,58416380,68161277,60416342,59671802,64259804,62333400,70603797,62217823,64680205,66622399,69724191,61719996,64538294,63757765,67502904,61181784,70194534,60622558,64752417,61051152,106535619,62710645,65466983,61366537,67355618,61000545,67304383,61838435,68402056,62432848,63885366,67089338,66310165,72688055,60767208,73541853,64805142,73723179,69175089,69366551,70930032,70178827,82429348,66612316,64568877,124501124,87139956,66869722,67376242,72441225,63620734,73262348,66550196,65706272,62217593,66726506,64308453,68935703,109521818,66729111,62702998,65486604,63839835,63136101,71592150,62351611,67696642,64277124,68444198,62907043,68529075,63784324,70975301,62224026,63896502,63718440,74989293,80449184,66319560,72549336,63819025,75813365,66677928,64189853,70640587,67058314,79086495,65814617,68732717,66010107,72410525,64187066,311588013,66463829,64936751,117262996,63458188,59246570,59582408,66896504,57315715,67598984,58434066,65109557,59642617,77663843,58962398
Six-process optimization comparison, raw Exec durations in ns

All values and their acquisition order are retained in this gzip-compressed CSV (base64). Decode with base64 -d | gzip -dc. Its uncompressed SHA-256 is 228313e5ff24d24ac190451aef4a204e9f159237c443c846be2f21787aa08b59.

H4sIAAAAAAAC/32cS65sx3FF+28s1cj/pymNQDMgZIswCAqkQMqwPXuvtfOy+SgC1/WqTp7MjIzPjh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XB+79pELQjqM1QKTKQW/oV1bc1gkW0laqoTe02OXg9zguexzKRN+zC8Kb989qWZzw3czX4H0kvbzoYz29INAlDrxBiD0W0ELAnW+AGaxpUUrsYaZ/oNYhXdLTTBFhFk2mc1gqDS5uNk2JXL+i1B+1CbC2PFbSQ9kSbHVQTtDR113j7x6bZOCnKMpcnDqP+TD9DPxCmm+1oliCXFxwFxCYB74IOm0VqHnQIz5aLc+L76l09354rH+u1D9pGs0Mt1/DrM7dGtx3UVgKvl6bDJYgtzmtYGCkTyzq3ELC2mKQZgSXeFTZdKLjTaotO79cia3OKycmp+5HW3kUUy13VLG3b0ngnBSZv1QVuyvmnfaNa9j42AXgjQl2c4TK91dbCL8oDv+ZQy6nmSI4Zr30D+YPBchn9vvIWDjeMn3c/5muX6CocC5Tk9pJVefxtPE7yKDVohLnc72bXDOfSP1KTUjJuvuIdtSQFZX/BMgFpZgzNlqgH1O6jmKsxKTSpTbJ4Y+tdyXZFccWv5NqLBEe1F1Ua6IR0T1/aSuuNENSSv5EwKCVZaLp52muzPsHP1fquOL5LXqUDo9nRraixWtul7GdJG8u2QGSXh9ah1puWeLNRUeMaUuFBEaOBFhtsVlMy4P+aZaB2JrqVZNr/XwUrVfwUr+ymc18SwzZV+Ig0fNbqHKqXyWMKHyA0MZVXLYtnX+VW+qNp8RppEd650SS9ukf8hnbslWCdQ9hBU++wIGm98OakFpeLJ+5MCu5GHtJmZpTeefMn7yWPXOO8ogMxtRWv8spRALdv/w/zYLwN+EQAAA==
Time-blocked comparison, raw Exec durations in ns
process,workload,ns_1,ns_2,ns_3,ns_4,ns_5,ns_6,ns_7,ns_8,ns_9,ns_10,ns_11,ns_12,ns_13,ns_14,ns_15,ns_16,ns_17,ns_18,ns_19,ns_20,ns_21,ns_22,ns_23,ns_24,ns_25,ns_26,ns_27,ns_28,ns_29,ns_30,ns_31,ns_32,ns_33,ns_34,ns_35,ns_36,ns_37,ns_38,ns_39,ns_40,ns_41,ns_42,ns_43,ns_44,ns_45,ns_46,ns_47,ns_48,ns_49,ns_50,ns_51,ns_52,ns_53,ns_54,ns_55,ns_56,ns_57,ns_58,ns_59,ns_60,ns_61,ns_62,ns_63,ns_64,ns_65,ns_66,ns_67,ns_68,ns_69,ns_70,ns_71,ns_72,ns_73,ns_74,ns_75,ns_76,ns_77,ns_78,ns_79,ns_80,ns_81,ns_82,ns_83,ns_84,ns_85,ns_86,ns_87,ns_88,ns_89,ns_90,ns_91,ns_92,ns_93,ns_94,ns_95,ns_96,ns_97,ns_98,ns_99,ns_100,ns_101,ns_102,ns_103,ns_104,ns_105,ns_106,ns_107,ns_108,ns_109,ns_110,ns_111,ns_112,ns_113,ns_114,ns_115,ns_116,ns_117,ns_118,ns_119,ns_120,ns_121,ns_122,ns_123,ns_124,ns_125,ns_126,ns_127,ns_128,ns_129,ns_130,ns_131,ns_132,ns_133,ns_134,ns_135,ns_136,ns_137,ns_138,ns_139,ns_140,ns_141,ns_142,ns_143,ns_144,ns_145,ns_146,ns_147,ns_148,ns_149,ns_150,ns_151,ns_152,ns_153,ns_154,ns_155,ns_156,ns_157,ns_158,ns_159,ns_160,ns_161
A1,pk_bulk_existing_8192,579524246,451446735,340653357,503196454,391938771,523758652,395243454,466581940,555500235,243012527,570998898,518119320,600520408,414227448,1483142614,328216261,629437876,466600328,320202889,425061526,284169279,492717981,520488104,316873486,329884934,1578469037,282715890,282249088,1563351056,513410484,209248498,772818252,164035986,289526524,153239055,360314258,169683859,162853217,346797844,546740617,403263223,227366934,42106406,39639451,55045712,47247130,45670595,48897998,44678000,46272191,63066409,46038097,44562767,42246263,41300436,44449512,45456576,40801154,45796875,41922388,48991900,42056741,45461034,63890763,47983390,56835643,53799792,57862640,55676301,39705338,34734944,50314738,36640932,43914246,46836891,43995763,47328403,45414742,45589758,37188368,37164169,47057234,52564455,35271787,37551637,38144622,34667964,47129565,56114384,43365618,39851921,49026767,40842250,51715248,45945996,50790905,50100581,42220575,40456869,40956430,35548565,36137932,36569198,52203210,47257083,42923109,35156275,39486878,37766084,44133027,40743768,46360075,48606296,49266938,33333256,37738766,36695480,41779391,275670083,46957604,37381762,41015802,33637647,39676884,38967589,37216678,42187696,37547895,35776912,35636545,45994984,36510261,35488221,36351377,43812498,40605832,47024765,38054979,36895373,37512012,40579513,41477193,37174096,37688683,35461948,45992633,60111581,35414396,38318919,37693950,34254794,40007205,35456579,36086491,44795363,38759458,34591912,35535615,44450251,39936243,35076667
A1,ordinary_bulk_insert_8192,71335647,64157320,67139765,61231585,70485174,66999753,71046017,75582129,72015749,63949726,63761340,66908933,64986532,64001251,69890537,65489329,66509717,79696047,76623548,63621743,63935366,63883656,154160020,63361998,61162925,59097366,70617064,61469553,61103707,68886943,62591168,62240015,57423743,62531085,60290351,67619173,56026116,68760752,78164043,65049469,70019575,71934285,59451039,59505992,60423874,61296771,69953368,59036766,64970258,119435771,74251831,59864651,62470570,59967089,59345258,63362046,83678496,68644565,87304321,92367628,85412526,82653923,159437511,74818399,75109025,463322857,68075046,68146608,74645027,86920284,70989833,73850811,82389308,79963251,84457964,70843959,73152571,139999358,63584172,76748400,69607028,66416136,67882722,70298375,64781865,71697334,177364139,171595446,67739061,72449179,81724551,71599941,67885586,72892568,71004136,67952407,61856583,74881366,70093977,84662806,77785353,636047334,287829105,596630809,491855582,316820851,69192229,59908310,59468406,71670449,66242701,61050605,62801127,66906420,66109407,60734475,65196752,78224389,60819789,59727467,62846441,78470650,71225204,67967658,70373805,72853904,79653861,76805805,83049396,123066367,84529840,94746628,96716595,76165100,80648132,91123824,103365041,140033238,95009055,85116661,81293419,105990919,100901653,101387148,80920395,95447272,82972085,83863993,99576427,78834505,81122725,115457527,95863412,114923242,84023139,102387760,86862137,189050502,78145854,90170570,74868077
B1,pk_bulk_existing_8192,337902393,514696480,290956194,524616290,343733007,320130813,414815868,387577836,715968582,413821794,106206612,735270271,296702151,428417523,549892725,2448786931,423905046,361722917,396288265,293507093,275605264,461353772,334106991,377376907,218686987,274593329,277518757,262420562,149736716,245644245,1429309559,504090184,180779889,3066270085,199374869,393198536,492942572,614407377,454530753,163884585,1313687693,428279738,115463331,52005737,48328118,43755856,49211505,50552183,51143597,56626850,53113144,43237006,45740121,48120014,673652618,50388975,62341379,49083438,52979762,48819976,47520733,47562367,52159157,97698596,54657491,63949201,66378543,61236162,48967681,51297398,46500518,39593249,48985642,57654318,57168063,50810640,55106441,49144180,63551869,48467006,56769391,48505822,48092841,44481222,44139736,41901170,40023464,47678664,51847876,41340733,45187051,65678442,44779944,49417763,47657066,51377610,42546502,45561110,47199740,40575782,40566783,41897253,42174517,44071677,54810372,47876380,42127388,41505051,43456261,40514208,39089443,44462036,47873703,39404300,41478523,42517100,49916327,40498193,41374240,50515256,51600871,40803428,39561641,42633791,42199031,45222050,41425997,41900357,42340415,46321490,49229738,45900286,46237122,429665826,43260058,50943599,51309278,40868488,42866789,41442566,40756990,50388880,41514718,41126536,39505082,59589438,54602053,45368894,43831959,44253782,40651122,41086652,43776373,42696250,41592001,41588434,48604806,50547917,46472876,41092770,40222896
B1,ordinary_bulk_insert_8192,74113537,67880530,69999550,61139597,76289265,75294502,76141127,65101735,69139717,70826212,63293249,64252298,73504330,62431491,68984796,81785611,64182693,70923039,70354176,64646770,63266747,63635335,69116203,65446300,60621524,61695006,58391488,65738809,57188268,58530109,62846407,61196811,60097420,59726290,59345570,67461201,58034639,60425587,65741379,67644579,73973319,70486510,60096389,68196132,58142488,61225962,66955298,64602768,61327703,66359593,76773425,72995661,73611915,61638047,61556606,66138824,68319374,73341471,77616381,76814143,74291751,71955414,87869923,75958345,76115022,68502189,67332094,71475939,76778738,71766938,71400026,80698123,78253774,72875767,73024883,74346301,113753487,68937133,66092782,65908966,72149055,86066290,66512634,78592868,73176352,75210677,277878567,184168231,70105032,63697061,72297588,83340557,66450206,67093014,81691595,67876088,63179264,59786448,73141513,72017925,91259143,1776261542,182325638,457061787,160580973,177645313,154224274,61627312,66414717,59695884,68124963,64077283,59068333,62683941,71904129,64149957,74323720,72905913,63778905,70788419,72988671,72543505,77041994,74822779,76740752,69160088,74979742,73060162,81657755,119478234,75447745,85837966,81892779,77932072,87240806,87648242,99791921,150321877,86429807,98330905,81020954,92214548,91429644,146454449,87889969,79832753,135868748,91714189,85742744,87914784,75186750,81817892,102605708,76337054,225529093,91680737,133948671,256669243,79684074,76483192,72214569
B2,pk_bulk_existing_8192,401949133,428672336,324186006,450727411,448321353,367993939,380678402,485151269,374548682,348764552,537218754,291684422,469065837,353606066,626803969,335665228,358390428,474381787,921316530,476296555,209894773,376641461,426633554,828411117,358242085,525920331,311709890,468445747,312108879,272990685,260472046,519491922,427112521,180148229,1451337006,437590534,743651708,138752213,1203884322,187110055,510197836,467580246,63392846,52937700,49219268,46661350,49595725,48974411,61304658,47264025,50682846,52349112,49321211,66719908,50400066,47185963,54214035,50389033,54450352,45130043,50419232,52453430,62908897,69416557,53743619,101243999,56504070,63258348,66982527,46303728,41617170,41921705,41686776,55744823,60295945,57439048,56962075,48843084,48487718,40140673,43151238,46520374,48512136,42142900,41104439,44103323,40725820,47367055,44831924,43651269,63486905,89047862,46713563,47325956,49936859,47537268,56515237,44473355,41841420,45987498,39996040,40169103,41632971,40998250,47155287,44529845,41363907,41880056,41178755,42721480,42596817,55716389,46516745,41857568,40592028,42262345,41804690,42802419,48976056,46122433,42983101,52667970,40658046,43197467,41084002,41706478,41934561,46387525,44365519,42982841,45294032,49587587,46149954,40807333,53199931,44313442,44440663,48328183,43407528,44758588,41113355,41429848,40329168,44264206,43711374,51087150,50384356,40443200,41804616,47208438,42814223,43005419,52925096,40404945,40529079,47307867,44455912,54262597,42001774,40070495,43864592
B2,ordinary_bulk_insert_8192,67644567,66438717,79832201,63482832,61104102,60882580,75240373,68944552,61544561,62844182,65606625,69960330,62272569,62125316,63572527,62292411,67113019,71603199,66191058,66096817,76267627,63370711,77422237,114595217,60317279,61444435,60258374,58741823,64564025,67899415,61011322,57541849,60490981,58774816,67536572,63630254,71971340,64174297,73570981,73622410,68596686,68465854,64144531,61409459,65643545,66014709,57373245,58254527,63751126,78573975,64563343,66937743,111023670,58533007,64003404,71559054,76575449,64353960,70351779,67062831,159486513,83877305,138008386,80282809,85065765,69675608,70740945,70830597,93982761,69894944,69703548,69548102,89487483,67403264,65753624,64217500,68573816,73421486,75439935,76041588,148702455,66319294,90417231,66869303,72620429,79463123,154859231,174484291,79502044,71246339,78918687,73558153,82893647,84146425,64213801,63712352,74388159,65967652,73581826,76513632,87478327,228669562,327969221,226556257,374621773,244655870,66053509,59295271,68344080,67479622,61906556,64039411,93166226,64924656,59343640,62969332,69493992,74773416,57365572,57742824,65299134,77043351,79510071,71489253,68661991,80584526,86994195,73577767,79586646,74090735,111432956,82839552,180760128,82500892,95110489,87605101,107609718,95915707,146776309,79259852,92491353,91872309,93752726,82181464,84561101,76146826,91896884,74233872,89935730,71526336,165935491,106662963,78764174,100761852,77745445,85261245,87963460,78592528,79086387,152336175,73504069
A2,pk_bulk_existing_8192,362814633,763628623,374835806,335621915,375488954,280609060,704792284,516899957,435135882,617821635,764128773,813598579,411961011,1667422825,375929611,771625918,541637469,325233398,279825286,1560257225,432821989,385110179,252291767,764969909,269800888,237198001,296755548,349420169,309446863,427065645,734552307,392206883,241670247,347630277,562927933,4131757265,327944267,254521434,472119137,1380771455,436460707,482566789,57435724,43650295,48544091,44486124,51285634,44550411,46982498,43853287,43333593,41701562,48834346,43272175,38373449,45224825,46618132,49219555,45796161,53221983,41748914,43348482,42640011,52735626,57618077,57125399,58651487,54166716,45095354,45737151,47124943,41498586,38922320,52835779,50646015,46901899,46324945,54336360,45416737,44904088,34019413,45230245,44643328,51176380,38338359,35085377,38065632,48834785,39922057,35383701,40023262,51316665,41804372,61286321,38236098,44164660,52358508,42513524,40831657,38198611,36968621,37822864,39191560,35700346,53928018,43288433,40153224,38272948,38886096,40264086,35229036,34322994,42372135,33934566,37843835,40222163,79942329,38417540,38852607,44037310,34740871,34150078,41726915,38549200,43928078,40915499,36013671,36240585,35323541,34255685,43947597,43401734,35736326,35315889,34506431,44502858,44560933,35643771,41634611,38606326,36175137,42668420,34597748,36576025,37075627,43921970,49039867,35074193,34776808,35103910,39691432,37399969,40268105,43309592,36280190,33786726,36611778,41381741,53632830,37080564,39202248
A2,ordinary_bulk_insert_8192,60117019,72995700,66070640,70706541,62463523,74995145,77456342,63110830,63004147,74466281,66500378,62855432,64228530,64926560,64178536,70563094,69287407,75237318,67342633,68842437,65339805,62299372,91716482,62341511,62010824,65103492,62443734,69818742,65984083,60749673,58453072,62753468,73519445,60858773,62504741,79588057,65501088,58081514,58951224,80971211,75020952,79798246,61286257,72154332,70911263,59328413,58050693,69378864,70642961,131358613,61620625,65608356,66149690,63633407,63046232,64456045,73474948,68257901,73776052,78342391,82239851,78861589,86397799,158613000,72204879,62678923,61755916,68656869,87733086,72922027,74615025,67494300,79221213,71763292,62777026,73642522,112328052,65594628,64558012,66538854,70574973,73217849,79377279,96703786,72590178,215267338,216232664,160158957,72388881,62682498,66442647,85803249,73889629,77779465,65864723,78608814,70364090,60868874,75953866,81593887,90534983,190307733,169351580,276988620,325789880,287657880,73635448,59395727,66146720,58866364,63317815,67995993,69003222,69036676,63290340,72138439,71618099,71978399,73758966,74420295,79440781,74397448,77610557,65229599,75811494,78741428,80612444,71475524,71359198,75148551,74837309,100850654,86769028,79606225,97153394,101619805,93706935,77828444,81857566,89024266,107849332,111489108,109638618,84708576,74619472,80737745,118429490,85473650,92670365,126052811,79259576,85072753,76792461,262238614,165793146,88299859,91928039,122130852,85538909,68144845,67530145
Reproduce the time-blocked experiment

Both builds replace the same benchmark file using a Go test overlay generated from the following diff. The adjacent commands for the sequential experiment apply with the appropriate overlay on each checkout. In a short, private working directory on an ext4 data volume, place the two resulting executables as base.test and final.test, the patched fixture as fixture.go, and generate manifest.sha256 with sha256sum base.test final.test fixture.go. The binary hashes below identify these particular builds. The driver expects a directory containing the common native libraries in lib/, the private-network-namespace launcher net, and the wait-and-record wrapper measure-exec. The latter takes an output path and a command, waits for that command, records its peak RSS and elapsed time, and exits with the command’s exit status. On a dedicated host the four database clusters still need private network namespaces because the embedded services bind fixed ports. The database services stay live while the other three test clients wait.

--- a/pkg/tests/dml/ordered_odku_benchmark_test.go
+++ b/pkg/tests/dml/ordered_odku_benchmark_test.go
@@ -18,6 +18,9 @@
 	"context"
 	"database/sql"
 	"fmt"
+	"io"
+	"net"
+	"os"
 	"sort"
 	"strings"
 	"testing"
@@ -72,6 +75,26 @@
 			b.Fatal(err)
 		}
 		defer conn.Close()
+		gate, err := net.Dial("unix", os.Getenv("BENCH_SCHEDULE"))
+		if err != nil {
+			b.Fatal(err)
+		}
+		defer gate.Close()
+		if _, err := io.WriteString(gate, os.Getenv("BENCH_ACTOR")); err != nil {
+			b.Fatal(err)
+		}
+		exchange := func(request, want byte) {
+			if err := gate.SetDeadline(time.Now().Add(2 * time.Minute)); err != nil {
+				b.Fatal(err)
+			}
+			var token = [1]byte{request}
+			if _, err := gate.Write(token[:]); err != nil {
+				b.Fatal(err)
+			}
+			if _, err := io.ReadFull(gate, token[:]); err != nil || token[0] != want {
+				b.Fatalf("scheduler: got %d, want %d, err %v", token[0], want, err)
+			}
+		}
 
 		// This process owns this unique database. No other test's data or cache
 		// is removed, and no table grows with b.N.
@@ -197,11 +220,14 @@
 				b.StartTimer()
 				defer b.StopTimer()
 				for range 3 {
+					exchange('R', 'G')
 					reset()
 					orderedODKUBenchExec(b, ctx, conn, statement)
 					verify()
+					exchange('D', 'N')
 				}
 				for range b.N {
+					exchange('R', 'G')
 					reset()
 					start := time.Now()
 					_, err := conn.ExecContext(ctx, statement)
@@ -211,6 +237,7 @@
 					}
 					elapsed = append(elapsed, duration)
 					verify()
+					exchange('D', 'N')
 				}
 				b.StopTimer()
 				// Report individual samples before sorting: -test.v retains their
f44299df9ce12bcc0c90a952de845af752afe5502139a336ab60f8786a676284  base.test
99b2c1f23d98751e2d79616925d5dab9fbe4eb563eca31503ddda21c92065f1b  final.test
2078fb20966749eafd8085425e7181003eb78953d05d181abe89926ddad30a42  fixture.go

Save the following driver next to the two binaries and execute python3 run.py "$shared_helpers". The outer four-process schedule applies to both workloads and is independent of every measured duration.

from pathlib import Path
from tempfile import TemporaryDirectory
from contextlib import ExitStack
from datetime import datetime, timezone
import json, os, socket, subprocess, sys, time
root=Path(__file__).resolve().parent
native=Path(sys.argv[1])
labels=('A1','B1','B2','A2')
orders=('ABCD','BDAC','DCBA','CADB')
def health():
    return datetime.now(timezone.utc).isoformat()+"\n"+"".join(Path(p).read_text() for p in ('/proc/loadavg','/proc/pressure/cpu','/proc/pressure/io','/proc/pressure/memory'))
def take(sock,n):
    data=b''
    while len(data)<n:
        part=sock.recv(n-len(data))
        if not part: raise RuntimeError('driver disconnected')
        data+=part
    return data
subprocess.run(["sha256sum","-c","manifest.sha256"],check=True,cwd=root)
env=dict(os.environ,LD_LIBRARY_PATH=str(native/'lib'),GOMAXPROCS='4',BENCH_SCHEDULE=str(root/'coord.sock'))
proc={}
with ExitStack() as stack:
    server=stack.enter_context(socket.socket(socket.AF_UNIX,socket.SOCK_STREAM))
    server.bind(env["BENCH_SCHEDULE"])
    server.listen(4); server.settimeout(150)
    for label in labels:
        name='base' if label.startswith('A') else 'final'
        cwd=Path(stack.enter_context(TemporaryDirectory(dir=root,prefix='cluster-'+label+'-')))
        tmp=cwd/'tmp'; tmp.mkdir()
        cmd=[str(native/'measure-exec'),str(root/(label+'.time')),'taskset','-c','4-7',str(native/'net'),str(root/(name+'.test')),'-test.v','-test.timeout=20m','-test.run=^$','-test.bench=^BenchmarkOrderedODKU$/^(pk_bulk_existing_8192|ordinary_bulk_insert_8192)$','-test.benchtime=161x','-test.count=1']
        logfile=stack.enter_context((root/(label+'.log')).open('w'))
        (root/(label+'.start')).write_text(health())
        (root/(label+'.cmd')).write_text(json.dumps(cmd))
        proc[label]=subprocess.Popen(cmd,cwd=cwd,env=dict(env,TMPDIR=str(tmp),BENCH_ACTOR=label),stdout=logfile,stderr=subprocess.STDOUT,start_new_session=True)
    try:
        peers={}
        for _ in labels:
            conn,_=server.accept()
            conn.settimeout(120)
            stack.enter_context(conn)
            k=take(conn,2).decode()
            assert k in labels and k not in peers
            peers[k]=conn
        with (root/'schedule.tsv').open('w',buffering=1) as schedule:
            for cycle in range(2*(3+1+3+161)):
                assert all(take(peers[k],1)==b'R' for k in labels)
                sequence=[labels[ord(x)-ord('A')] for x in orders[cycle%4]]
                schedule.write(f"{cycle}\t{','.join(sequence)}\t{time.monotonic():.6f}\n")
                for k in sequence:
                    peers[k].sendall(b'G')
                    assert take(peers[k],1)==b'D'
                for k in labels:
                    peers[k].sendall(b'N')
        for k,p in proc.items():
            status=p.wait(timeout=120)
            if status or '\nPASS\n' not in (root/(k+'.log')).read_text(errors='replace'):
                raise RuntimeError(f'{k} exit {status}')
            (root/(k+'.end')).write_text(health())
    finally:
        import signal
        for p in proc.values():
            if p.poll() is None: os.killpg(p.pid,signal.SIGTERM)
        for p in proc.values():
            if p.poll() is None:
                try:p.wait(timeout=10)
                except subprocess.TimeoutExpired:
                    os.killpg(p.pid,signal.SIGKILL)
                    p.wait()
        Path(env['BENCH_SCHEDULE']).unlink(missing_ok=True)

@XuPeng-SH

Copy link
Copy Markdown
Contributor Author

Existing-primary-key update performance at a76c71369e

The previous PR revision took 49.22 ms at p50 against 44.85 ms on 4.2-dev for 8,192 existing primary keys, a measured 9.73% slowdown. The ordered action owner was copying the old and incoming image into single-row scratch, then copying the result into retained columns for each distinct target. Previous measurements · Review request

Direct incoming-column assignments now copy a prefix of independent, changed snapshot rows by column. The existing RowID index still resolves repeat targets in input order. A dependency or a row needing general expression evaluation resumes the existing scalar path. This changes the action owner only. The statement still locks and writes through its existing SQL execution pipeline.

Direct release comparison. Each version ran in two independent three-CN clusters. The four clusters took turns within 336 balanced time blocks on the same four cores. Each process measured 161 executions per workload, giving 322 samples per version per workload. Only the MySQL Exec was timed. Before each execution the driver reset the table, and afterwards it verified the stored result. The scheduler, SQL and release binary are the same as in the previous direct comparison.

Public MySQL workload Release p50 Updated PR p50 Median change Release p95 Updated PR p95 Release / PR median spread
Update 8,192 existing primary keys 46.74 ms 42.93 ms -8.14% 119.71 ms 114.24 ms 1.16% / 0.81%
Ordinary INSERT of 8,192 rows 67.86 ms 68.57 ms +1.06% 102.20 ms 90.25 ms 1.90% / 1.35%

For the existing-PK case, both versions meet the 5% median-spread criterion. For the ordinary INSERT control, both versions meet the 5% median-spread criterion. Maximum process RSS over both workloads was 1.59 GiB on release and 1.59 GiB on the updated PR. These are shared-host measurements of two representative workloads.

Separate three-version diagnostic. Two independent clusters per version alternated within 208 balanced time blocks, with 97 measured executions per process and workload. The updated owner was faster in the existing-PK case in 86 of 97 time blocks when averaging the two processes per version. The previous PR's 6.48% median spread exceeded the 5% criterion, so the precise improvement over that revision remains uncertain. Tails varied across processes, including on the ordinary INSERT control.

Public MySQL workload Release p50 / p95 Previous PR p50 / p95 Updated PR p50 / p95 Median spread for release / previous / updated
Update 8,192 existing primary keys 49.37 / 148.71 ms 54.58 / 131.73 ms 45.91 / 146.16 ms 0.35% / 6.48% / 2.18%
Ordinary INSERT of 8,192 rows 68.38 / 90.35 ms 67.90 / 83.74 ms 67.80 / 104.27 ms 2.02% / 0.67% / 0.11%

The owner-only microbenchmark measured 7.63–7.73 ms on the previous PR and 2.24–2.26 ms on the bulk projection, including Prepare/Call/Reset. A separate route probe confirmed the SQL fixture consumed the full 8,192-row prefix. The diagnostic instrumentation was absent from the timed production path.

Correctness. The owner race suite passed 163 tests and subtests. Public embedded SQL passed 106 tests and subtests with the race detector. Six repository BVT files passed 1,264 checked statements. Six additional bulk SQL fixtures checked existing rows, repeated keys, no-ops, 512-byte payloads and fresh PK inserts. New tests exercise conflict priority, a repeated RowID across batches, change then reversion, a later NOT NULL failure, allocation failure during copying, and Reset. Configured static analysis passed for the changed package.

The previous comment includes the common fixture patch and four-process scheduler. Apply it to the benchmark at a76c71369e9452d589de8a9018cd8e7f705e0f08, using 95679da6cf5bc20780f510e151acea67b7fae08c as release and 173a98c51c207ccbab6749b089b25b8321c646cc as the previous PR. For the six-process diagnostic, actors A1/P1/B1/A2/P2/B2 used the repeating six-position Williams order 0,1,5,2,4,3 with indices advanced by one per block. A=release, P=previous, B=updated. Reproduction method

Direct release comparison, all Exec durations in ns (A=release, B=updated)
process,workload,ns_1,ns_2,ns_3,ns_4,ns_5,ns_6,ns_7,ns_8,ns_9,ns_10,ns_11,ns_12,ns_13,ns_14,ns_15,ns_16,ns_17,ns_18,ns_19,ns_20,ns_21,ns_22,ns_23,ns_24,ns_25,ns_26,ns_27,ns_28,ns_29,ns_30,ns_31,ns_32,ns_33,ns_34,ns_35,ns_36,ns_37,ns_38,ns_39,ns_40,ns_41,ns_42,ns_43,ns_44,ns_45,ns_46,ns_47,ns_48,ns_49,ns_50,ns_51,ns_52,ns_53,ns_54,ns_55,ns_56,ns_57,ns_58,ns_59,ns_60,ns_61,ns_62,ns_63,ns_64,ns_65,ns_66,ns_67,ns_68,ns_69,ns_70,ns_71,ns_72,ns_73,ns_74,ns_75,ns_76,ns_77,ns_78,ns_79,ns_80,ns_81,ns_82,ns_83,ns_84,ns_85,ns_86,ns_87,ns_88,ns_89,ns_90,ns_91,ns_92,ns_93,ns_94,ns_95,ns_96,ns_97,ns_98,ns_99,ns_100,ns_101,ns_102,ns_103,ns_104,ns_105,ns_106,ns_107,ns_108,ns_109,ns_110,ns_111,ns_112,ns_113,ns_114,ns_115,ns_116,ns_117,ns_118,ns_119,ns_120,ns_121,ns_122,ns_123,ns_124,ns_125,ns_126,ns_127,ns_128,ns_129,ns_130,ns_131,ns_132,ns_133,ns_134,ns_135,ns_136,ns_137,ns_138,ns_139,ns_140,ns_141,ns_142,ns_143,ns_144,ns_145,ns_146,ns_147,ns_148,ns_149,ns_150,ns_151,ns_152,ns_153,ns_154,ns_155,ns_156,ns_157,ns_158,ns_159,ns_160,ns_161
A1,pk_bulk_existing_8192,38398059,33410721,35588183,37491104,37102170,40016643,39344477,39883860,40471879,48407178,519540470,38749504,69549537,83493102,67088382,44435259,43357734,55322043,54089742,76793580,52312605,41851644,46302703,43963820,79707547,44220762,71523947,99792755,83465803,94009460,91370747,44271106,55277384,62987028,43290991,59413338,58858313,48196533,72869867,578620604,304439225,1449966896,54953948,54569805,65685694,52505674,59748338,40572835,49436601,46381016,51419493,45293854,51742979,69248347,40860669,48706278,57102268,51361981,59957022,40637109,47255411,576505007,124812463,55331843,48431380,45169399,39687151,34520412,35759000,37650783,44978046,46350426,47860129,52079990,45440686,62067555,50564845,44927437,65081812,53134552,72055187,45704543,52762750,57010472,55400920,40111287,206825471,47516731,53080342,48318192,37157003,35214766,43146782,41391825,39914772,43583201,42166853,54932619,45497419,46754190,54984118,52863587,46691133,44813708,57292563,79986803,52567707,48697521,51618189,36404515,39031052,46726808,52372024,48800037,52812623,46642240,38066169,40007248,47821089,46066796,45239957,43863308,42052604,43456058,36374261,47851744,45871734,46382457,40156320,43082572,47820665,43400603,41946912,41388318,41856290,45566577,51642145,46579057,40538615,36963078,40320419,36340552,37783631,43507870,45948036,48935559,35573018,36246126,39800777,37539007,44297145,35844309,38619855,38303749,33956792,49563779,47186385,36735125,41655049,47153075,83594087
A1,ordinary_bulk_insert_8192,64651428,80621257,70932339,64332635,65098110,73779551,70754037,68376422,70355041,81177925,72657632,66985933,66117570,64113742,63853739,70014426,75259140,64738634,61140383,72066677,67651883,61989044,71952178,63935701,184548345,64234445,59167394,59215844,68072183,59377556,58098546,62565246,59167629,59048851,61630642,61972264,62864787,58975156,61122324,65128061,65859608,60162947,76302261,65469778,69659446,67408153,70081726,78142545,74707269,69228590,102198885,77285675,74600660,133345511,75961609,91281013,74757040,76645743,76415995,105690846,76281998,73515210,66398917,62920959,62803004,71170009,68353048,79181878,73691325,72569944,73582394,69964774,79564727,73906440,60620801,70851132,75014579,65017618,59305040,70456380,67241188,107651759,61252281,61102629,60062127,60912012,63988482,61451670,61316511,69026571,64882186,60441923,59623803,68170493,67920843,70499032,70496750,58344443,59958960,61396516,62007440,58330593,61393326,64266245,69860261,91099454,69941211,70320059,73513153,68388004,142459800,77118713,71814504,73519658,68254417,74649411,62324108,67934418,79712215,76229537,69459161,83133952,62720972,78453464,75453171,71688430,65679011,70628243,73191902,64839895,84224108,96026576,74767768,78423857,79109677,81418674,65700040,69242015,123973496,72052845,72950298,65058085,65742717,68459366,65776235,63767264,59233653,67185647,62332023,58763347,66338607,64612129,62820232,77172909,61021145,76782392,63268043,60458449,58996885,65751602,75056027
B1,pk_bulk_existing_8192,34480751,32805879,37069400,34787735,36100452,37277685,35418864,38552164,37336014,46250679,38883461,51624060,36321033,62739945,72517019,58450450,56753381,54903759,41474978,49126092,53134463,52622797,68293387,46164791,49888717,47879119,49583867,72899194,77497398,90048451,63735162,43438159,54505959,53917200,44308995,48460998,53237232,74324311,49267715,184346650,2844046920,92499289,76030592,57318774,55348490,52836311,52474575,38986319,54834767,3661019254,100867812,42412322,51495168,56604767,73502422,45150899,40324875,43090950,53628346,47320775,100855442,2863329139,4318551505,42364333,36789004,33464222,37414695,36208882,48197225,34293265,34119858,42836189,70219065,50315670,50175432,1737593782,38215664,43165126,39521365,45965876,48284156,51607478,46648818,43642437,48743673,47128029,670335768,1372770079,53046437,46035290,36800804,33931741,36954181,36193150,37907639,37261893,46688717,59485929,45309885,53481918,46940162,44984616,39773920,42254360,41521948,37647605,36460569,44632504,37937455,50226639,35409711,45662364,45501885,41016480,35221255,37295554,38440837,37743975,42234290,41390545,35148026,35212257,35394367,37234674,34908776,39447608,41973887,49131210,40302419,38196293,38926282,46861197,40524272,38659370,39433826,43776751,57750199,45529116,43162538,36763726,39994713,34280447,34275259,37572647,40788526,38318753,40325934,41062092,35253172,33200287,34167288,33686420,39356301,35259229,34096127,36757625,41914391,34822159,36533710,43943947,41674405
B1,ordinary_bulk_insert_8192,65117766,75012384,73351715,71468385,69151614,65036302,86499821,74275364,71484541,66505070,96782365,63828894,71351517,73164276,63958054,62713030,67150276,78552891,62523765,62653933,66912228,71687247,73263414,67735011,65300433,64789281,63220801,61544137,63784017,59142443,58884327,57811272,59479751,64596817,67225188,60146779,66739318,65581691,60461041,62970768,67556285,72571734,61365480,61544185,67269738,65097823,66747777,69321214,72803288,81436820,89778302,140396744,75494269,73140898,77001199,130593882,80537512,68983232,73124889,64482702,77097931,69476467,81781512,71885116,77209967,82614315,73239665,68222289,76559061,111239360,72488580,70986683,74827620,76950924,64848248,58513882,61461332,63268045,58691470,62132173,70964286,66670568,62174528,62392752,62461909,59379205,59723072,64823302,58235440,63095161,63341428,69203973,62004454,59940024,69781798,75758143,78621744,59283651,57859012,59098775,71375790,67794739,61663057,60606314,76848803,72890765,85787323,105841566,65511421,60987536,67930065,73818279,77574318,69477441,76063681,75233788,64237828,71536974,80592598,74442062,81996589,76884751,66304999,73780801,76528965,74363449,66863862,63399491,68493198,73571233,74635527,76557133,83736054,79545371,71662923,74542685,117326505,63458522,79445467,69033265,72889809,66703979,64826332,63851352,63061888,65207349,59502813,60342136,64368831,63567943,58090276,59780122,69709332,73072886,78486770,61192852,68823846,67024698,61532474,58802024,69511790
B2,pk_bulk_existing_8192,36014374,33691090,33448739,38906689,37538468,37918598,37168256,36844895,36465213,46611954,174403496,75196585,56934977,86932138,43944200,53667637,45240347,46386638,46950252,46548289,37958957,43032581,45337740,43808602,40103462,42002068,66510164,71166922,126021835,109947802,66598939,47371888,69876853,56715733,50974708,40571779,86553151,57051450,1518134218,480309190,114240416,84761103,57796937,52957615,55824856,50821003,51434764,45815534,40060671,45932942,43878666,48545496,39950261,47005815,69105909,45101605,52023487,37838338,49886275,40264866,40146246,773926035,254608304,42693390,42919594,33736543,34251361,34551903,37872832,36301366,34524321,42948949,43520819,41472445,41350406,37568166,48657251,39141565,43374492,53644516,43793950,41085278,49648023,45532539,58482585,36553372,206734420,263169637,49527277,39356439,33474541,37943888,37049271,41457626,37069154,36735769,43136650,50888608,43348397,44007914,45860704,45917524,36334485,42361242,40482482,37663648,43490869,44838723,45851560,37399822,36446752,73422294,47227700,41432148,49174600,37411502,41306976,47758529,42747689,41227662,37487879,37690582,35399698,38432748,36451005,39484711,32569816,38671876,37476912,40288294,48717952,59915300,49737970,43966169,41878501,38623387,42276347,50173205,36257619,39397225,32958574,47060402,34251618,36003194,39642426,41506603,35393367,35392244,35696136,46923099,34284745,42166438,37317357,40419025,33418861,32844420,47992265,31758770,46662335,39916361,42817557
B2,ordinary_bulk_insert_8192,79591416,70414032,63917955,68080967,70953252,70261289,72583045,71717985,77369910,72635052,75387129,73781667,64648962,63628983,69452693,71452384,69621223,63737186,71602777,74741003,62713453,82037321,74999409,64026441,126271296,67169980,59429315,66205964,64713327,59379074,59259499,60396093,58085835,58179240,60168028,67984846,57644161,63337325,66867139,63949560,63286474,61326933,69912358,66272762,73988383,72015235,59507523,73594100,78009788,83546820,101444615,118779105,120005223,71335131,90246440,99542801,72630560,71640426,68848606,63879958,80708920,89196580,65268335,63552684,68923969,74608705,64057678,61967830,88474084,74579120,67042484,85803726,82297473,66362689,68656130,64681644,67517034,60053251,70736423,69507378,113725940,69323780,70802551,59187766,64681025,70108989,58656710,60468007,63581810,63984824,62433421,62146273,67937874,63173233,60724867,63822217,67991398,58393172,102966544,67405332,58901029,58107395,67585642,67168472,59726605,80983184,81489645,68405540,72147534,67512278,136665426,71831170,74804776,63769776,72202367,80439444,74581727,79434351,88827779,73407758,71195447,73562913,70457284,83816347,80634987,73548012,71782667,70183428,64891109,88308730,88242602,77787108,111689274,74337623,79206755,68941822,67253562,61754227,137779334,87009862,68998804,64763087,70511900,66828611,59630307,59807230,62564832,62560472,58147329,61524124,69577392,69093577,59516376,68760508,66425100,63100064,60794839,60359860,60517877,65779158,61756119
A2,pk_bulk_existing_8192,37922383,39309641,35803549,37712401,37314425,39627956,37540701,48073949,38897304,50070275,39518291,135224471,44408121,69652297,60735414,54881350,46249099,44265720,66838174,50495998,63611863,66564587,50912072,45118344,73288451,58756069,47121443,77959463,101123238,119706868,133293010,78867912,46775307,54231989,49611122,55215649,59641511,49138131,46468826,1284911423,1490277055,59807733,57251451,58598089,62145662,48671002,51441037,50146607,46115175,77115358,56956540,46851804,98138942,45920221,47615650,54047434,44129206,52582835,56052026,54114292,48179111,308814654,1474607278,1723158613,44025000,46025740,37733587,36498745,34911997,37756008,37756460,55286860,50183721,54972764,48655149,41875889,46363757,79687453,48215352,52843708,64917128,40002035,58191110,48481951,46409955,37430937,231640063,125634726,69315485,44680430,35042252,37256190,38775851,39951252,47573014,42635786,56321141,44419955,45115702,49475248,47669002,57144477,48555927,52909940,44450521,39794000,42329131,63930411,49329942,38605368,43331050,38904309,49044826,46040121,38543015,39898820,43328438,38124859,53269534,40687784,40238395,47398203,43621442,59686063,43144064,48665552,45727645,35723815,49430210,52104863,46079821,41552638,82067899,41550143,44926512,41291521,54856791,52735704,41149547,45485540,35261431,36497913,51672919,44636868,45475682,43467224,48374823,62980155,34898189,35712198,35916613,40696012,36304194,35377454,41610994,39130499,40870362,34599153,47087866,43632047,49856174
A2,ordinary_bulk_insert_8192,74159405,62987629,61295085,81254516,72056987,70263700,67815451,75662888,74676921,69296354,80738572,75912243,63001223,73298213,64486424,60544617,63345829,69942068,71765175,74833159,64765973,89919849,66323545,72228069,113617456,59779809,59050540,68560828,59818829,61968480,61922741,58913639,58844104,64925099,60587667,59951425,63399468,68278376,67526433,59864540,61247955,67141065,85180197,124210016,69900196,62076456,61373304,64961570,70568474,84205288,102419607,132517967,118294471,67898049,75981283,94463823,72836836,67080207,68137158,69385989,78220376,68532952,65871270,72635976,81013519,65337073,64772022,73240638,72898454,70210113,67007965,71470572,77056500,67493539,59740963,62821380,60412580,66913431,62358581,83788153,103570987,59411884,59064351,104541352,63384814,60140541,58308736,64838520,63791598,59759334,57341580,64607988,66315923,61696467,61855474,66161097,72525660,65971858,64518089,61828342,60161009,65327354,68777770,64426722,59627471,70242114,74520962,65742819,116702901,59782551,64342492,82447834,82543615,65706634,66846740,79355117,69664804,73080719,66822545,82160436,69035722,75628527,69120797,61764379,77764737,70593539,72285968,64940982,64474028,79947907,81505513,81407950,80757157,78665960,82977663,81098581,71935722,116280682,65642808,147794488,64192182,80981225,68853549,62853328,63422967,64088144,67918653,60998128,58096659,64839303,63422700,65994289,60012851,72029396,67496087,60375426,59822840,64758521,62944437,58041066,63677685
Three-version diagnostic, all Exec durations in ns (A=release, P=previous, B=updated)
process,workload,ns_1,ns_2,ns_3,ns_4,ns_5,ns_6,ns_7,ns_8,ns_9,ns_10,ns_11,ns_12,ns_13,ns_14,ns_15,ns_16,ns_17,ns_18,ns_19,ns_20,ns_21,ns_22,ns_23,ns_24,ns_25,ns_26,ns_27,ns_28,ns_29,ns_30,ns_31,ns_32,ns_33,ns_34,ns_35,ns_36,ns_37,ns_38,ns_39,ns_40,ns_41,ns_42,ns_43,ns_44,ns_45,ns_46,ns_47,ns_48,ns_49,ns_50,ns_51,ns_52,ns_53,ns_54,ns_55,ns_56,ns_57,ns_58,ns_59,ns_60,ns_61,ns_62,ns_63,ns_64,ns_65,ns_66,ns_67,ns_68,ns_69,ns_70,ns_71,ns_72,ns_73,ns_74,ns_75,ns_76,ns_77,ns_78,ns_79,ns_80,ns_81,ns_82,ns_83,ns_84,ns_85,ns_86,ns_87,ns_88,ns_89,ns_90,ns_91,ns_92,ns_93,ns_94,ns_95,ns_96,ns_97
A1,pk_bulk_existing_8192,61493941,67606321,61716806,63317697,58292992,58154913,60010049,65508857,64909542,51279519,57437018,343603701,468641161,67528157,88440429,72044710,79445138,84384384,379565067,60181333,57525807,72523770,54334465,99876148,59526379,61621189,62979852,77226168,75766955,55085685,92129994,68395894,65134685,72387021,169760181,1257963563,45575965,46801832,55834759,38712617,45450559,39838490,45411684,45334308,49256294,47383741,37395827,54133330,44397254,45509902,51178015,40623660,534323593,36196941,35842670,40278930,65413905,46853367,58759707,50024325,42441592,148706324,36398732,44892308,37506934,41984145,45529951,38158034,41463007,36930852,35646204,34805075,47920374,51734114,43659484,35703899,36230016,36728592,85482080,46604347,41019286,65147775,46150940,46136456,37062420,37289324,40331418,44522983,35900344,45059736,34451510,53210313,40446815,40428986,45997973,43224569,40952859
A1,ordinary_bulk_insert_8192,71055678,60110154,70739999,59910948,72261061,76251670,72081095,71999955,70750035,63535904,66045876,66806815,63727178,65125927,82044158,74458276,67220868,68907938,69706302,70975385,62336470,112519837,75260514,65696775,61781891,64308208,62285777,63219505,67666943,68396880,78471779,87894086,76043873,70663827,75857832,75771179,58889586,60717231,60257738,69061665,72693925,72591673,59447169,60005311,58797823,68629528,138680787,70619968,63983910,60832367,64219467,72317411,63622614,62430485,62984596,59450359,57910617,69358096,69089970,69958207,77936182,68358535,68711969,63124233,58683261,65946250,61108265,81046794,69684080,80392165,64438089,142871844,74659935,60910925,59341657,76899767,69143389,66277796,60611578,62056154,88987816,72410749,63077756,64557419,65878363,69108587,71801074,67399319,74041835,76701769,68484472,67618671,67260479,79582902,70814854,78763685,120323650
P1,pk_bulk_existing_8192,67689213,62076136,65139864,69671382,70136469,64773659,58433599,66134098,82577281,66235834,60484817,470064169,483979898,80246679,77149287,107411118,87307934,93984145,83352983,79721025,85753689,121034583,61156800,116639692,65018373,78654772,70921292,116615117,57491608,65048723,131728662,77261847,74621414,54087038,116597960,265454414,66101870,51857011,49491513,42493741,50331208,51192132,58267297,60696894,48934021,44683139,73009064,53926499,45947053,47242906,46005433,41787472,42622537,43347146,39476383,43314540,49767678,57576000,50180614,43042477,47216112,46252918,49339356,44251737,43597106,59937442,57954573,47307680,47646142,45355462,41159635,47420548,52577222,47033592,56215570,46898355,43226428,61237047,61519750,49779753,77089426,60626968,48994913,45672210,50547582,43198449,43118835,52672813,51579357,44415439,45463226,53854330,44229194,45503210,64761065,58269578,57649443
P1,ordinary_bulk_insert_8192,61107986,74994483,67968749,75220081,74136567,70682244,59494532,71634108,71591519,66944450,68237962,64086937,79990628,87225134,80558338,67920989,65109915,65511812,63718759,65615369,62513774,130598376,78167999,67240891,77079086,59134588,65603926,70588689,63756602,69646471,65064961,73378367,83742634,80295971,72744446,73899475,64167575,59223262,63218736,57957554,63293143,77647825,68699879,60390125,59485138,63563575,67688859,69666749,66072455,62297988,62743595,64183501,75267023,62734451,66137078,61486762,56758547,59942761,65883317,72830856,65478131,79073738,67882089,73282950,60107824,76590242,60570802,81130084,77022709,111564430,60444463,87495334,82830369,66050785,77258170,71027683,75381729,63807052,64167550,65764234,80754859,62710610,66739971,67216081,64734086,64430769,70397180,70309626,76002461,71222597,82649935,64026253,73728164,77034984,81553426,78769131,70254665
B1,pk_bulk_existing_8192,47827276,49977978,54145990,64568284,48202062,48854598,61842541,48500394,66097384,59501218,434767807,220512192,387627679,152129210,88302133,80933898,82484538,146163961,299070439,123337565,67397469,76927088,100739081,51960782,60969754,84700630,62133610,87665962,55622402,56133242,81272360,48675150,60484880,52640149,75675952,55250449,53311278,47294976,74489195,45393607,41801893,45673432,49328950,45809306,39626688,45663162,46936900,46645098,40971131,40376881,43721536,33237222,34036446,32580913,38522367,35071716,41893391,48093027,41779130,34598279,32634216,34627930,132729849,38078132,36223422,53181165,68959906,42708640,37004861,32392772,37896771,37610086,39892853,41364044,44355596,32910669,36318445,37828476,43987852,34860387,36860879,38990601,35125238,38219465,35177723,42235096,36913995,40422148,33584653,37168865,34469692,43782064,39302753,39516573,42713030,37434622,46876385
B1,ordinary_bulk_insert_8192,58718910,58132640,74041304,77615087,68349582,61649364,59796208,62502922,70515486,70876282,73822248,65366699,65018674,82822879,62452461,71040694,68131852,63626338,63330898,62542479,66513290,111015112,172550494,64216658,61842252,66001444,63055037,68862803,66990224,66638705,68975692,88985268,80756693,91300940,71493704,71848641,71314112,68624813,60795649,86551993,69734544,67622471,70695193,66310861,58758535,65743451,87357517,67715729,65925276,58977404,71222780,63198551,71409147,70741507,67551611,62018824,60355116,60907314,58975067,70824226,67397423,75047660,65569377,65464176,63983827,59149197,56766826,85273752,79210278,66814635,65393993,65667419,87043047,69914162,88764861,73882494,74967952,66306400,68808309,71759014,64820051,68606007,66981833,63680607,67781734,65724000,76196926,68952601,74772211,65155844,106638959,69619078,76455889,72630070,67858821,77162938,128457210
B2,pk_bulk_existing_8192,54292989,52359218,49699199,63342651,53515520,59034638,56218200,65601480,53063449,53926564,63136782,170473695,240669754,72692600,50398133,55431775,87163972,78850378,116864954,58441473,77926730,91462456,50166517,73345764,55879432,61510870,52545334,53479815,88460062,84370309,71232315,103690960,46017940,50283729,192532004,206013994,43644643,42364558,65558536,46715730,39469722,53437159,39435065,45455638,41897765,35879047,36063102,47210234,36177598,44102152,43206528,34691145,36551108,32386243,36257936,33711442,42353077,41094420,72807792,44971186,32302343,102137084,117833018,34751647,46667166,55048848,38992554,37358749,37141370,33558875,32670905,42431442,45593393,41247666,46879586,46780421,33219942,47661846,48844138,40496212,39679391,41539464,37775741,35623975,34071215,37293508,33174227,44976209,43571830,33227265,45780661,40742653,44502494,38075224,47968373,38651960,35198747
B2,ordinary_bulk_insert_8192,67441547,60518069,58867374,557193849,66930354,63240200,71136790,68030447,64994296,62757805,65719515,76189029,64852278,65146411,76386963,71731671,64811025,72314109,72841804,104272991,60553214,81553843,94314528,59556968,63881238,60605787,67611589,78105090,69464854,77272413,79107221,78019561,75281385,74148845,70344081,64198116,65671037,59235630,64421933,66944838,68812425,63901260,64030949,63736991,72799586,124623064,99350873,60766764,60252946,58986435,60942493,66690632,73244900,59979094,63027455,61111289,59328033,67005852,68971580,59754928,58586605,73810048,73190683,62419308,60629200,68181537,60433392,66115654,69677789,111462727,69036003,73112768,83004005,67545669,68786761,69336485,79220761,58068545,58999948,63239645,71085341,71910223,65904939,67343245,69314525,78008375,67785481,63622668,69098573,112231643,75053138,65420531,107242397,98728583,67819263,72718613,69942811
P2,pk_bulk_existing_8192,72062526,82369280,62272997,61872545,59959684,60184351,62536422,67251366,112019872,62148017,70370755,327462199,418161638,73180284,62695451,75370056,102759564,76841236,155410295,81594483,86920014,97270560,68341519,92451128,62528426,77967565,129417907,71983242,56448264,73944917,111651273,61787310,68509887,57490200,387513351,64462402,99031662,65109864,61092209,54539911,43108113,59148908,51194831,46344512,54625158,46600698,53147083,55112222,44798853,46971381,52552842,49637794,42984018,43701655,41900129,41541622,50291493,53990581,55544284,42695415,51279553,567814038,1592384541,50161813,47420075,71493184,52450446,51098010,46547990,45148100,45573659,51176944,49216744,41641175,55486755,52937638,47271363,48674789,45313636,44923662,44771310,46739171,44424724,44045833,41525546,44226717,41857613,48944081,40342245,42556975,51655978,45814552,49266411,44235724,51836578,46506728,45014399
P2,ordinary_bulk_insert_8192,56568854,58044849,60928898,68850553,58790398,63200139,68618662,66255911,67140484,63357669,72822700,69337483,69205599,72882562,76269779,66625736,66112304,76782900,70431239,63509514,67445707,111299829,66381220,61074255,61478636,64920285,68501189,77984614,78109000,79799024,79115706,78074500,73765670,74434720,66618868,67357301,59334182,71421117,65253252,74233997,68398990,66524296,64249066,65370537,69233262,74043890,69031306,106351402,60394909,61435122,61989135,60629517,72694735,64260025,59929365,67910923,64960408,70103008,58123960,59589840,58050498,71092818,65111682,59720100,68579010,72190696,65432554,62166976,61906828,61319035,67976937,68366185,102715732,83083272,76228904,69039067,61321519,59975919,60724694,70658057,148814029,71261489,64551606,67465938,65597221,65345122,64410006,68726299,70760831,67205212,133559236,71119545,72022122,75802434,64805188,70003168,72950228
A2,pk_bulk_existing_8192,58542250,72575146,64041234,60238489,72110032,66025420,60265876,62305220,133281049,60166622,357389494,324280971,480908357,64849850,67595926,82377890,116869104,99034644,122615587,124721370,50943922,76821250,78928034,59650711,44500070,109740525,59561354,65582442,63315487,123104173,84989896,58111712,62267887,81538071,128653087,54642043,51207934,47863536,61356893,40510454,46220356,49777655,53685237,47305114,45205635,62949314,56876372,39909654,45934359,40020396,43146780,35578450,42360716,34153926,40271741,43574193,55888124,106311297,49312529,47241101,34909731,37179499,62879486,39808399,40229041,46937641,49430940,39310909,44295680,46270915,35875465,60797783,48874954,44223333,44275117,36846394,36669920,46233035,51575426,72520488,37112173,37702092,48654738,37272111,39587579,48448316,38677662,42494685,35717114,34867032,40131218,44476680,44588279,37141514,51340380,38313281,43563474
A2,ordinary_bulk_insert_8192,60466091,60954557,63975210,73520744,61980132,61465212,67937846,63949547,63792824,68970937,70534719,73050392,65644242,67138178,77438727,66792350,65619332,71199293,64112568,64924681,122433950,84765538,73009385,62194209,66644041,69664005,72044189,70617187,74254558,73216387,73645372,75054441,69572755,71956827,66533464,70293851,67115368,67271563,67110297,69805744,70434360,74054207,66146732,66095479,69447559,66598584,105662090,59505839,68788261,65048193,64017392,62189743,73787830,59065559,63665172,59875502,66440495,58903287,60020343,61357207,65210479,90352888,58353387,62855355,60241524,66441510,61029379,63384779,70431758,68414175,80253137,70721154,112402647,62815800,110678777,77821348,66430898,60453946,60188429,70332615,75261226,69128577,64400987,63517536,60545130,72655694,66904840,79274233,75475490,65921409,81149883,68124429,71461626,79216240,74131506,72705647,108337052

@XuPeng-SH

XuPeng-SH commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: a76c71369e9452d589de8a9018cd8e7f705e0f08

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: a76c71369e9452d589de8a9018cd8e7f705e0f08

Assessment: approve

The ordered action owner, writer fence, and captured transaction view have distinct responsibilities and reuse existing execution and storage mechanisms. The prior wide-batch and spill concerns are resolved. The author’s matched comparison addresses the latest review’s existing-owner performance request; the earlier requested full release matrix remains open, but its exact workload count is not an independent repository policy gate.

Model: gpt-6.1-terra / max

Session: 01a22b07-00b6-7e32-b0a1-3099d0b867c7 · slot 1 · generation 39

Validation:

  • Isolation preflight and native-input audit passed; the audit matched 170 source inputs and five retained outputs. Receipts: checks/1796058102938820478-3.json and checks/1796058148479482725-3.json.

  • Focused action-owner, evaluation, and compiler tests passed, as did targeted race tests for the new bulk path, cleanup, and publication. Receipts: checks/1796058350220049386-3.json and checks/1796058992562239463-3.json.

  • Public ordered-upsert, writer-rollback, partitioned-upsert, and no-conflict SQL tests passed, including the 60,000-row case. Receipts: checks/1796058497365881352-3.json and checks/1796059259501234146-3.json.

  • Transaction-view, object-cleanup, persisted-deduplication, planner-ordering, and spill-replay checks passed. Receipts: checks/1796059065194019717-3.json and checks/1796059259501234146-3.json.

  • Remote candidate reads, float-key filtering, hash joins, streaming row numbers, and materialized-source checks passed. Receipt: checks/1796059505647325309-3.json.

  • Recomputed the supplied current-head benchmark samples and matched the reported medians and process spreads. Receipt and log: checks/1796059436261752752-4.json and recompute-benchmarks.log. The assigned diff also passed git diff --check.

  • The discussion assessment accounts for all 52 indexed items, and the source checkout remained unchanged.

Limitations:

  • The latency measurements are author-supplied and were not independently rerun. The full release performance matrix remains open; earlier noisy singleton and hot-key results establish neither equivalence nor a confirmed regression.

  • Optimistic requests paired with incremental TN deduplication can incur additional persisted-key scans; that configuration’s cost was not separately measured.

  • The frozen CI snapshot showed shared build, unit-test, and static-analysis jobs in progress. Broader author-reported BVT and race suites were not independently repeated.

@XuPeng-SH

Copy link
Copy Markdown
Contributor Author

Updated the existing PR in 74b0088310. In the pessimistic RC path, rows with a single immutable key and no snapshot match previously looked up an owner and then probed the same native hash table again to register the insert. The operator now claims consecutive fresh keys through that table once and copies row images as a batch. It hands the first dependency back to the ordered resolver. A repeat at hash-table capacity can still update with zero growth headroom.

The pre-change CPU profile recorded 0.38 s in the insert-run handler, including 0.13 s in target preparation and 0.17 s in key transitions. These are cumulative CPU samples. The SQL measurements below quantify the recovered latency.

Matched MySQL measurements, 8,192 rows per statement

Each cell gives p50 / p95 in ms. Each version ran in two independent processes, 97 measured autocommit SQL executions per process per workload. The schedule rotated all six processes and serialized execution. Warmups, resets and result verification ran outside the timed Exec. Release is 95679da6cf on 4.2-dev, previous PR head is a76c71369e.

Workload Release Previous PR Updated PR Updated vs previous p50 Updated vs release p50
pk_bulk_insert_8192 26.910 / 35.237 29.431 / 41.701 28.536 / 35.718 -3.04% +6.04%
pk_bulk_existing_8192 38.764 / 51.654 35.654 / 46.587 36.110 / 46.545 +1.28% -6.85%
ordinary_bulk_insert_8192 63.464 / 82.977 63.975 / 76.723 63.695 / 79.925 -0.44% +0.36%

The fresh-PK statement recovers about 36% of the measured gap. Its p50 still exceeds release by 1.63 ms. Attributing the remaining difference to a particular operator or to transaction locking would require further evidence.

Four additional isolated whole-process CPU profiles used the same fixture (97 measured executions in each, plus calibration, warmup, setup and verification). For fresh PKs, cumulative CPU in MergeOrder.Call was 0.03 s on release and 0.18 s on the updated PR; lockop.performLock sampled 0.72 s on each. For the multi-unique bulk insert, merge ordering sampled 0.14 s and 0.42 s respectively. On the updated PR the multi-unique insert handler sampled 0.57 s, including 0.25 s in target preparation and 0.25 s in key transitions. These samples identify ordering and multiple-key arbitration as candidates for further work. They do not apportion the outstanding SQL wall-time difference or measure time waiting for locks.

Release comparison across 15 workloads

Two processes per version, 31 SQL samples per process per workload, four-way balanced order. The design requires same-version process median spread at most 2.5% for singleton cases and 5% for batches, and p50 regression at most 5% and 10% respectively. Spread is the larger of the two same-version spreads. A noisy row remains inconclusive.

Workload Release p50 / p95 ms Updated p50 / p95 ms p50 change Spread Result
single_insert 17.653 / 20.474 17.673 / 19.672 +0.11% 2.94% noisy
single_conflict 4.388 / 12.158 4.451 / 17.156 +1.44% 12.34% noisy
single_noop 1.577 / 1.939 1.534 / 1.830 -2.74% 14.43% noisy
bulk_insert_8192 66.011 / 97.605 72.854 / 97.093 +10.37% 2.33% above
bulk_existing_8192 65.075 / 75.439 59.918 / 68.418 -7.92% 2.94% within
bulk_hot_8192_100keys 15.571 / 20.609 15.516 / 19.325 -0.35% 2.08% within
bulk_noop_8192 47.215 / 50.906 42.506 / 46.188 -9.97% 0.86% within
varlen512_insert_8192 84.968 / 98.121 90.586 / 100.319 +6.61% 2.02% within
varlen512_existing_8192 102.337 / 117.315 86.325 / 105.997 -15.65% 2.15% within
varlen512_hot_8192_100keys 32.903 / 42.649 31.425 / 40.339 -4.49% 1.52% within
pk_single_insert 8.290 / 15.637 8.957 / 14.942 +8.04% 8.54% noisy
pk_single_conflict 3.082 / 14.874 3.141 / 13.646 +1.93% 5.97% noisy
pk_bulk_insert_8192 28.361 / 39.516 30.210 / 47.299 +6.52% 4.80% within
pk_bulk_existing_8192 38.433 / 44.034 35.317 / 43.962 -8.11% 2.62% within
ordinary_bulk_insert_8192 63.994 / 72.845 63.904 / 73.527 -0.14% 4.20% within

The matrix has 9 within budget, 5 inconclusive singletons and 1 over budget. For the narrow multi-unique bulk insert (+10.37% in that run), we separately rotated release, previous PR and updated PR across six processes, 97 measured executions per process. Respective p50 / p95 in ms were 66.297 / 97.531, 71.128 / 88.607 and 70.690 / 90.110. Updated vs release was +6.63%, previous vs release was +7.29%, and updated vs previous was -0.61%. This workload already took longer on the previous PR head. Its median crosses the 10% threshold between experiments. Both results are retained and full-matrix performance signoff is open.

The separate 512-row generated-unique case passed its forced-index check on the updated PR. Pooled p50 / p95 were 46.317 / 51.925 ms across 62 samples. The release failed that check in previous QA, so a ratio would compare different results.

The hashmap and operator packages passed 292 tests and subtests under the race detector. The public SQL ODKU suite passed another 106. Coverage includes unsorted repeated keys across batches, a repeat at the exact growth limit, NULL/snapshot fallback, allocation failure and statement rollback. Repository static analysis of the three packages reported zero issues.

Binary and fixture hashes, scheduling order and peak RSS

A = release, P = previous PR, B = updated PR. RSS is the peak of an entire embedded process across its suite. Published benchmark setup.

resolved-panel-data

f44299df9ce12bcc0c90a952de845af752afe5502139a336ab60f8786a676284  base.test
24944eea179d4533806e3bf8e1f4bd2a8fce138bf9d5f0d9208713015008002c  parent.test
ce4b45477f7fadff678e943d5c8d120f0e41bbd20f255e9ceaab3b3412db8bf7  candidate-block.test
2078fb20966749eafd8085425e7181003eb78953d05d181abe89926ddad30a42  fixture.go
A1 peak_kib=1625288 elapsed_seconds=150.04
A2 peak_kib=1634824 elapsed_seconds=150.03
P1 peak_kib=1590240 elapsed_seconds=150.03
P2 peak_kib=1609268 elapsed_seconds=150.00
B1 peak_kib=1570168 elapsed_seconds=150.03
B2 peak_kib=1638560 elapsed_seconds=150.02
0	A1,P1,B2,B1,P2,A2
1	P1,B1,A1,A2,B2,P2
2	B1,A2,P1,P2,A1,B2
3	A2,P2,B1,B2,P1,A1
4	P2,B2,A2,A1,B1,P1
5	B2,A1,P2,P1,A2,B1

full-data

f44299df9ce12bcc0c90a952de845af752afe5502139a336ab60f8786a676284  base.test
ce4b45477f7fadff678e943d5c8d120f0e41bbd20f255e9ceaab3b3412db8bf7  final.test
2078fb20966749eafd8085425e7181003eb78953d05d181abe89926ddad30a42  fixture.go
A1.time peak_kib=1862604 elapsed_seconds=202.34
A2.time peak_kib=1909528 elapsed_seconds=202.37
B1.time peak_kib=1909800 elapsed_seconds=202.35
B2.time peak_kib=1937332 elapsed_seconds=202.36
0	A1,B1,B2,A2
1	B1,A2,A1,B2
2	A2,B2,B1,A1
3	B2,A1,A2,B1
569	B1,A2,A1,B2	1242766.932271

gen-data

ce4b45477f7fadff678e943d5c8d120f0e41bbd20f255e9ceaab3b3412db8bf7  final.test
2078fb20966749eafd8085425e7181003eb78953d05d181abe89926ddad30a42  fixture.go
B1.time peak_kib=1176736 elapsed_seconds=22.79
B2.time peak_kib=1236096 elapsed_seconds=22.79
0	B1,B2
1	B2,B1
2	B1,B2
3	B2,B1
37	B2,B1	1242791.149916

multi-data

f44299df9ce12bcc0c90a952de845af752afe5502139a336ab60f8786a676284  base.test
24944eea179d4533806e3bf8e1f4bd2a8fce138bf9d5f0d9208713015008002c  parent.test
ce4b45477f7fadff678e943d5c8d120f0e41bbd20f255e9ceaab3b3412db8bf7  candidate-block.test
2078fb20966749eafd8085425e7181003eb78953d05d181abe89926ddad30a42  fixture.go
A1.time peak_kib=1520296 elapsed_seconds=70.58
A2.time peak_kib=1512992 elapsed_seconds=70.56
B1.time peak_kib=1537864 elapsed_seconds=70.54
B2.time peak_kib=1518052 elapsed_seconds=70.51
P1.time peak_kib=1509680 elapsed_seconds=70.55
P2.time peak_kib=1517712 elapsed_seconds=70.54
0	A1,P1,B2,B1,P2,A2
1	P1,B1,A1,A2,B2,P2
2	B1,A2,P1,P2,A1,B2
3	A2,P2,B1,B2,P1,A1
103	P1,B1,A1,A2,B2,P2	1242891.058409
Per-process SQL samples in measurement order, milliseconds
resolved-panel-data
pk_bulk_insert_8192
A1 26.237 27.680 28.217 27.000 26.558 26.080 29.137 29.948 27.674 26.990 29.627 28.404 26.559 31.941 27.798 28.618 27.350 26.777 28.394 27.778 31.674 28.081 30.521 35.237 27.411 26.522 36.374 26.070 36.399 25.556 25.421 32.639 25.934 29.483 27.830 26.444 25.434 26.639 24.954 27.248 26.650 27.112 25.842 34.799 27.854 26.999 26.537 28.196 25.860 27.590 25.085 28.439 25.318 24.687 25.311 26.975 62.953 34.744 26.856 25.744 26.459 27.620 26.678 25.426 25.377 25.733 28.188 27.065 26.901 25.021 26.451 25.303 25.125 25.455 24.964 24.477 26.187 28.049 25.529 26.501 27.748 25.654 25.894 26.229 27.114 25.953 25.683 25.243 26.422 42.315 27.119 29.953 66.491 33.686 25.123 27.185 29.658
A2 25.304 24.420 26.928 26.210 25.323 25.739 28.283 26.783 27.345 27.679 27.122 26.920 28.139 27.277 27.391 27.749 27.585 39.669 32.143 27.048 26.802 36.777 27.560 27.971 28.292 28.526 27.270 26.077 25.089 25.528 26.205 24.771 24.987 24.846 25.148 27.742 25.003 30.005 24.457 27.734 25.179 25.728 27.612 28.559 30.577 29.611 28.497 27.180 27.250 25.457 25.361 25.347 25.212 26.377 25.590 26.893 24.972 28.818 26.689 29.538 28.933 58.762 28.391 29.938 25.840 25.744 25.801 25.102 26.335 29.198 24.961 25.402 24.942 29.015 25.162 25.665 24.897 25.176 29.387 25.282 29.648 26.710 28.150 24.719 27.226 28.254 25.826 27.191 27.794 27.108 25.627 24.940 25.933 26.635 25.394 83.318 32.941
P1 28.888 28.233 30.240 28.686 28.333 28.922 30.519 32.675 30.632 30.449 50.475 30.542 29.480 31.639 29.646 30.235 29.309 29.633 33.931 33.471 31.722 30.683 30.464 29.963 30.821 31.751 30.723 31.593 52.053 28.272 28.235 28.293 27.861 28.306 29.347 29.230 28.078 29.352 27.923 27.928 28.379 29.767 29.858 29.048 28.332 30.150 28.542 31.978 29.846 28.288 30.226 27.569 29.070 28.136 28.676 51.531 36.098 29.578 31.433 30.700 32.110 29.009 31.786 52.686 74.100 30.826 30.191 28.689 29.990 28.895 27.690 28.876 29.061 27.948 27.395 27.930 28.138 33.951 28.647 29.593 35.402 33.095 35.932 28.547 30.135 33.060 32.531 28.842 32.408 28.535 27.866 28.380 30.033 28.919 27.966 27.382 39.871
P2 26.946 28.490 27.761 29.909 28.233 28.068 28.564 30.974 31.083 29.585 30.524 30.292 30.532 29.382 34.803 33.588 29.331 46.355 32.231 31.688 29.650 30.448 29.681 30.273 30.451 30.133 32.670 51.780 45.449 29.189 31.863 28.776 30.549 27.550 28.296 28.757 28.327 27.599 28.170 28.169 29.087 31.919 29.919 33.232 28.183 28.760 29.893 29.574 28.408 28.782 27.874 30.071 28.715 27.347 30.827 27.772 27.241 39.606 28.383 28.569 31.839 29.829 66.865 28.289 28.898 41.701 28.188 28.783 30.859 30.504 27.429 27.932 27.700 30.484 27.872 28.446 28.860 30.024 28.087 28.589 27.642 31.092 28.516 33.745 30.508 28.172 28.279 29.351 28.278 27.823 29.302 30.428 27.364 28.339 27.694 29.741 32.010
B1 25.890 26.600 35.495 27.068 30.828 27.571 31.627 28.476 27.984 29.063 29.990 28.914 29.593 30.580 28.473 30.204 29.877 39.598 33.532 28.885 28.809 31.788 29.321 28.489 29.235 28.552 41.726 28.357 27.774 31.365 27.261 28.741 27.337 27.118 29.422 30.365 26.418 27.664 25.957 26.169 26.011 27.183 29.782 29.259 27.997 28.031 27.547 26.866 27.149 28.974 29.020 26.326 28.720 30.209 31.823 30.584 26.651 36.619 28.127 30.203 30.100 30.597 28.058 29.730 28.676 34.388 27.759 27.227 29.149 27.035 27.115 26.624 26.970 28.278 25.891 28.457 26.702 31.709 31.694 28.529 26.675 27.112 28.714 27.566 26.911 27.486 30.255 27.510 36.906 26.856 27.781 30.364 27.291 27.684 28.557 27.040 32.039
B2 27.381 27.413 33.946 28.165 27.125 27.860 27.094 28.747 29.357 29.442 30.337 30.001 29.450 29.716 29.571 27.809 28.478 29.455 32.909 28.911 29.699 39.031 29.357 28.596 44.222 28.448 63.785 30.820 37.021 27.005 27.010 35.641 28.074 26.999 29.406 27.157 28.927 31.192 30.915 33.838 26.863 27.271 27.521 28.649 28.296 28.973 27.861 28.400 28.124 27.653 26.345 29.417 28.081 27.035 29.269 30.101 30.981 33.746 31.131 42.258 27.849 29.837 26.532 26.744 27.281 28.388 26.202 27.438 26.962 28.990 27.448 27.124 28.573 26.435 27.790 27.798 29.152 31.490 27.858 30.617 28.266 33.883 27.228 28.073 30.628 27.781 28.172 30.609 31.263 25.893 28.101 26.790 28.544 28.811 31.987 31.746 35.718
pk_bulk_existing_8192
A1 34.949 34.564 37.158 43.400 39.511 37.389 39.251 44.627 35.817 44.957 38.729 52.842 44.040 39.095 44.767 37.993 41.775 39.247 40.245 39.733 37.113 37.350 41.714 39.869 42.754 44.687 36.245 35.293 58.471 42.860 40.550 57.509 49.476 34.584 43.231 35.285 39.781 35.044 42.117 34.228 35.188 36.085 37.110 39.996 37.215 35.748 44.573 35.452 52.049 46.655 46.539 38.190 51.654 36.360 35.173 36.279 34.615 38.752 42.537 41.338 36.573 40.959 40.563 35.559 39.099 33.628 36.090 41.499 35.365 46.661 48.003 36.443 42.755 34.908 42.425 34.863 34.132 40.665 36.910 40.453 34.405 38.353 39.960 40.751 39.524 36.050 33.955 34.332 42.526 43.897 34.170 43.661 33.994 34.540 40.930 54.898 37.156
A2 38.933 41.171 37.578 42.818 47.712 58.253 42.914 41.176 38.776 37.700 55.633 42.777 50.203 40.700 36.840 41.315 46.034 50.412 37.772 36.867 63.006 41.542 39.782 35.683 48.912 37.369 46.463 40.174 44.145 36.837 47.772 41.435 42.433 34.898 35.976 35.110 34.966 37.155 41.344 34.129 47.933 36.838 38.455 35.484 38.005 42.812 45.427 64.579 35.650 44.569 45.708 35.408 35.228 40.456 39.601 34.648 36.126 36.346 34.840 33.811 34.172 36.195 39.454 36.377 37.765 38.193 43.166 46.312 46.726 51.009 47.030 34.634 34.060 34.135 47.293 34.613 34.908 40.282 36.080 34.183 37.222 41.460 38.190 36.594 34.835 37.351 34.948 42.319 37.523 42.697 37.292 35.270 35.152 42.813 34.975 34.918 35.136
P1 33.159 40.054 39.592 42.496 46.943 43.237 40.469 40.326 37.825 41.381 35.550 45.953 35.720 36.382 37.653 37.950 35.816 40.026 35.766 34.959 35.461 36.998 34.150 36.252 33.192 34.973 32.534 34.243 32.113 32.697 38.091 33.026 33.253 41.207 33.242 33.691 34.337 34.284 35.241 34.389 33.979 34.565 38.861 38.827 37.571 32.783 33.503 73.165 38.754 40.949 47.828 37.391 40.764 33.914 40.413 35.001 40.438 32.636 40.166 34.656 38.158 34.408 32.738 36.069 32.704 35.160 32.460 38.688 41.671 48.675 45.994 35.638 42.161 33.998 34.545 42.185 35.619 33.287 41.472 33.265 33.072 34.211 33.225 41.322 32.327 41.855 33.195 35.007 37.961 37.552 32.437 35.823 33.702 33.582 32.889 38.610 34.877
P2 32.133 44.057 35.664 37.883 34.760 36.215 38.963 42.225 34.482 41.261 46.587 39.955 36.304 39.766 44.119 37.472 34.885 43.599 34.086 33.800 42.437 61.348 41.960 37.103 35.948 39.331 34.631 33.958 32.587 47.089 51.585 35.089 34.237 41.160 33.547 40.191 35.811 34.464 34.087 38.222 33.795 38.023 34.114 32.411 35.631 32.105 40.303 40.509 35.488 42.324 46.838 34.053 32.677 41.516 33.834 34.593 33.727 35.443 45.664 33.839 39.039 34.129 35.372 34.623 34.026 32.846 31.970 35.644 32.462 50.528 42.774 32.293 36.386 34.384 36.387 38.872 34.446 33.186 43.077 42.845 39.530 33.119 39.829 33.900 34.834 34.020 36.298 44.218 32.677 43.842 33.741 38.475 32.792 38.478 37.972 33.026 33.881
B1 31.841 34.030 34.830 36.886 46.545 43.959 37.262 37.213 39.118 35.313 45.488 43.818 38.853 38.031 36.423 35.462 36.003 34.775 38.031 39.769 64.320 34.403 36.836 38.637 41.190 33.834 33.227 34.139 35.193 35.572 37.898 46.164 32.800 33.840 43.119 35.278 36.521 37.988 33.038 32.736 36.113 41.165 67.627 40.170 33.222 36.042 67.799 41.039 36.989 37.275 34.478 34.742 34.524 40.464 31.910 32.376 32.553 33.524 33.639 33.247 32.681 40.990 35.808 35.398 41.031 43.340 34.163 32.938 45.502 43.715 44.330 37.481 34.894 38.829 60.818 47.804 39.156 36.909 32.824 32.780 45.299 32.671 35.703 34.066 43.822 33.177 36.889 33.702 40.033 36.280 33.833 33.231 35.735 35.010 34.131 33.313 38.145
B2 39.102 33.497 35.187 39.899 36.976 37.908 37.383 34.070 33.663 34.130 47.490 41.244 39.656 43.673 36.128 39.766 41.319 39.106 36.672 37.294 39.899 34.836 35.659 45.402 32.563 32.115 37.089 35.259 36.084 44.447 33.060 38.277 34.824 34.858 38.736 40.873 32.830 33.841 34.671 32.718 37.424 34.428 37.577 33.854 39.599 33.802 32.662 36.809 33.453 40.980 62.336 36.369 32.438 34.266 39.925 33.686 32.448 33.750 38.118 32.257 32.559 39.548 33.696 32.540 34.585 33.270 41.527 32.894 33.062 48.024 51.185 32.789 31.854 38.429 32.319 33.599 36.989 36.106 36.336 38.120 35.350 37.800 32.367 37.858 36.146 36.385 32.206 37.418 40.044 35.480 35.495 33.700 38.161 42.074 35.938 39.513 33.534
ordinary_bulk_insert_8192
A1 62.575 61.016 58.676 72.710 72.362 72.084 59.305 62.087 67.715 67.688 63.622 60.917 63.316 67.497 69.194 67.330 67.017 61.904 62.692 66.337 64.562 126.932 58.282 59.042 59.509 67.225 94.512 61.853 68.586 61.895 67.651 63.334 68.811 61.432 62.734 67.012 58.968 65.689 61.334 63.929 60.849 61.075 63.208 63.560 64.929 78.919 82.977 116.339 72.367 67.001 63.807 59.040 61.371 58.625 64.956 59.703 63.440 62.845 63.227 62.099 61.861 64.045 64.739 62.415 62.042 58.131 69.712 60.670 71.591 87.332 60.498 58.886 62.747 60.378 119.100 62.866 65.338 68.126 71.010 57.569 60.079 61.067 67.356 65.034 65.676 58.220 59.159 59.789 63.306 65.943 65.909 61.332 59.337 64.108 57.945 60.154 62.441
A2 63.375 58.794 67.835 59.525 70.814 71.651 64.163 68.127 63.248 62.508 73.244 67.889 66.940 64.692 63.646 60.889 65.221 66.933 75.233 62.448 65.274 63.117 106.369 68.331 70.090 67.614 67.252 63.564 65.117 62.981 62.234 59.839 77.394 58.831 58.680 59.281 64.245 60.933 68.818 61.600 64.264 68.759 66.201 59.877 60.137 66.379 71.829 73.813 64.548 85.191 64.645 60.851 59.217 66.935 63.462 77.524 61.669 61.721 63.466 63.865 65.581 63.751 61.102 59.864 72.009 64.036 66.638 79.921 76.235 78.961 60.971 58.120 59.723 109.487 60.167 106.661 70.168 63.019 58.982 70.532 66.786 64.547 62.612 61.203 60.231 59.859 62.135 63.405 58.240 61.818 60.814 68.280 58.657 58.356 59.763 58.258 62.418
P1 70.113 57.128 58.580 57.905 70.618 71.852 62.197 63.989 62.156 70.787 74.295 65.970 63.602 61.507 70.369 60.818 72.856 67.583 63.719 61.588 70.563 64.612 63.996 62.525 57.643 70.332 62.454 64.946 61.912 62.917 63.961 63.552 62.214 61.737 60.515 61.375 62.890 60.436 62.358 65.829 67.810 61.911 59.762 60.447 67.226 81.690 71.131 141.115 74.535 123.750 64.773 70.199 64.728 69.300 60.801 59.084 74.245 62.961 59.966 68.189 60.598 63.803 68.414 76.248 65.698 70.965 60.457 65.508 86.498 76.146 64.045 59.585 63.496 64.478 72.276 71.280 58.331 64.925 65.479 65.000 61.350 60.384 60.267 69.820 67.230 66.720 62.134 62.837 73.404 63.169 61.201 62.038 59.334 60.766 60.614 61.446 61.079
P2 57.895 58.232 67.216 63.136 74.360 64.248 62.376 63.177 66.963 62.181 61.431 74.310 67.620 67.980 74.749 61.111 66.874 70.574 63.315 65.665 71.336 61.223 134.712 65.512 70.624 71.263 70.063 62.053 64.509 62.502 60.789 59.402 65.154 61.242 58.525 58.777 65.865 70.962 62.750 60.505 59.952 69.221 65.557 65.917 83.331 68.877 58.782 66.899 75.077 75.990 65.282 59.716 58.340 65.517 58.633 60.202 60.224 61.746 61.293 69.601 65.840 61.791 59.386 61.225 62.104 63.049 72.257 65.171 77.396 69.821 63.609 59.493 60.564 63.510 101.599 63.180 67.690 59.841 59.454 65.065 67.504 75.409 67.680 61.821 61.772 76.723 65.666 67.317 79.082 73.652 64.282 61.108 59.151 63.665 65.923 56.864 58.829
B1 65.953 58.952 62.655 78.777 70.703 71.095 63.238 73.514 66.782 67.981 70.586 69.094 64.943 60.737 63.292 62.657 67.501 68.826 64.871 64.451 63.480 69.003 102.726 62.986 77.824 65.656 70.559 61.822 61.266 63.032 61.508 62.484 63.548 61.139 68.167 58.666 60.959 59.183 61.020 67.017 67.075 64.387 59.527 62.221 59.769 66.995 61.791 76.069 69.063 75.746 68.655 58.766 60.606 64.815 62.776 59.096 61.204 67.937 60.851 63.434 61.259 59.128 80.975 65.685 66.273 73.284 62.232 72.338 63.791 79.096 62.017 63.260 60.440 79.302 65.893 68.303 60.986 58.795 67.138 78.342 66.109 59.791 59.436 59.883 64.259 66.066 59.810 60.850 72.621 63.770 64.819 80.624 61.494 63.127 57.684 64.093 63.458
B2 59.460 58.950 64.174 76.072 69.850 68.580 68.924 61.225 69.145 64.724 61.227 66.412 68.461 69.209 73.126 61.278 62.923 62.350 67.940 69.130 77.092 60.891 102.193 58.114 60.440 68.861 61.833 64.389 60.211 61.733 60.527 62.051 61.493 63.322 72.007 64.423 59.616 64.761 80.863 67.103 62.286 61.279 64.965 64.483 73.210 72.521 79.925 72.803 134.192 103.370 62.267 59.944 60.922 58.717 59.602 59.056 61.504 62.467 61.047 59.613 66.271 63.819 63.018 63.620 61.963 58.795 84.972 62.643 74.375 60.226 61.026 63.071 62.400 60.188 66.990 127.478 69.778 68.003 59.542 61.891 64.070 63.387 68.324 67.183 64.725 57.892 59.375 68.362 74.943 69.036 63.831 70.431 61.567 61.582 63.400 63.579 60.436
full-data
single_insert
A1 16.713 15.815 17.382 17.373 17.660 17.092 17.195 17.153 16.461 18.927 16.901 18.778 17.290 18.587 17.841 16.626 17.611 18.092 17.756 19.259 16.643 15.622 17.457 16.372 16.544 28.558 18.704 17.516 17.416 17.761 18.312
A2 17.928 17.307 15.621 17.803 16.066 17.808 22.047 17.645 18.556 16.753 16.353 18.294 16.266 18.831 18.241 18.628 17.020 17.647 16.111 19.543 16.355 17.864 20.474 19.390 19.886 34.659 18.695 19.378 18.357 17.208 18.883
B1 16.997 18.592 16.748 17.459 15.659 19.293 19.029 17.615 18.324 15.758 17.800 16.217 15.962 18.834 16.973 17.414 17.810 17.877 17.866 18.470 17.465 18.392 17.646 17.229 19.672 27.305 34.722 16.446 17.246 16.531 15.923
B2 17.920 17.679 15.771 17.978 16.892 18.626 18.385 21.552 17.950 17.141 16.607 17.141 16.816 17.952 17.498 19.317 18.800 18.693 16.232 17.666 15.452 18.448 16.074 18.099 17.300 18.274 18.218 17.626 19.379 17.117 18.419
single_conflict
A1 3.574 5.014 3.652 5.411 6.326 11.823 8.026 22.823 5.152 3.615 5.135 4.653 3.666 3.655 3.757 4.167 4.430 4.784 6.258 4.767 5.151 9.314 12.147 6.354 4.142 4.082 3.882 4.035 4.060 3.877 3.771
A2 3.642 3.559 4.102 6.354 6.121 7.799 7.611 10.251 12.416 8.684 4.204 3.940 3.984 6.149 4.000 3.957 4.042 3.965 9.345 6.527 9.520 23.201 12.158 6.244 3.905 4.217 3.753 4.126 4.347 3.895 3.966
B1 3.411 3.383 3.629 4.290 6.371 7.983 10.148 11.022 6.836 5.170 3.603 4.112 3.577 3.653 3.797 3.678 3.738 4.679 17.156 12.686 12.702 18.138 16.151 6.377 4.858 3.524 4.105 3.769 3.746 3.527 3.590
B2 3.489 3.558 3.582 6.231 19.122 10.763 8.039 17.929 13.837 6.665 4.619 4.613 3.788 4.152 4.141 3.967 3.905 4.131 9.129 7.739 5.284 11.363 7.481 6.294 3.766 3.898 5.377 4.110 3.895 3.727 5.054
single_noop
A1 1.536 1.485 1.397 1.487 1.536 1.661 1.722 1.630 1.512 1.774 1.838 1.402 1.565 1.463 1.457 1.558 1.472 1.484 1.401 1.419 1.390 1.376 1.584 1.943 1.647 1.531 1.716 2.073 1.696 1.708 1.458
A2 1.504 1.584 1.493 1.450 1.464 1.500 1.763 1.632 2.155 1.559 1.777 1.590 1.531 1.888 1.524 1.469 1.688 1.604 1.571 1.617 1.544 1.710 1.652 1.743 1.734 1.917 1.884 1.939 1.622 1.710 1.487
B1 1.259 1.330 1.299 1.621 1.259 1.540 1.451 1.592 1.449 1.381 1.536 1.383 1.349 1.411 1.376 1.392 1.376 1.289 1.438 1.428 1.511 1.702 1.583 1.532 1.561 1.554 1.444 1.407 1.501 1.624 1.454
B2 1.652 1.581 1.512 1.563 1.415 1.830 1.680 1.778 1.582 1.881 1.617 1.459 1.660 1.448 1.450 1.462 1.462 1.657 1.508 1.740 1.622 1.744 1.800 1.925 1.686 1.690 1.773 2.041 1.686 1.531 1.573
bulk_insert_8192
A1 97.605 88.321 84.032 60.895 64.590 65.190 73.491 84.842 67.125 66.504 66.112 64.491 64.408 64.973 65.704 75.602 66.068 69.889 72.455 82.253 67.635 106.809 66.137 67.436 63.815 62.137 60.460 64.374 62.920 63.561 62.182
A2 93.543 92.314 82.327 60.152 58.643 63.301 97.900 65.909 68.436 65.869 67.285 69.950 69.287 63.760 67.612 63.747 70.246 65.271 66.321 72.971 71.695 65.609 188.815 65.899 61.318 61.336 62.213 65.955 65.717 60.323 62.232
B1 79.654 83.701 75.880 73.664 70.644 63.264 93.411 101.622 71.211 70.690 75.033 70.240 80.141 76.001 73.202 69.251 72.835 73.939 73.717 75.319 83.604 70.611 70.643 114.118 77.311 72.498 65.852 67.352 68.140 67.834 68.051
B2 115.432 83.586 97.093 73.356 67.414 65.157 66.639 77.605 73.062 78.083 70.060 75.173 75.866 71.534 70.111 74.065 75.469 70.008 69.373 81.518 71.083 74.175 73.147 71.191 68.404 72.873 67.770 65.959 69.991 66.598 66.387
bulk_existing_8192
A1 61.765 61.785 64.246 62.564 68.950 65.489 66.321 67.696 66.897 86.203 62.548 66.806 64.750 66.528 61.650 64.106 63.440 67.092 63.612 63.061 65.138 64.947 62.320 64.455 65.540 62.847 67.379 61.481 62.525 75.439 75.477
A2 69.717 62.553 63.808 68.202 69.848 74.272 70.888 66.782 80.226 72.465 67.704 68.163 66.653 66.964 63.213 64.331 69.941 65.137 66.729 62.264 64.976 64.293 64.595 64.585 62.778 65.012 68.782 63.865 62.859 63.857 70.211
B1 57.769 56.142 55.487 60.043 64.505 63.015 61.167 60.562 68.418 69.539 62.464 59.049 60.017 62.995 58.320 57.833 59.845 56.783 58.822 55.517 59.456 61.378 67.779 59.042 57.610 56.586 59.279 54.422 65.645 61.335 56.928
B2 59.992 56.651 60.032 57.796 66.795 59.709 69.561 62.696 59.710 60.955 66.794 64.513 55.628 59.770 61.525 58.150 60.026 61.779 59.030 55.381 57.924 58.046 63.573 61.026 56.778 61.370 58.484 60.202 59.138 71.304 65.826
bulk_hot_8192_100keys
A1 14.726 15.029 15.763 15.078 14.940 14.262 14.211 13.957 14.226 14.336 14.412 14.544 14.479 14.907 15.301 16.265 15.355 16.203 15.629 16.685 15.771 15.847 15.269 15.943 15.596 20.419 21.029 20.609 17.221 15.726 15.517
A2 15.669 14.672 14.541 14.843 15.094 14.781 14.481 14.089 15.695 14.528 14.227 14.886 14.721 16.107 15.976 16.094 15.332 15.545 15.963 15.724 15.863 15.674 16.821 16.562 16.044 16.158 20.967 21.173 16.278 16.212 15.531
B1 15.908 14.547 14.792 15.107 16.291 17.215 14.736 13.733 14.404 13.788 14.354 17.530 15.011 15.374 15.531 15.527 15.283 15.611 15.774 15.380 16.518 15.632 15.018 15.378 15.119 16.906 24.218 17.239 18.879 15.980 15.858
B2 18.406 16.091 14.600 15.892 14.681 14.315 14.786 14.034 13.887 14.270 14.442 21.047 14.602 14.914 15.078 16.087 15.391 15.055 17.075 15.552 15.973 16.091 15.804 15.304 15.504 19.402 19.325 16.878 15.822 15.344 15.774
bulk_noop_8192
A1 47.271 44.925 45.506 46.450 47.475 48.049 47.488 47.929 48.478 50.559 50.906 46.918 47.598 51.844 48.395 47.940 47.929 46.845 47.174 45.854 46.698 46.809 45.729 46.537 46.581 45.927 45.684 45.650 46.635 45.711 47.562
A2 46.255 44.799 46.334 44.563 49.024 49.793 48.172 48.134 49.765 47.320 53.602 54.410 49.084 47.256 49.460 47.685 47.987 47.745 46.483 46.796 46.829 44.509 46.367 48.264 47.626 45.614 45.996 45.668 48.219 45.569 46.835
B1 40.897 46.188 42.816 43.919 41.587 42.277 41.591 42.846 43.019 42.877 43.524 43.203 43.426 41.877 42.395 41.724 41.231 43.910 48.458 40.773 41.241 40.574 41.700 40.856 49.933 39.796 42.078 42.711 41.669 42.477 41.810
B2 42.594 41.558 41.594 42.666 42.519 44.853 43.396 43.984 43.168 43.609 45.166 42.795 44.445 43.661 43.755 42.897 51.931 41.624 42.641 41.620 41.719 42.493 41.452 41.037 41.533 43.479 42.838 41.923 41.201 41.358 42.120
varlen512_insert_8192
A1 86.410 88.968 83.773 82.750 84.141 85.286 85.028 91.495 81.829 83.144 84.036 84.907 82.966 88.494 80.250 81.980 84.047 85.811 95.342 86.305 83.833 107.594 83.284 87.291 82.063 95.099 81.339 83.670 89.439 81.851 86.782
A2 79.935 80.062 81.452 88.943 88.138 85.232 100.417 89.440 85.838 83.968 83.819 90.157 96.794 83.116 83.432 85.953 79.282 83.167 81.597 84.717 82.778 117.867 89.598 89.890 83.629 82.768 89.275 86.052 90.346 90.753 98.121
B1 89.348 87.447 86.992 94.278 94.161 100.775 91.346 90.978 90.853 88.651 89.142 89.671 92.705 93.393 87.653 89.835 88.862 88.553 89.618 96.474 90.214 90.175 161.202 97.077 95.062 90.120 88.060 88.366 91.701 93.086 100.319
B2 87.829 90.547 86.899 95.090 90.702 94.006 97.210 90.518 95.287 93.643 89.842 90.704 88.674 90.381 90.292 89.648 89.195 92.393 88.746 89.280 88.382 92.738 89.020 95.399 97.134 95.245 95.555 88.201 104.856 94.969 90.625
varlen512_existing_8192
A1 100.876 100.047 104.984 103.033 108.471 102.727 116.058 117.576 104.636 101.863 112.615 101.843 118.705 102.347 113.124 98.285 101.764 98.720 105.947 99.849 96.363 104.732 99.780 104.671 112.542 103.263 99.176 97.059 101.280 98.616 96.726
A2 99.672 102.749 102.757 99.162 117.315 101.408 100.869 100.766 110.883 114.113 104.697 111.754 129.086 111.010 100.134 96.881 106.129 98.842 97.117 102.270 102.328 102.746 99.910 96.015 98.995 98.818 112.987 103.694 110.911 107.520 98.218
B1 85.785 86.053 90.267 83.776 84.923 105.997 89.232 106.815 85.222 89.649 92.579 101.512 106.028 81.787 81.787 96.966 83.774 81.304 81.486 86.421 85.786 91.725 85.229 81.106 91.407 84.160 82.644 94.194 83.849 95.431 90.754
B2 93.343 102.023 85.945 85.080 102.087 100.449 86.229 85.810 98.063 105.802 98.916 101.754 88.081 96.023 88.353 83.340 84.380 82.353 90.629 83.428 80.843 87.902 81.644 80.331 86.096 99.238 85.522 81.138 142.260 98.152 82.778
varlen512_hot_8192_100keys
A1 30.550 31.179 31.499 30.240 31.058 30.818 30.903 30.810 35.866 33.885 33.699 32.955 33.045 32.213 33.152 32.468 37.485 36.776 34.094 32.455 35.441 31.397 31.984 33.482 32.191 33.081 37.409 43.161 38.445 32.626 39.661
A2 32.851 32.022 31.747 32.215 32.084 31.095 31.853 42.649 36.086 34.690 33.513 33.268 31.848 32.258 31.880 31.584 32.371 39.913 33.410 32.144 34.724 33.588 31.712 35.920 31.428 32.455 36.396 39.343 43.364 47.528 33.299
B1 31.125 29.123 30.541 29.775 31.813 29.623 29.173 30.298 34.560 31.599 31.044 31.607 31.665 30.700 30.497 30.638 31.123 41.332 31.108 31.968 31.825 29.840 30.327 30.138 30.611 31.800 60.186 38.060 35.806 33.423 31.014
B2 30.856 29.974 30.496 30.536 30.234 30.904 29.627 33.672 37.214 32.163 32.031 31.420 31.429 29.849 31.198 31.771 37.763 35.380 34.335 31.463 31.652 31.582 30.243 31.328 32.176 30.509 40.339 37.408 38.279 41.229 34.187
pk_single_insert
A1 11.668 10.582 10.665 9.180 8.276 7.484 8.382 6.988 6.703 7.814 8.707 8.816 7.760 7.862 8.680 6.777 6.764 9.155 6.084 8.471 8.295 7.951 8.285 7.907 9.580 5.710 17.137 20.218 13.392 18.135 9.541
A2 14.974 10.558 14.906 8.587 15.637 8.056 7.219 9.219 7.970 6.965 6.981 6.979 6.887 9.514 6.951 7.288 5.911 7.036 7.139 13.273 8.086 9.035 7.894 7.932 7.809 7.479 13.127 12.067 13.411 10.335 15.051
B1 16.531 12.204 10.512 6.985 8.567 9.402 6.914 8.487 8.309 9.141 8.095 9.100 8.002 7.935 8.023 7.117 10.053 8.019 8.909 9.672 8.126 9.188 7.851 6.976 6.767 8.151 9.776 10.330 9.941 14.942 9.976
B2 12.135 13.037 7.972 9.005 9.305 9.299 6.957 9.494 9.558 7.061 8.267 9.372 9.724 8.859 8.321 7.128 9.423 9.349 12.919 8.226 7.223 8.475 8.705 7.169 7.001 8.313 10.066 14.791 16.512 22.392 9.410
pk_single_conflict
A1 2.892 2.847 2.968 2.970 2.888 3.223 9.265 13.020 19.680 11.193 5.398 5.154 3.034 3.307 2.878 3.364 2.882 3.239 2.878 2.839 3.036 2.942 4.189 3.397 3.002 3.212 2.918 2.985 3.187 3.351 7.209
A2 3.080 4.606 2.896 3.277 2.952 4.142 14.874 10.660 17.252 16.313 4.002 2.880 3.427 3.194 2.978 2.999 2.903 2.926 3.016 2.976 3.502 3.083 3.172 3.033 2.922 4.186 2.941 2.884 2.983 3.008 4.802
B1 3.005 3.090 2.977 2.871 3.285 2.864 8.290 27.770 24.292 8.140 6.126 3.012 3.054 3.036 2.882 2.821 2.805 3.012 2.764 2.921 2.987 3.002 2.830 2.884 2.993 2.783 2.955 3.062 3.228 3.384 7.773
B2 3.081 3.437 3.174 3.693 3.269 3.214 5.886 13.646 15.277 10.482 6.499 3.324 3.127 3.076 3.042 3.184 3.054 3.153 3.103 3.158 3.167 3.196 3.305 3.205 3.279 3.025 3.148 3.069 3.151 3.134 5.775
pk_bulk_insert_8192
A1 25.729 25.072 35.493 39.241 34.307 33.230 25.767 25.816 26.066 25.833 25.894 26.565 26.379 26.653 32.529 39.516 51.710 50.731 33.392 28.838 28.097 26.852 28.284 28.882 27.042 26.759 26.539 37.207 30.038 26.770 28.779
A2 25.186 25.614 33.705 35.196 30.852 30.276 26.538 35.579 26.873 27.550 30.317 27.920 28.088 34.017 32.469 30.221 41.483 39.316 29.499 33.890 26.598 27.055 38.194 26.724 28.438 28.620 27.155 28.913 27.025 26.657 27.989
B1 27.271 29.812 32.702 60.161 33.086 30.246 28.516 30.173 27.874 30.810 28.388 28.716 30.982 30.157 34.233 48.539 53.330 46.946 35.797 28.791 27.831 32.390 30.752 29.591 34.278 27.394 27.929 43.468 33.729 34.562 28.437
B2 30.889 26.678 38.251 35.601 41.749 28.136 28.765 29.933 30.410 28.030 28.276 27.354 28.618 28.982 31.941 31.816 47.299 39.570 36.444 31.668 31.165 28.365 28.897 27.759 27.873 29.343 28.574 30.495 32.447 28.412 28.888
pk_bulk_existing_8192
A1 34.821 37.372 37.492 36.531 37.943 40.299 36.527 40.492 36.505 36.725 39.245 43.974 46.002 43.095 38.562 37.446 36.042 40.664 44.034 35.743 38.974 36.121 37.175 41.889 35.836 41.366 37.543 40.166 38.416 36.379 52.584
A2 35.944 35.023 34.628 34.565 36.762 42.199 42.811 37.987 36.425 35.267 38.693 51.395 43.494 40.313 39.963 38.451 41.008 39.650 42.261 42.204 36.894 36.787 37.877 37.877 39.436 39.352 38.818 42.426 36.873 36.437 39.799
B1 36.045 36.274 31.931 31.540 32.360 33.489 35.191 43.962 36.985 39.084 37.650 43.441 37.967 35.848 34.737 37.484 34.581 32.783 33.064 39.964 35.977 34.586 37.120 46.371 34.424 35.176 34.932 33.939 34.055 35.758 41.418
B2 39.183 32.932 32.558 36.817 32.668 33.355 34.561 34.846 38.182 34.466 34.343 38.837 39.307 34.366 49.509 39.438 35.443 34.198 34.734 35.558 36.817 37.957 39.475 46.075 34.112 33.341 34.762 33.542 33.982 42.109 38.661
ordinary_bulk_insert_8192
A1 58.735 66.300 68.562 61.001 61.174 67.206 68.063 73.915 67.668 61.793 67.447 63.206 66.103 72.845 64.108 59.285 62.952 66.898 69.567 78.685 62.182 67.295 60.816 64.784 65.880 59.619 61.401 116.535 61.297 63.172 67.703
A2 65.159 60.851 57.613 60.528 69.727 56.475 63.890 60.298 70.071 66.047 62.522 71.665 66.140 62.524 64.563 62.662 65.772 60.989 65.279 64.262 61.763 60.244 67.745 60.425 61.693 61.953 63.227 68.144 63.608 64.097 58.730
B1 58.177 59.408 63.860 60.423 58.347 56.777 66.131 69.915 71.833 61.521 63.893 72.534 65.704 64.670 64.648 68.394 61.837 63.634 65.453 67.355 63.151 62.911 66.870 63.507 60.855 63.915 63.512 72.024 315.865 63.561 61.144
B2 60.206 63.834 57.646 58.666 72.546 62.958 65.523 73.527 62.866 68.680 79.490 68.784 68.512 67.265 62.188 62.321 67.785 64.156 65.448 64.199 71.232 66.010 70.802 66.083 60.964 62.122 61.620 61.555 79.450 61.449 58.980
multi-data
bulk_insert_8192
A1 71.611 69.529 63.584 65.009 71.588 65.301 104.683 65.110 65.825 68.199 75.210 65.833 63.864 61.552 63.712 67.542 64.498 70.953 61.845 61.704 66.949 60.575 61.039 65.072 63.681 61.534 69.213 59.844 60.046 299.287 120.263 66.513 66.319 61.489 72.872 67.099 66.404 61.860 73.786 64.055 64.214 65.720 62.458 66.820 67.665 66.327 65.704 64.620 66.573 104.485 71.799 66.354 61.654 71.457 65.890 68.280 64.031 64.829 65.662 62.477 75.348 68.074 60.531 62.376 68.227 60.579 83.195 59.787 67.597 65.546 67.220 68.030 109.574 75.988 76.121 61.026 65.760 72.097 69.594 74.382 61.067 75.297 71.289 62.461 60.577 60.016 70.084 72.118 68.398 61.454 61.802 74.200 68.018 87.201 65.492 65.438 67.322
A2 67.907 63.192 68.780 66.347 70.907 72.140 70.379 65.492 70.949 63.440 67.016 73.902 104.055 82.021 66.590 64.099 66.957 61.707 68.676 66.837 67.071 63.116 60.955 60.675 59.391 66.633 65.705 59.438 61.382 66.151 68.821 75.705 61.808 61.611 66.521 66.935 63.253 60.845 97.531 67.967 63.842 61.950 63.352 61.156 65.057 60.907 61.983 102.129 68.267 71.209 63.218 65.908 66.275 63.843 69.740 64.901 73.310 59.327 90.457 62.667 77.000 61.968 74.097 70.949 64.919 68.055 74.019 69.569 81.604 93.780 66.549 62.054 61.188 73.894 65.600 65.192 60.508 60.542 64.951 86.346 148.153 66.018 377.375 75.230 70.336 75.736 65.346 67.023 65.489 65.356 65.413 65.387 61.899 69.023 69.196 61.991 61.994
P1 75.416 77.140 77.579 77.155 78.240 69.751 71.094 70.046 73.172 88.035 77.530 74.089 105.007 67.757 67.190 66.814 68.244 88.607 66.333 69.406 65.973 66.737 67.640 67.732 70.040 68.967 66.865 68.449 67.567 71.470 68.219 67.140 75.564 76.177 70.341 66.221 76.393 70.670 76.609 81.328 67.843 65.531 69.767 66.924 64.829 86.725 80.983 92.399 73.440 87.126 69.920 68.055 68.332 67.925 80.324 65.472 78.278 80.550 82.604 65.969 70.036 67.464 73.829 66.781 75.983 74.414 70.937 70.589 74.527 77.143 82.966 120.483 67.647 83.934 67.794 66.048 66.917 85.337 70.796 82.867 70.967 76.256 76.299 80.947 72.728 65.677 69.113 76.570 77.474 68.129 65.765 81.304 74.536 71.183 68.238 76.095 68.627
P2 103.382 69.973 69.869 78.028 87.224 68.046 74.918 71.141 74.971 69.827 80.156 153.077 99.747 74.480 70.809 72.779 71.280 83.726 76.626 68.985 72.125 67.403 66.207 66.097 73.372 68.534 65.264 72.465 66.393 72.448 71.763 72.737 72.955 73.517 81.937 65.503 66.153 67.084 72.748 72.457 67.390 70.687 73.072 66.311 68.843 70.141 70.657 68.553 78.009 70.578 67.758 83.089 70.569 76.026 77.495 65.763 69.887 100.702 67.535 73.883 80.806 67.800 68.029 72.019 69.140 67.386 79.703 77.810 96.753 71.114 70.843 80.573 104.591 68.344 67.604 74.650 65.745 71.386 66.721 86.563 73.459 67.475 72.405 82.235 71.973 77.211 78.709 67.524 66.744 66.981 74.647 78.634 67.887 72.033 65.455 67.401 66.987
B1 77.618 68.892 72.475 69.547 75.072 77.461 87.663 72.014 73.528 81.258 74.264 78.270 74.360 66.834 69.684 72.437 65.758 72.723 74.196 86.168 67.646 68.655 72.515 73.019 68.622 66.849 67.313 67.892 79.219 68.839 69.997 67.133 70.804 68.786 66.638 66.437 67.279 68.553 73.773 74.248 68.501 66.602 69.275 70.770 66.992 70.962 71.153 93.048 103.890 69.224 67.918 73.497 68.306 67.910 65.964 72.602 72.314 65.300 73.812 68.575 69.540 70.140 78.218 78.876 74.793 77.184 78.091 70.704 69.413 70.370 78.717 119.312 72.756 73.108 72.842 71.056 75.441 68.916 67.251 80.787 75.423 67.411 86.109 74.730 76.855 68.328 67.171 67.705 71.262 100.673 70.930 92.185 67.618 69.217 111.757 73.357 73.213
B2 78.924 69.612 88.056 70.791 69.082 69.848 69.709 70.645 87.989 70.233 133.752 73.421 70.132 74.790 72.596 79.269 65.142 70.852 72.580 70.114 72.896 70.608 68.739 65.636 66.418 65.473 65.258 72.662 73.823 78.585 68.460 71.089 67.503 67.322 71.587 68.286 71.791 68.021 79.444 67.247 70.725 69.085 65.527 77.021 70.401 65.865 69.453 70.621 68.312 70.467 66.120 110.149 72.354 71.205 69.115 65.383 66.961 77.992 67.570 70.306 75.729 65.730 88.242 65.742 69.464 66.041 75.477 79.743 79.364 73.962 72.990 78.854 97.877 69.478 67.064 82.775 68.552 77.048 68.671 81.943 90.110 77.143 67.554 66.416 65.754 73.610 68.170 70.677 65.551 66.213 66.983 66.379 69.211 71.976 65.701 66.055 71.300
gen-data
generated_unique_512
B1 42.599 43.371 47.556 47.730 49.301 53.369 46.932 49.235 49.327 49.047 47.593 48.766 49.045 60.082 44.066 43.275 51.925 50.699 44.284 42.504 43.456 42.751 43.002 43.159 43.584 42.795 43.253 43.867 43.533 47.122 47.435
B2 42.091 43.172 51.420 47.774 47.524 46.492 47.602 47.920 47.686 48.688 48.736 47.355 49.067 60.158 43.729 42.317 44.902 48.154 46.142 43.351 43.292 42.631 43.344 43.585 43.681 42.766 43.104 42.759 45.494 48.848 49.104

@XuPeng-SH

XuPeng-SH commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 74b00883105c75eda926e7fd017c490f8c658fad

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 74b00883105c75eda926e7fd017c490f8c658fad

Assessment: approve

The new single-key insert path reuses the existing ownership index and returns dependent actions to the ordered resolver. Targeted correctness, failure-cleanup, race, and public SQL checks passed. The supplied matched samples show a 3.04% median improvement over the preceding head for the affected primary-key batch.

Model: gpt-6.1-terra / max

Session: 01a22b07-00b6-7e32-b0a1-3099d0b867c7 · slot 1 · generation 39

Validation:

  • Isolation preflight and native-input audit passed. Receipts: checks/1796061783453038515-3.json and checks/1796061783801370052-3.json.

  • Focused ODKU and hash-map tests passed, including repeated keys at the growth boundary, allocation failure, reset, and grouping fallback. Targeted race tests also passed. Receipts: checks/1796061965766054988-4.json and checks/1796062273077923775-3.json.

  • Public ordered-upsert and writer-rollback tests passed. A separate, retained test overlay exercised 1,500 string primary keys with repeated owners through the public SQL frontend. Receipts: checks/1796062095310884260-3.json and checks/1796062366570245763-4.json.

  • Recomputed the author-supplied benchmark samples and checked the assigned diff for whitespace errors. Receipts: checks/1796062119261041856-4.json and checks/1796062444347424665-3.json.

  • Reused the preceding review’s traceable storage, partition, spill, and remote-read evidence for unchanged paths. The discussion assessment accounts for all 55 indexed items.

Limitations:

  • The benchmarks were supplied by the author and were not independently rerun. The full release matrix remains open: five singleton comparisons were noisy, and the multi-key batch measured 10.37% slower in one run and 6.63% slower in a longer repeat.

  • Tests ran on the assigned head. The target’s later vector-index changes were inspected for overlap but were not tested in a merged tree.

  • The frozen CI snapshot showed shared build, unit-test, and static-analysis jobs in progress.

@XuPeng-SH

XuPeng-SH commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: daec2409994574a2ad298a1d95bf07abd4fa3e0c

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: daec2409994574a2ad298a1d95bf07abd4fa3e0c

Assessment: request_changes

The ordered-action owner, writer fence, and captured transaction view have distinct responsibilities and reuse existing execution and storage mechanisms. The new affected-row and bulk-action paths passed focused checks. One regression remains in sort memory attribution. The earlier full-matrix performance dispute was narrowed by later matched comparisons; those results do not establish equivalence for every workload.

Model: gpt-6.1-terra / max

Session: 01a22af4-cf2a-7f70-88e4-931bbf57d739 · slot 2 · generation 14

  • P2 pkg/sql/colexec/mergeorder/order.go:592: An in-memory sort uses an Order child whose owned output is transferred directly to MergeOrder.
    Impact: The retained sort run is omitted from both operators' MemorySize statistics, so EXPLAIN ANALYZE underreports sort memory and can obscure a memory-heavy sort. This is a diagnostic regression; it does not establish a billing or spill-budget failure.
    Evidence: Order.appendBatch allocates its retained batch through AppendWithCopy, but Order does not record that allocation. The transfer branch skips MergeOrder's analyzer.Alloc. A matched operator probe retained a nonempty three-byte output while reporting order_memory=0 and merge_memory=0; the parent reported merge_memory=3. A public three-CN EXPLAIN ANALYZE probe also showed the sort figure fall from 16 KiB to 8 KiB. Account for the actual owned allocation once, either in Order or when ownership transfers, and cover the attribution with a regression test.

Validation:

  • Private /tmp and loopback preflight passed; native provenance matched 170 source inputs. Receipts: checks/1796066672269472503-3.json and checks/1796066711125362730-3.json.

  • Focused order, merge-order, ODKU owner, and compiler tests passed on the assigned head; owners-clean.stdout.log and checks/1796067901519097751-3.json.

  • Public systematic ODKU SQL passed, including both CLIENT_FOUND_ROWS modes and the 60,000-row wide-insert case. Partitioned ODKU insert, update, and composite-key cases also passed; public-odku.stdout.log, partition-odku.stdout.log, and checks/1796067480155621166-3.json and checks/1796067992566825101-3.json.

  • A corrected three-way overlay of the advanced target passed selected public SQL, ordered-index planner, and retry tests; target-integrated-corrected.stdout.log and checks/1796067676606502655-3.json.

  • Head and parent sort-memory probes and public EXPLAIN probes passed as diagnostic executions; their logs and receipts are indexed in validation-evidence.json. The earlier failed probe and incorrectly ordered overlay were corrected diagnostic errors.

  • The diff whitespace check passed, the source remained clean, and discussion-assessment.json accounts for all 57 indexed items; review-audit.log and checks/1796068171208226475-5.json.

Limitations:

  • The frozen CI snapshot had build, unit, coverage, and static-analysis jobs in progress; upgrade jobs were skipped. Broader race and BVT suites were not independently rerun on this head.

  • Released-binary 4.2.9 or hotfix upgrade and restore tests were not run. No changed durable encoding was identified; the reviewed plan and pipeline fields are transient under the documented shutdown-upgrade policy.

  • The scoped performance samples were author-supplied and independently recomputed in prior review; the broader matrix and optimistic incremental-deduplication scan cost remain inconclusive.

@XuPeng-SH

XuPeng-SH commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 0e0014eb443cebf061ec7856f8b89751780b829f

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 0e0014eb443cebf061ec7856f8b89751780b829f

Assessment: approve

No actionable findings remain. The ordered action owner, compiler result fence, and engine-owned transaction view have distinct responsibilities and reuse existing execution and storage mechanisms. The latest change resolves the previously reported sort-memory attribution defect. Earlier performance concerns were narrowed by matched comparisons; the full workload matrix remains inconclusive.

Model: gpt-6.1-terra / max

Session: 01a22aff-bb68-7e31-ae71-ee4ab48ad9d0 · slot 0 · generation 45

Validation:

  • On the assigned head, the MergeOrder attribution and reset tests passed, as did the partitioned ordered-upsert test covering inserts, updates, and composite keys. Receipts: checks/1796089068868090973-3.json and checks/1796089150594658120-3.json.

  • Reused the preceding review’s public SQL, planner, and compiler checks after matching all 22 target-overlay Go files to the current source. Those checks included ordered upserts and both CLIENT_FOUND_ROWS modes.

  • The private /tmp and loopback preflight passed. Native provenance matched 170 source inputs and five outputs, and the assigned diff passed git diff --check.

  • The discussion assessment covers all 59 indexed entries. review-audit.log reconciles the retained logs, receipts, and clean source identity.

Limitations:

  • The first focused test attempt timed out while fetching dependencies; it did not run tests. The retry passed after switching to a responsive Go proxy.

  • The full performance matrix was not independently rerun. Earlier matched samples do not establish equivalence for every workload.

  • The frozen CI snapshot had unit, coverage, and static-analysis jobs still in progress. The distributed row-count fixture and released-binary upgrade were not run locally.

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working kind/documentation Improvements or additions to documentation kind/enhancement kind/refactor Code refactor kind/test-ci size/XXL Denotes a PR that changes 2000+ lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants