db.setProfilingLevel(2) db.system.profile .
Although this may slightly distort the test results, it will give you an idea of ββthe time of requests on the server , eliminating any impact that the driver or network may have on the results. If these request times show the same pattern as your test, the size of the document affects the request time. If the request time is approximately the same regardless of the size of the document, then this is the serialization overhead you are looking at.
source
share