Skip to content

Add BulkWrite Benchmarks #1657

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 12 commits into from
Mar 28, 2025
Merged

Add BulkWrite Benchmarks #1657

merged 12 commits into from
Mar 28, 2025

Conversation

vbabanin
Copy link
Member

@vbabanin vbabanin commented Mar 25, 2025

Summary

Adds benchmarks for MongoCollection.bulkWrite() and MongoClient.bulkWrite() to evaluate performance differences between the two APIs.

Motivation
Client-side construction of bulk write requests may impact overall performance. Benchmarking helps measure:

  • The effect of reduced round trips in MongoClient.bulkWrite() for mixed operations (insert + update).
  • Throughput differences for insert-only operations, where round trips are similar.

Specification: link

JAVA-5545

@vbabanin vbabanin self-assigned this Mar 25, 2025
@vbabanin vbabanin marked this pull request as ready for review March 27, 2025 05:16
@vbabanin vbabanin requested review from a team and NathanQingyangXu and removed request for a team March 27, 2025 05:16
JAVA-5545
Copy link
Member Author

@vbabanin vbabanin Mar 27, 2025

Choose a reason for hiding this comment

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

@stIncMale mentioned that "Perf test setups are different in mixed bulk writes".

@vbabanin vbabanin merged commit e1eb156 into mongodb:main Mar 28, 2025
58 of 61 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants