Benchmark Dgraph against Cayley
This is the most popular page on discuss: https://discuss.dgraph.io/t/differences-between-dgraph-and-cayley/23
This is also the most popular question on Reddit: https://www.reddit.com/comments/4fs7qm/why_we_built_dgraph/
And again: https://www.reddit.com/r/golang/comments/3uyj8m/announcing_alpha_release_of_open_source/
And again on HN: https://news.ycombinator.com/item?id=11322444
So, it's about time we do a real benchmark. @ashwin95r has written some code to benchmark Dgraph for his final year thesis. So, he will be the coordinator for this project.
We can reuse that code to throw similar queries at Cayley and see how it compares.
Hi Manish I would like to pick it up this one
Hey Vikram, Go ahead. Let me know if you want some help!
Awesome! @ashwin95r has some benchmarking scripts that he built for his performance report. You might want to talk to him before you begin.
If you finish this, we can send some Dgraph swag your way :+1: .
Hey, I've just recently found out Dgraph and sounds like an exciting project!
Regarding the benchmark, another GraphDB vendor created an open source graph/NoSQL benchmark some time ago and they accept contributions, here's the link: https://github.com/weinberger/nosql-tests. They've already used it to comparare ArangoDB, Neo4j, OrientDB, MongoDB and PostgreSQL: https://www.arangodb.com/performance/. Using it may save you some time and provide a wider comparison.
Interesting. Not sure if we support all of the functionality required by the benchmark, but surely worth a look to determine if we can fit in their cast.
Hey @patilvikram -- Any updates about this?
I think I can give you real-world stats without too much hardship. I have an app that uses cayley, and speed's real important for it. Does dgraph support a fully-in-memory mode?
Hey @faddat,
To run Dgraph fully in-memory, you'd have to run it on RAMFS or TMPFS. Put all the directories (postings, uids and mutations) under those.
Thanks for that! This is what I'll be working on next, once this kernel finishes compiling.
Still looking for help? If nobody has had the time to work on somthing for this I could dedicate some time to make it happend...
Hey @robbert229, Yes, still looking for someone to take it up. Would be great if you could do this. We're going to do a release next week; so maybe pick that version. It's going to be v0.7.
@manishrjain did anyone pick this up? If it can be done in 2-3 weeks I can take this up.
Please do. We really need those benchmarks for an upcoming talk.
Sent from Nexus 6P
On Dec 25, 2016 4:15 PM, "santhukumar" [email protected] wrote:
@manishrjain https://github.com/manishrjain did anyone pick this up? If it can be done in 2-3 weeks I can take this up.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/dgraph-io/dgraph/issues/101#issuecomment-269110601, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsyNPPJZcr6ewa0B7z3PxZtPubZh9kmks5rLfwHgaJpZM4ItIN2 .
I have started coding some python scripts for doing benchmark test for Dgraph vs Cayley. I will be using same stackoverflow data as suggested in #101. Link for WIP for this benchmark is here https://github.com/ankurayadav/graphdb-benchmarks.
That's great @ankurayadav. Let us know if you are stuck somewhere and need some help.
I have couple of questions. I think https://github.com/weinberger/nosql-tests is a good starting point. I can use that code base to do banchmarking. Cayley works with levelDB, Bolt, PostgreSQL, MongoDB and performance depends on the underlying database also. Shall we benchmark against cayley on all 4 databases? https://www.arangodb.com/2015/10/benchmark-postgresql-mongodb-arangodb/ does benchmarking on few metrics. What are the metrics we are looking at?
Stackoverflow archives are very big. Its taking too much time to convert is from xml to ntriples. Does anyone one know any efficient way to convert xml to ntriples.
@santhukumar -- You can use the Freebase film data that we have -- the 21M RDFs. And then issue various queries that we have documented in our Query Language Spec. If you run them via go test benchmarking functionality, those numbers would be pretty accurate. Focus on getting the code right, so we can also run them on our and Amazon instances.
@ankurayadav -- You can use the 21M RDFs that we have in benchmarks repository instead. They contain freebase film data.
I have added benchmark tests for loading data to cayley and dgraph. Soon, I will be adding some benchmarks tests on some queries on both cayley and dgraph.
https://github.com/ankurayadav/graphdb-benchmarks
@ankurayadav -- That looks interesting. Let's do the queries as well and then we can try a couple more backends on Cayley.
I think you'll have more interesting queries with the 21M RDF data, than the 30k.