Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neo4J Performance Benchmarking

Tags:

neo4j

kundera

I have created a basic implementation of high level client over Neo4J (https://github.com/impetus-opensource/Kundera/tree/trunk/kundera-neo4j) and want to compare its performance with Native neo4j driver (and maybe SpringData too). This way I would be able to determine overhead my library is putting over native driver.

I plan to create an extension of YCSB for Neo4J.

My question is: what should be considered as a basic unit of object to be written into neo4j (should it be a single node or a couple of nodes joined by an edge). What's current practice in Neo4J world. How people benchmarking neo4j performance are doing it.

like image 367
Amresh Avatar asked Mar 01 '13 06:03

Amresh


People also ask

How can I improve my Neo4j performance?

Heap Sizing The size of the available heap memory is an important aspect for the performance of Neo4j. Generally speaking, it is beneficial to configure a large enough heap space to sustain concurrent operations. For many setups, a heap size between 8G and 16G is large enough to run Neo4j reliably.

How does the performance of a graph database such as Neo4j compare to the performance of a relational database such as Postgres?

Graph database owing to their graph data model performs better in storing and retrieving highly connected data. Graph database (Neo4j) performs better in answering queries having higher depth of relationships between nodes in comparison to relational database (PostgreSQL) with increasing size of data.

Can Neo4j scale?

Neo4j's unbounded architecture provides blazing-fast graphs, with superior scaling. Neo4j's high-performance distributed cluster architecture scales with your data and your business needs in real-world situations, minimizing cost and hardware while maximizing performance across connected datasets.


2 Answers

There's already been some work for benchmarking Neo4J with Gatling: http://maxdemarzi.com/2013/02/14/neo4j-and-gatling-sitting-in-a-tree-performance-t-e-s-t-ing/

You could maybe adapt it.

like image 63
Stephane Landelle Avatar answered Sep 19 '22 22:09

Stephane Landelle


See graphdb-benchmarks

The project graphdb-benchmarks is a benchmark between popular graph dataases. Currently the framework supports Titan, OrientDB, Neo4j and Sparksee. The purpose of this benchmark is to examine the performance of each graph database in terms of execution time. The benchmark is composed of four workloads, Clustering, Massive Insertion, Single Insertion and Query Workload. Every workload has been designed to simulate common operations in graph database systems.

Clustering Workload (CW): CW consists of a well-known community detection algorithm for modularity optimization, the Louvain Method. We adapt the algorithm on top of the benchmarked graph databases and employ cache techniques to take advantage of both graph database capabilities and in-memory execution speed. We measure the time the algorithm needs to converge.

Massive Insertion Workload (MIW): Create the graph database and configure it for massive loading, then we populate it with a particular dataset. We measure the time for the creation of the whole graph.

Single Insertion Workload (SIW): Create the graph database and load it with a particular dataset. Every object insertion (node or edge) is committed directly and the graph is constructed incrementally. We measure the insertion time per block, which consists of one thousand edges and the nodes that appear during the insertion of these edges.

Query Workload (QW): Execute three common queries: FindNeighbours (FN): finds the neighbours of all nodes. FindAdjacentNodes (FA): finds the adjacent nodes of all edges. FindShortestPath (FS): finds the shortest path between the first node and 100 randomly picked nodes.

like image 40
Somnath Muluk Avatar answered Sep 23 '22 22:09

Somnath Muluk