Hi Brandt,
I tried to reproduce your tests using the same versions of PyMongo, MongoDB, and the mongo shell but didn’t see any significant speed difference.
To help us investigate, could you provide more details, such as:
How did you perform the benchmark? For example, did you run both tests with a shell script or directly in an interactive mongo/python session?
How did you measure the time it took for the scripts to run, and how many times did you run the scripts to determine the average execution time?
What sort of hardware did you run the tests on? (CPU, total/available memory, virtual machine or bare metal)
Best regards,
Kevin