@@ -362,6 +362,17 @@ async def do_task(self):
362362 await self .corpus .insert_many (self .documents , ordered = True )
363363
364364
365+ class TestSmallDocCollectionBulkInsert (SmallDocInsertTest , AsyncPyMongoTestCase ):
366+ async def asyncSetUp (self ):
367+ await super ().asyncSetUp ()
368+ self .models = []
369+ for doc in self .documents :
370+ self .models .append (InsertOne (namespace = "perftest.corpus" , document = doc ))
371+
372+ async def do_task (self ):
373+ await self .corpus .bulk_write (self .models , ordered = True )
374+
375+
365376class TestSmallDocClientBulkInsert (SmallDocInsertTest , AsyncPyMongoTestCase ):
366377 @async_client_context .require_version_min (8 , 0 , 0 , - 24 )
367378 async def asyncSetUp (self ):
@@ -412,6 +423,17 @@ async def do_task(self):
412423 await self .corpus .insert_many (self .documents , ordered = True )
413424
414425
426+ class TestLargeDocCollectionBulkInsert (LargeDocInsertTest , AsyncPyMongoTestCase ):
427+ async def asyncSetUp (self ):
428+ await super ().asyncSetUp ()
429+ self .models = []
430+ for doc in self .documents :
431+ self .models .append (InsertOne (namespace = "perftest.corpus" , document = doc ))
432+
433+ async def do_task (self ):
434+ await self .corpus .bulk_write (self .models , ordered = True )
435+
436+
415437class TestLargeDocClientBulkInsert (LargeDocInsertTest , AsyncPyMongoTestCase ):
416438 @async_client_context .require_version_min (8 , 0 , 0 , - 24 )
417439 async def asyncSetUp (self ):
0 commit comments