Reputation: 2272
Does anyone know a simple benchmark for neo4j?
I tried to build it by myself but it spends 1s to create 1 node.. maybe it isn't the right way to build it!
Upvotes: 1
Views: 2523
Reputation: 1184
Just today, a new benchmark was released. For now, there are two graph databases in it, Neo4j and Memgraph. In the blog post, there is a link to GitHub repository and the methodology. Maybe it will be of help to you.
A blog post is located at https://memgraph.com/blog/memgraph-vs-neo4j-performance-benchmark-comparison.
Upvotes: 0
Reputation: 1685
I think @MichaelHunger hit the nail on the head. If you're taking about a second to write a single node, you have way to many transactions.
Have you looked at Batch Inserts?
http://docs.neo4j.org/chunked/stable/batchinsert.html
Upvotes: 0
Reputation: 336
That may be because you instantaniated GraphDatabaseService and the created the node. Simply creating a node on an instantaniated GraphDatabaseService will take lesser time.
Upvotes: 0
Reputation: 41676
A generic benchmark is always difficult as it is not representing your domain.
Some general tips:
createNode, createRelationship
) in the transactions 1k - 5k - 20k are good fitsWhat are your machine specs?
You can also have a look at these benchmarks which are used for performance regression testing.
Upvotes: 2