We have performed some tests for comparing the performance of Couchbase and MongoDB.
The results were:
- Test 1: Getting documents by their ID. In this case Couchbase performed around 21K operations per second, and MongoDB performed around 9K operations per second.
- Test 2: Searching documents by one of their fields, having an index on that field. In this case Cauchbase 4.5.1 Enterprise Edition performed around 2K op/sec, Cauchbase 4.1.0 Community Edition performed around 0.5K op/sec, and MongoDB 3.2.10 Community Server performed around 9K op/sec.
For improving the performance of Cochbase in Test 2 I have set up adhoc=false (prepared statements) and increased the number of Query (N1QL) endpoints to 100.
You can find more details about the tests here: database-tests
Am I doing anything wrong? Are those numbers normal?
Thanks in advance.