Skip to content

Commit 2741a93

Browse files
committed
Add ClientBulkWrite benchmarks to Netty suite.
JAVA-5813
1 parent 1aad7bd commit 2741a93

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

driver-benchmarks/src/main/com/mongodb/benchmark/benchmarks/netty/BenchmarkNettyProviderSuite.java

+19
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
import com.mongodb.benchmark.benchmarks.MultiFileExportBenchmark;
3131
import com.mongodb.benchmark.benchmarks.MultiFileImportBenchmark;
3232
import com.mongodb.benchmark.benchmarks.RunCommandBenchmark;
33+
import com.mongodb.benchmark.benchmarks.bulk.ClientBulkWriteBenchmark;
34+
import com.mongodb.benchmark.benchmarks.bulk.CollectionBulkWriteBenchmark;
35+
import com.mongodb.benchmark.benchmarks.bulk.MixedClientBulkWriteBenchmark;
36+
import com.mongodb.benchmark.benchmarks.bulk.MixedCollectionBulkWriteBenchmark;
3337
import com.mongodb.benchmark.framework.BenchmarkResultWriter;
3438
import com.mongodb.connection.NettyTransportSettings;
3539
import io.netty.buffer.PooledByteBufAllocator;
@@ -76,6 +80,21 @@ private static void runBenchmarks()
7680
runBenchmark(new GridFSDownloadBenchmark("single_and_multi_document/gridfs_large.bin")
7781
.applyMongoClientSettings(MONGO_CLIENT_SETTINGS));
7882

83+
runBenchmark(new CollectionBulkWriteBenchmark<>("Small", "./single_and_multi_document/small_doc.json", 10_000,
84+
DOCUMENT_CLASS).applyMongoClientSettings(MONGO_CLIENT_SETTINGS));
85+
runBenchmark(new CollectionBulkWriteBenchmark<>("Large", "./single_and_multi_document/large_doc.json", 10,
86+
DOCUMENT_CLASS));
87+
88+
runBenchmark(new ClientBulkWriteBenchmark<>("Small", "./single_and_multi_document/small_doc.json", 10_000,
89+
DOCUMENT_CLASS).applyMongoClientSettings(MONGO_CLIENT_SETTINGS));
90+
runBenchmark(new ClientBulkWriteBenchmark<>("Large", "./single_and_multi_document/large_doc.json", 10,
91+
DOCUMENT_CLASS).applyMongoClientSettings(MONGO_CLIENT_SETTINGS));
92+
93+
runBenchmark(new MixedCollectionBulkWriteBenchmark<>("./single_and_multi_document/small_doc.json", 10_000,
94+
DOCUMENT_CLASS).applyMongoClientSettings(MONGO_CLIENT_SETTINGS));
95+
runBenchmark(new MixedClientBulkWriteBenchmark<>("./single_and_multi_document/small_doc.json", 10_000,
96+
DOCUMENT_CLASS).applyMongoClientSettings(MONGO_CLIENT_SETTINGS));
97+
7998
runBenchmark(new MultiFileImportBenchmark()
8099
.applyMongoClientSettings(MONGO_CLIENT_SETTINGS));
81100
runBenchmark(new MultiFileExportBenchmark()

0 commit comments

Comments
 (0)