How to measure throughput in MongoDB I want to measure the throughput of read operations in Mongo. By throughput I mean  "how many reads the system process in a given amount of time (every second)".

I run mongotop 1 and I get:

                 ns       total    read    write    2018-05-21T08:01:25Z

 sampledb.samplecol        57ms    25ms     32ms        

local.replset.minvalid     28ms     0ms     28ms  

     local.oplog.rs         9ms     9ms      0ms 

admin.system.indexes        0ms     0ms      0ms  

admin.system.namespaces     0ms     0ms      0ms  

 admin.system.roles         0ms     0ms      0ms   

 admin.system.users         0ms     0ms      0ms    

admin.system.version        0ms     0ms      0ms   

           local.me         0ms     0ms      0ms   

  local.startup_log         0ms     0ms      0ms          


Is this means that the throughput of read operations is 25ms?
The mongostat tool provides you with this information.

Example output of mongostat:

insert query update delete getmore command dirty used flushes vsize   res qrw arw net_in net_out conn     set repl                time
*0     2     *0     *0       0     2|0  0.0% 0.0%       0 3.18G 16.0M 0|0 1|0   556b   57.2k    2 replset  PRI May 22 09:17:02.431


From the example above, the query field has the value of 2. This means that at that moment in time, the system processes two queries per second.

For full description of the output fields of mongostat, please see the Fields section.