查看执行计划 .explain(true)
在显示的 json 中看字段:
"executionStats"
"executionTimeMillis" : x(扫描毫秒数)
"totalDocsExamined" : x(扫描文档数)