Skip to content

GODRIVER-3874 PoC for afterClusterTime.#2380

Draft
matthewdale wants to merge 6 commits intomongodb:masterfrom
matthewdale:godriver3874-afterclustertime-poc
Draft

GODRIVER-3874 PoC for afterClusterTime.#2380
matthewdale wants to merge 6 commits intomongodb:masterfrom
matthewdale:godriver3874-afterclustertime-poc

Conversation

@matthewdale
Copy link
Copy Markdown
Contributor

Summary

Background & Motivation

@mongodb-drivers-pr-bot
Copy link
Copy Markdown
Contributor

API Change Report

No changes found!

@mongodb-drivers-pr-bot
Copy link
Copy Markdown
Contributor

mongodb-drivers-pr-bot Bot commented May 6, 2026

🧪 Performance Results

Commit SHA: d3fd640

The following benchmark tests for version 69fd2599ba0160000721bf3a had statistically significant changes (i.e., |z-score| > 1.96):

Benchmark Measurement % Change Patch Value Stable Region H-Score Z-Score
BenchmarkLargeDocInsertOne ops_per_second_min 51.5429 1958.4994 Avg: 1292.3729
Med: 1256.0199
Stdev: 274.8689
0.7897 2.4234
BenchmarkBSONFlatDocumentEncoding ops_per_second_min -46.0373 1975.4491 Avg: 3660.7711
Med: 3832.4161
Stdev: 786.2521
0.8016 -2.1435
BenchmarkMultiInsertLargeDocument total_mem_allocs 12.4394 2076.0000 Avg: 1846.3277
Med: 1843.0000
Stdev: 96.6918
0.7640 2.3753
BenchmarkBSONDeepDocumentEncoding ops_per_second_med 11.9819 81347.1081 Avg: 72643.0559
Med: 71844.2417
Stdev: 2851.1729
0.8160 3.0528
BenchmarkBSONDeepDocumentEncoding total_bytes_allocated 11.5050 192950256.0000 Avg: 173041741.6068
Med: 171183704.0000
Stdev: 6147469.2058
0.8259 3.2385
BenchmarkBSONDeepDocumentEncoding total_mem_allocs 11.2007 270152.0000 Avg: 242940.8803
Med: 240279.0000
Stdev: 8786.9601
0.8180 3.0968
BenchmarkBSONDeepDocumentEncoding ns_per_op -10.7668 13208.0000 Avg: 14801.6667
Med: 14891.0000
Stdev: 543.4565
0.8069 -2.9325
BenchmarkBSONDeepDocumentEncoding ops_per_second_max 10.3255 83913.7367 Avg: 76060.1654
Med: 75250.2069
Stdev: 2697.8169
0.8064 2.9111
BenchmarkMultiInsertLargeDocument total_bytes_allocated 9.6056 1120269216.0000 Avg: 1022091316.7586
Med: 1025991404.0000
Stdev: 42308815.3830
0.7581 2.3205
BenchmarkMultiInsertSmallDocument ns_per_op -6.8407 5891.0000 Avg: 6323.5780
Med: 6318.0000
Stdev: 184.3517
0.7773 -2.3465
BenchmarkSingleFindOneByID ops_per_second_med 6.5970 4507.6111 Avg: 4228.6486
Med: 4241.6376
Stdev: 137.5133
0.7456 2.0286
BenchmarkLargeDocInsertOne ns_per_op -6.4471 169218.0000 Avg: 180879.4691
Med: 180918.0000
Stdev: 3841.9565
0.8167 -3.0353
BenchmarkSingleRunCommand total_time_seconds -6.4169 1.0685 Avg: 1.1417
Med: 1.1367
Stdev: 0.0285
0.7978 -2.5689
BenchmarkLargeDocInsertOne ops_per_second_max 6.4022 6732.8279 Avg: 6327.7122
Med: 6313.7691
Stdev: 151.3302
0.8065 2.6770
BenchmarkLargeDocInsertOne ops_per_second_med 6.3292 6144.9218 Avg: 5779.1485
Med: 5781.0486
Stdev: 130.9128
0.8027 2.7940
BenchmarkMultiInsertLargeDocument ns_per_op -6.2901 27498767.0000 Avg: 29344571.8783
Med: 29301415.0000
Stdev: 910459.3081
0.7313 -2.0273
BenchmarkSingleFindOneByID ns_per_op -6.1308 227483.0000 Avg: 242340.3125
Med: 242491.5000
Stdev: 7385.4246
0.7402 -2.0117
BenchmarkSmallDocInsertOne ns_per_op -6.0847 169488.0000 Avg: 180469.0909
Med: 180182.0000
Stdev: 3669.0504
0.8159 -2.9929
BenchmarkSingleFindOneByID ops_per_second_max 6.0491 5060.2422 Avg: 4771.6018
Med: 4756.7856
Stdev: 122.5533
0.7671 2.3552
BenchmarkSingleRunCommand ops_per_second_max 5.7561 9262.8615 Avg: 8758.7037
Med: 8784.2586
Stdev: 251.6378
0.7623 2.0035
BenchmarkLargeDocInsertOne total_mem_allocs 5.5986 504945.0000 Avg: 478173.8673
Med: 477739.5000
Stdev: 13036.1387
0.7421 2.0536
BenchmarkSmallDocInsertOne ops_per_second_max 5.3648 6681.7675 Avg: 6341.5545
Med: 6320.4538
Stdev: 147.2180
0.7650 2.3109
BenchmarkSmallDocInsertOne ops_per_second_med 5.3610 6114.0577 Avg: 5802.9597
Med: 5810.4233
Stdev: 133.3438
0.7611 2.3331
BenchmarkBSONFullDocumentEncoding total_mem_allocs 4.6381 1623591.0000 Avg: 1551625.7797
Med: 1553400.0000
Stdev: 25255.0248
0.8046 2.8495
BenchmarkBSONFullDocumentEncoding total_bytes_allocated 4.6182 280823952.0000 Avg: 268427531.7288
Med: 268711352.0000
Stdev: 4338089.0265
0.8052 2.8576
BenchmarkSmallDocInsertOne total_time_seconds -4.5188 1.1298 Avg: 1.1833
Med: 1.1844
Stdev: 0.0249
0.7534 -2.1464
BenchmarkMultiFindMany ops_per_second_med 3.9582 3816793.8931 Avg: 3671469.9127
Med: 3676470.5882
Stdev: 15989.6723
0.9435 9.0886
BenchmarkBSONFullDocumentEncoding ns_per_op -3.9320 22228.0000 Avg: 23137.7797
Med: 23157.5000
Stdev: 383.3565
0.7705 -2.3732
BenchmarkBSONDeepDocumentDecoding ns_per_op -3.8564 60894.0000 Avg: 63336.5339
Med: 63365.0000
Stdev: 1053.0432
0.7621 -2.3195
BenchmarkBSONDeepDocumentDecoding ops_per_second_med 3.7285 17324.4170 Avg: 16701.7010
Med: 16659.7253
Stdev: 264.7338
0.7661 2.3522
BenchmarkBSONFullDocumentEncoding ops_per_second_med 3.4393 48118.5641 Avg: 46518.6556
Med: 46557.1024
Stdev: 688.3170
0.7694 2.3244
BenchmarkBSONDeepDocumentDecoding ops_per_second_max 3.2340 17818.3244 Avg: 17260.1397
Med: 17196.9046
Stdev: 253.9298
0.7594 2.1982
BenchmarkBSONFullDocumentDecoding ops_per_second_max 2.5635 15578.9933 Avg: 15189.6121
Med: 15173.2406
Stdev: 196.7499
0.7592 1.9791
BenchmarkBSONDeepDocumentEncoding allocated_bytes_per_op 0.2690 2149.0000 Avg: 2143.2348
Med: 2143.0000
Stdev: 1.5691
0.8475 3.6743

For a comprehensive view of all microbenchmark results for this PR's commit, please check out the Evergreen perf task for this patch.

@github-actions github-actions Bot added the review-priority-normal Medium Priority PR for Review: within 1 business day label May 7, 2026
Comment thread .gitmodules
[submodule "testdata/specifications"]
path = testdata/specifications
url = https://github.com/mongodb/specifications
url = https://github.com/matthewdale/specifications.git
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Side note: You don't need to change the source here. On GitHub, all commits from forks are also accessible from the main project: it's a single Git repository.
Here: mongodb/specifications@51c4920

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.

Wow, that's great to know! Thanks!

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

Labels

review-priority-normal Medium Priority PR for Review: within 1 business day

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants