简体   繁体   中英

Neo4j Benchmark

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:

  • put enough operations ( createNode, createRelationship ) in the transactions 1k - 5k - 20k are good fits
  • use -server
  • give Neo4j enough heap-memory for your use-case
  • run several rounds in a single benchmark, probably discard the first one and measure the others (to accomodate for JIT and Neo4j warmup)

What 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?

http://docs.neo4j.org/chunked/stable/batchinsert.html

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM