简体   繁体   中英

JS benchmarking for mongoDb

I am running BenchRun for MongoDb using JS benchmarking script provided here .

The result was displayed as below

    {
        "note" : "values per second",
        "errCount" : NumberLong(0),
        "trapped" : "error: not implemented",
        "updateLatencyAverageMicros" : 10.119265452635265,
        "insert" : 0,
        "query" : 0,
        "update" : 45688,
        "delete" : 0,
        "getmore" : 0,
        "command" : 460
    }

rs0:PRIMARY> print( "threads: 2\t update/sec: " + res.update );

Can someone help me to interpret these results?

How can I benchmark my mongoDB based on these results?

You might not have noticed on the very page you linked, the first sentence says:

This benchRun command is designed as a QA baseline perf measurement tool, not designed to be a “benchmark”.

So the answer to "How can I benchmark my mongoDB based on these results" is "you can't".

Benchmark has to reflect the actual operations you will be doing.

The output you got back shows that you got 45,688 updates and 460 commands per second. That's what the "note" field is telling you. The average latency for updates was 10 microseconds. There were no errors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM