Skip to content

Commit afeee72

Browse files
committed
[fix] fixing minor bugs. [rem] removed redis-cli dependency. [rem] removed RedisGraph dir dependency.
1 parent 6f783ab commit afeee72

16 files changed

+693
-150
lines changed
Lines changed: 34 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```bash
12
############################################################
23
# Copyright (c) 2015-now, TigerGraph Inc.
34
# All rights reserved
@@ -6,75 +7,60 @@
67
# acknowledgement to TigerGraph.
78
# Author: Mingxi Wu mingxi.wu@tigergraph.com
89
############################################################
10+
```
911

10-
This article documents the details on how to reproduce the graph database benchmark result on Neo4j.
12+
This article documents the details on how to reproduce the graph database benchmark result on RedisGraph.
1113

12-
Data Sets
14+
Data Sets
1315
===========
1416
- graph500 edge file: http://service.tigergraph.com/download/benchmark/dataset/graph500-22/graph500-22
1517
- graph500 vertex file: http://service.tigergraph.com/download/benchmark/dataset/graph500-22/graph500-22_unique_node
1618

1719
- twitter edge file: http://service.tigergraph.com/download/benchmark/dataset/twitter/twitter_rv.tar.gz
1820
- twitter vertex file: http://service.tigergraph.com/download/benchmark/dataset/twitter/twitter_rv.net_unique_node
1921

20-
Hardware & Major enviroment
22+
Hardware & Major environment
2123
================================
2224
- Amazon EC2 machine r4.8xlarge
2325
- OS Ubuntu 18.04.1 LTS
2426
- Install the required Python modules with the following commands
25-
$ sudo apt-get update
26-
$ sudo apt-get install build-essential cmake python-pip python-dev
27-
$ sudo pip install --upgrade pip
28-
$ sudo pip install redis click requests config
29-
30-
3127
- 32 vCPUs
3228
- 244 GiB memory
3329
- attached a 250G EBS-optimized Provisioned IOPS SSD (IO1), IOPS we set is 50 IOPS/GiB
3430

35-
RedisGraph Version
36-
==============
37-
Redis version 5.0.3
38-
RedisGraph module v1.0.0
39-
40-
Install Redis and RedisGraph
41-
===============
42-
git clone https://github.com/antirez/redis.git
43-
cd redis
44-
make
45-
sudo apt-get install tcl
46-
make test
47-
git clone https://github.com/RedisLabsModules/RedisGraph.git
48-
cd RedisGraph
49-
git checkout v1.0.0
50-
make
51-
52-
Copy benchmark files:
53-
======================
54-
git clone https://github.com/RedisGraph/graph-database-benchmark.git
55-
56-
Launching Redis
57-
===============
58-
# start server.
59-
~/redis/src/redis-server --loadmodule ~/RedisGraph/src/redisgraph.so &
60-
61-
# to stop server
62-
#redis-cli shutdown
31+
```bash
32+
sudo apt-get update
33+
sudo apt-get install build-essential cmake python-pip python-dev
34+
sudo pip install --upgrade pip
35+
```
36+
37+
------------------------------------
38+
39+
# Setup the benchmark
40+
```bash
41+
git clone https://github.com/filipecosta90/graph-database-benchmark.git
42+
cd graph-database-benchmark/benchmark/redisgraph
43+
sudo pip install -r requirements.txt
44+
```
6345

6446
Loading data
6547
==============
66-
nohup ./redisgraph_load_graph500.sh path/to/redisgraph path/to/graph500/data
67-
nohup ./redisgraph_load_twitter.sh path/to/redisgraph path/to/twitter/data
48+
```bash
49+
nohup ./redisgraph_load_graph500.sh
50+
nohup ./redisgraph_load_twitter.sh
51+
```
6852

69-
Example: ./redisgraph_load_graph500.sh ~/RedisGraph/ .
7053

7154
Run K-hop neighborhood count benchmark
7255
================
73-
# Change graph500-22-seed and twitter_rv.net-seed path to your seed file path.
74-
# Results will be stored in "result_redisgraph" output directory.
56+
Change graph500-22-seed and twitter_rv.net-seed path to your seed file path.
57+
58+
Results will be stored in "result_redisgraph" output directory.
7559

7660
Graph500
7761
-----------------
62+
63+
```bash
7864
# 300 seeds, depth 1
7965
nohup python kn.py -g graph500 -s graph500-22-seed -c 300 -d 6 -p redisgraph -l graph500-22_unique_node -t 22 -i 1
8066
# 300 seeds, depth 2
@@ -83,9 +69,13 @@ nohup python kn.py -g graph500 -s graph500-22-seed -c 300 -d 6 -p redisgraph -l
8369
nohup python kn.py -g graph500 -s graph500-22-seed -c 10 -d 6 -p redisgraph -l graph500-22_unique_node -t 22 -i 3
8470
# 10 seeds, depth 6
8571
nohup python kn.py -g graph500 -s graph500-22-seed -c 10 -d 6 -p redisgraph -l graph500-22_unique_node -t 22 -i 6
72+
```
8673

87-
Twitter
74+
75+
Twitter Benchmark
8876
-------------
77+
78+
```bash
8979
# 300 seeds, depth 1
9080
nohup python kn.py -g twitter_rv -s twitter_rv_net-seed -c 300 -d 6 -p redisgraph -l twitter_rv_net_unique_node -t 22 -i 1
9181
# 300 seeds, depth 2
@@ -94,3 +84,4 @@ nohup python kn.py -g twitter_rv -s twitter_rv_net-seed -c 300 -d 6 -p redisgrap
9484
nohup python kn.py -g twitter_rv -s twitter_rv_net-seed -c 10 -d 6 -p redisgraph -l twitter_rv_net_unique_node -t 22 -i 3
9585
# 10 seeds, depth 6
9686
nohup python kn.py -g twitter_rv -s twitter_rv_net-seed -c 10 -d 6 -p redisgraph -l twitter_rv_net_unique_node -t 22 -i 6
87+
```

0 commit comments

Comments
 (0)