Smart Collection is now retired & Meteor’s Collection implementation has fixes for most of the performance bottlenecks. It is also using the MongoDB oplog just like Smart Collections.
I’ve released Smart Collections few days ago. And I was talking about its performance over the standard Collection implementation. But I’ve not showed it to you. Here it is.
Smart Collection can give you,
Let’s dig into the test suite and more details.
Our test app is a simple group chat application. Where people can join into groups as their wish and start sending messages. For this test, I used a setup as follows
I’ve added necessary mongodb indexes to avoid mongo getting heated unnecessarily. And DB has been profiled for slow queries and nothing was reported.
If you want to learn more about the testing suite. Check it out here. Try it on your box or a VM and share the results :)
My intension is not to do a stress test on meteor, but to do a comparison between Smart Collection and Standard Collections. So I simply used my dev box as the testing environment.
These graphs were generated using Excel and all the source files and logs related to these can be downloaded here.
RAM usage can be negligible for this test. In both cases they were the same.(~200 MB) Since our data set is small, it is hard to see a difference.
Let’s discuss why there is a big difference in CPU.
With Meteor Collections,
But with Smart Collections,
So that’s it; Do you want these benefits? Checkout Smart Collections.