Get mission-critical performance even under extreme workloads, with response times staying under 140ms at p99, while competitors struggle with multi-second latencies. Reduce infrastructure costs and improve user experience with FalkorDB's superior performance profile, requiring fewer resources to handle peak workloads.
Percentile | FalkorDB (ms) | Neo4j (ms) | Performance Difference |
---|---|---|---|
p50 (median) | 55.0 | 577.5 | 10.5x faster |
p90 | 108.0 | 4784.1 | 44.3x faster |
p99 | 136.2 | 46923.8 | 344.5x faster |
This benchmark provides comprehensive performance comparisons between FalkorDB and Neo4j graph databases. This benchmark specifically focuses on aggregate expansion operations, a common workload in graph database applications. The results indicate FalkorDB's particular strength in maintaining consistent performance under varying workload conditions, especially crucial for production environments where predictable response times are essential.
- Ubuntu
- Redis server
- build-essential, cmake, m4, automake
- libtool, autoconf, python3
- libomp-dev, libssl-dev
- pkg-config
- Rust toolchain
- SDKman
- unzip, zip
sudo apt-get install lsb-release curl gpg
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
- stop the redis server
sudo systemctl stop redis-server
- disable the redis server
sudo systemctl disable redis-server
- check the redis server status
sudo systemctl status redis-server
- install unzip
sudo apt install unzip zip -y
curl -s "https://get.sdkman.io" | bash
- load sdkman in the current shell
source "$HOME/.sdkman/bin/sdkman-init.sh"
git clone --recurse-submodules -j8 https://github.com/FalkorDB/FalkorDB.git
sudo apt install build-essential cmake m4 automake libtool autoconf python3 libomp-dev libssl-dev
- install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- from FalkorDB root dir run
make
from ~/
- install pkg-config
sudo apt install pkg-config -y
git clone [email protected]:FalkorDB/benchmark.git
cd benchmark
sdk env install
- download and unpack neo4j
./scripts/download-neo4j.sh
- build the benchmark
cargo build --release
- enable autocomplete
source <(./target/release/benchmark generate-auto-complete bash)
- copy the falkor shared lib to
cp ~/FalkorDB/bin/linux-x64-release/src/falkordb.so .
./target/release/benchmark init --vendor falkor -s small
./target/release/benchmark init --vendor neo4j -s small
./target/release/benchmark run --vendor falkor -ssmall -q100000
./target/release/benchmark run --vendor neo4j -ssmall -q100000
mkdir -p html
./target/release/benchmark compare falkor-metrics_small_q100000.json neo4j-metrics_small_q100000.json
The data is based on https://www.kaggle.com/datasets/wolfram77/graphs-snap-soc-pokec licensed: https://creativecommons.org/licenses/by/4.0/
Q: What are the minimum system requirements?
A: FalkorDB requires a Linux/Unix system with 4GB RAM minimum. For production environments, 16GB RAM is recommended.
Q: Can I run FalkorDB without Redis?
A: No, FalkorDB requires Redis 6.2 or higher as it operates as a Redis module.
Q: Which query language does FalkorDB use?
A: FalkorDB uses the Cypher query language, similar to Neo4j, making migration straightforward.
Q: Does FalkorDB support data persistence?
A: Yes, through Redis persistence mechanisms (RDB/AOF). Additional persistence options are in development.
Q: Does FalkorDB support common programming languages?
A: Yes, through FalkorDB has set of clients in all these programming langauges and more see official clients
Q: Is FalkorDB production-ready?
A: Yes, FalkorDB is stable for production use, being a continuation of the battle-tested RedisGraph codebase.
Q: What should I do if I get "libgomp.so.1: cannot open shared object file"?
A: Install OpenMP:
- Ubuntu:
apt-get install libgomp1
- RHEL/CentOS:
yum install libgomp
- OSX:
brew install libomp
Q: Can I migrate from Neo4j to FalkorDB?
A: Yes, FalkorDB supports the Cypher query language, making migration from Neo4j straightforward. Migration tools are in development.