Add BulkWrite Benchmarks by vbabanin · Pull Request #1657 · mongodb/mongo-java-driver

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