> db.test.drop()
true
> db.test.insert({_id:0})
WriteResult({ "nInserted" : 1 })
> benchRun({ "ops" : [ { "op" : "update", "ns" : "test.test", "query" : { "_id" : 0 }, "writeCmd" : true, "update" : { "$adsfadsf" : { "x" : 1 } } } ], "seconds" : 0.1, host: db.getMongo().host })
{
"note" : "values per second",
"errCount" : NumberLong(0),
"trapped" : "error: not implemented",
"updateLatencyAverageMicros" : 282.6798866855524,
"totalOps" : NumberLong(353),
"totalOps/s" : 3519.0557366589906,
"findOne" : 0,
"insert" : 0,
"delete" : 0,
"update" : 3519.0557366589906,
"query" : 0,
"command" : 0
}
> db.test.find({_id:0})
{ "_id" : 0 }
> benchRun({ "ops" : [ { "op" : "update", "ns" : "test.test", "query" : { "_id" : 0 }, "writeCmd" : true, "update" : { "$inc" : { "x" : 1 } } } ], "seconds" : 0.1, host: db.getMongo().host })
{
"note" : "values per second",
"errCount" : NumberLong(0),
"trapped" : "error: not implemented",
"updateLatencyAverageMicros" : 195.5078431372549,
"totalOps" : NumberLong(510),
"totalOps/s" : 5087.992338082126,
"findOne" : 0,
"insert" : 0,
"delete" : 0,
"update" : 5087.992338082126,
"query" : 0,
"command" : 0
}
> db.test.find({_id:0})
{ "_id" : 0, "x" : 510 }
>