|
30 | 30 | import com.mongodb.benchmark.benchmarks.MultiFileExportBenchmark;
|
31 | 31 | import com.mongodb.benchmark.benchmarks.MultiFileImportBenchmark;
|
32 | 32 | 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; |
33 | 37 | import com.mongodb.benchmark.framework.BenchmarkResultWriter;
|
34 | 38 | import com.mongodb.connection.NettyTransportSettings;
|
35 | 39 | import io.netty.buffer.PooledByteBufAllocator;
|
@@ -76,6 +80,21 @@ private static void runBenchmarks()
|
76 | 80 | runBenchmark(new GridFSDownloadBenchmark("single_and_multi_document/gridfs_large.bin")
|
77 | 81 | .applyMongoClientSettings(MONGO_CLIENT_SETTINGS));
|
78 | 82 |
|
| 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 | + |
79 | 98 | runBenchmark(new MultiFileImportBenchmark()
|
80 | 99 | .applyMongoClientSettings(MONGO_CLIENT_SETTINGS));
|
81 | 100 | runBenchmark(new MultiFileExportBenchmark()
|
|
0 commit comments