http://stackoverflow.com/questions/15151554/comparing-mongod...
MongoDB: 0m0.618s
RethinkDB: 2m2.502s
Although as stated in that post, this is likely because of the different fsync() policies between the two databases.http://stackoverflow.com/questions/15151554/comparing-mongod...
MongoDB: 0m0.618s
RethinkDB: 2m2.502s
Although as stated in that post, this is likely because of the different fsync() policies between the two databases. /dev/null: 0m0.001s
/dev/null is clearly the best database.(If your performance numbers are too good to be true, they might not be true.)
There's also the angle that if it's to offer no performance benefit, perhaps a classic relational database will do it?
I'm curious to hear your thoughts about it.
According to iostat, this does 5000 write transactions per second to the disk.
If you are logging throw-away data, you can use an UNLOGGED table. This brings it to 49,000 inserted rows per second.
If you don't care about your data integrity, and set fsync=off, it goes up to 65,000 and seems to be limited by CPU.
It uses a single process/thread/connection. Adding more concurrent clients would improve performance, though there is still some scalability work to be done.
Ops/second in the graphs measures number of documents, not groups.
One fundamental aspect of the benchmark is that it uses random keys, which is significantly slower (in any database) than using sequential inserts. I'm not sure how you insert into Postgres wrt to keys.
I suspect postgres has better latency, and since the benchmark in the post is very much latency bound, this would account for the factor of four performance difference. It's something we still need to address. EDIT: 1 million documents / 37 seconds / 8 connections = 3378 ops/second, which is about a factor of four off from 800 ops/second that RethinkDB does on this. (This is obviously back of the napkin math.)
There's lots of work to be done, I'm very much looking forward to publishing authoritative, scientific comparison benchmarks.
I expect that if I move to binary format for inserting it might be even faster. I'm basing this since my reader is binary and that made x3-x4 improvements for my data set/computer/etc.
I suspect that RethinkDB 1.7 would be comparable to Mongo on insert performance workload described in this stack overflow thread.
We're working on getting authoritative benchmarks out, but unfortunately good benchmarks are extremely time consuming (much like any science experiment).