dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Benchmark Dgraph against Cayley

Open manishrjain opened this issue 10 years ago • 36 comments

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.

manishrjain avatar Jun 03 '16 01:06 manishrjain

Hi Manish I would like to pick it up this one

patilvikram avatar Jun 16 '16 15:06 patilvikram

Hey Vikram, Go ahead. Let me know if you want some help!

ashwin95r avatar Jun 16 '16 15:06 ashwin95r

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: .

manishrjain avatar Jun 17 '16 01:06 manishrjain

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.

dmarcelino avatar Jun 22 '16 08:06 dmarcelino

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.

manishrjain avatar Jun 22 '16 08:06 manishrjain

Hey @patilvikram -- Any updates about this?

manishrjain avatar Jun 30 '16 23:06 manishrjain

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?

faddat avatar Oct 09 '16 11:10 faddat

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.

manishrjain avatar Oct 10 '16 17:10 manishrjain

Thanks for that! This is what I'll be working on next, once this kernel finishes compiling.

faddat avatar Oct 10 '16 19:10 faddat

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...

robbert229 avatar Nov 26 '16 07:11 robbert229

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 avatar Nov 26 '16 10:11 manishrjain

@manishrjain did anyone pick this up? If it can be done in 2-3 weeks I can take this up.

santhukumar avatar Dec 25 '16 05:12 santhukumar

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 .

manishrjain avatar Dec 25 '16 05:12 manishrjain

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.

ankurayadav avatar Dec 27 '16 20:12 ankurayadav

That's great @ankurayadav. Let us know if you are stuck somewhere and need some help.

pawanrawal avatar Dec 28 '16 10:12 pawanrawal

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?

santhukumar avatar Dec 28 '16 15:12 santhukumar

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.

ankurayadav avatar Dec 28 '16 19:12 ankurayadav

@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.

manishrjain avatar Dec 28 '16 22:12 manishrjain

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 avatar Jan 01 '17 21:01 ankurayadav

@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.

manishrjain avatar Jan 01 '17 22:01 manishrjain