1
+ ``` bash
1
2
# ###########################################################
2
3
# Copyright (c) 2015-now, TigerGraph Inc.
3
4
# All rights reserved
6
7
# acknowledgement to TigerGraph.
7
8
# Author: Mingxi Wu mingxi.wu@tigergraph.com
8
9
# ###########################################################
10
+ ```
9
11
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 .
11
13
12
- Data Sets
14
+ Data Sets
13
15
===========
14
16
- graph500 edge file: http://service.tigergraph.com/download/benchmark/dataset/graph500-22/graph500-22
15
17
- graph500 vertex file: http://service.tigergraph.com/download/benchmark/dataset/graph500-22/graph500-22_unique_node
16
18
17
19
- twitter edge file: http://service.tigergraph.com/download/benchmark/dataset/twitter/twitter_rv.tar.gz
18
20
- twitter vertex file: http://service.tigergraph.com/download/benchmark/dataset/twitter/twitter_rv.net_unique_node
19
21
20
- Hardware & Major enviroment
22
+ Hardware & Major environment
21
23
================================
22
24
- Amazon EC2 machine r4.8xlarge
23
25
- OS Ubuntu 18.04.1 LTS
24
26
- 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
-
31
27
- 32 vCPUs
32
28
- 244 GiB memory
33
29
- attached a 250G EBS-optimized Provisioned IOPS SSD (IO1), IOPS we set is 50 IOPS/GiB
34
30
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
+ ```
63
45
64
46
Loading data
65
47
==============
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
+ ```
68
52
69
- Example: ./redisgraph_load_graph500.sh ~/RedisGraph/ .
70
53
71
54
Run K-hop neighborhood count benchmark
72
55
================
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.
75
59
76
60
Graph500
77
61
-----------------
62
+
63
+ ``` bash
78
64
# 300 seeds, depth 1
79
65
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
80
66
# 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
83
69
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
84
70
# 10 seeds, depth 6
85
71
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
+ ```
86
73
87
- Twitter
74
+
75
+ Twitter Benchmark
88
76
-------------
77
+
78
+ ``` bash
89
79
# 300 seeds, depth 1
90
80
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
91
81
# 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
94
84
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
95
85
# 10 seeds, depth 6
96
86
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