Skip to content

Commit aab620a

Browse files
committed
[fix] fixed generate_graph500_inputs.py
1 parent 6316dbf commit aab620a

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

benchmark/redisgraph/README.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
############################################################
1010
```
1111

12-
13-
1412
Hardware & Major environment requirements
1513
================================
1614
- Amazon EC2 machine r4.8xlarge
@@ -26,12 +24,6 @@ sudo apt-get install build-essential cmake python-pip python-dev
2624
sudo pip install --upgrade pip
2725
```
2826

29-
30-
31-
32-
33-
34-
3527
## Current use cases
3628
This article documents the details on how to reproduce the graph database benchmark result on RedisGraph.
3729
Currently, RedisGraph benchmark supports two use cases:
@@ -73,9 +65,24 @@ Sample output:
7365

7466
### Data insertion
7567

68+
##### Graph500
7669
```bash
77-
nohup ./redisgraph_load_graph500.sh
78-
nohup ./redisgraph_load_twitter.sh
70+
./redisgraph_load_graph500.sh
71+
```
72+
73+
Sample output:
74+
```bash
75+
76+
```
77+
78+
##### Twitter Benchmark
79+
```bash
80+
./redisgraph_load_twitter.sh
81+
```
82+
83+
Sample output:
84+
```bash
85+
7986
```
8087

8188

@@ -89,25 +96,25 @@ Results will be stored in "result_redisgraph" output directory.
8996

9097
```bash
9198
# 300 seeds, depth 1
92-
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
99+
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
93100
# 300 seeds, depth 2
94-
nohup python kn.py -g graph500 -s graph500-22-seed -c 300 -d 6 -p redisgraph -l graph500-22_unique_node -t 22 -i 2
101+
nohup python kn.py -g graph500 -s graph500_22_seed -c 300 -d 6 -p redisgraph -l graph500_22_unique_node -t 22 -i 2
95102
# 10 seeds, depth 3
96-
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
103+
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
97104
# 10 seeds, depth 6
98-
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
105+
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
99106
```
100107

101108

102109
##### Twitter Benchmark
103110

104111
```bash
105112
# 300 seeds, depth 1
106-
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
113+
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
107114
# 300 seeds, depth 2
108-
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 2
115+
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 2
109116
# 10 seeds, depth 3
110-
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
117+
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
111118
# 10 seeds, depth 6
112-
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
119+
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
113120
```

benchmark/redisgraph/generate_graph500_inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
parser.add_argument(
1919
"--relfile", type=str, default='graph500_22', help="relfile"
2020
)
21-
parser.add_argument("--seedfile", type=str, default='graph500_220_seed', help="seed file")
21+
parser.add_argument("--seedfile", type=str, default='graph500_22_seed', help="seed file")
2222
parser.add_argument("--inputdir", type=str, default='.', help="input dir")
2323
parser.add_argument("--datadir", type=str, default='data', help="datadir")
2424
args = parser.parse_args()

0 commit comments

Comments
 (0)