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!
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.
That may be because you instantaniated GraphDatabaseService and the created the node. Simply creating a node on an instantaniated GraphDatabaseService will take lesser time.
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?
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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.