Open xdg opened 6 years ago
Hey. Thank you for your feedback!!! Please let me know when new driver ready, I'll update benchmark.
Totally agreed with above comments.
These benchs are based on 500/5k entries.
Maybe it would be interesting, for a particular query (averaged upon 20tries), to check both DB perfs at different load points. Maybe at some point, one DB may be more performant than the other ? this criteria would then become the one to consider for a choice.
By the way, it would also be nice to display the DB versions in bench headers.
Great initiative !
Hi. I love that you put this together. Thank you!
I'm a team lead at MongoDB and my team works on our new Go driver (not mgo, which is a community-based project). Work like this repo is great to help us to see how the new driver stacks up.
I have a few thoughts on improving the benchmarks for you to consider:
Next
andScan
to fill-in and print a single allocated record, but the mgo benchmark callsAll
to fill in an array with all records. The latter has to do much more memory allocation. It would be more consistent to calliter := c.Pipe(query).Iter()
for the mgo case and iterate individually so the memory workload is similar between the two benchmarks.