Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Tested bigger dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Apr 19, 2020
1 parent 99ccf52 commit 57037dc
Show file tree
Hide file tree
Showing 5 changed files with 1,049 additions and 139 deletions.
21 changes: 10 additions & 11 deletions bench/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

count_nodes = int(os.getenv('COUNT_NODES', '0'))
count_edges = int(os.getenv('COUNT_EDGES', '0'))
count_finds = int(os.getenv('COUNT_FINDS', '500'))
count_analytics = int(os.getenv('COUNT_ANALYTICS', '50'))
count_finds = int(os.getenv('COUNT_FINDS', '5000'))
count_analytics = int(os.getenv('COUNT_ANALYTICS', '300'))
count_changes = int(os.getenv('COUNT_CHANGES', '5000'))
device_name = os.getenv('DEVICE_NAME', 'Unknown Device')

Expand All @@ -36,19 +36,18 @@
# Test graph.
('/Users/av/Code/PyGraphDB/datasets/graph-test/all.csv', 8, 10),


# Average degree: ~8.
# http://networkrepository.com/fb-pages-company.php
('/Users/av/Datasets/graph-communities/all.csv', 0, 52310),
# ('/Users/av/Datasets/graph-communities/all.csv', 0, 52310),

# Average degree 90.
# http://networkrepository.com/rec-eachmovie.php
('/Users/av/Datasets/graph-eachmovie-ratings/all.csv', 0, 2811716),
# ('/Users/av/Datasets/graph-eachmovie-ratings/all.csv', 0, 2811716),

# Patent Citation Network. 77 Mb.
# Average degree: 8.
# http://networkrepository.com/cit-patent.php
('/Users/av/Datasets/graph-patent-citations/all.csv', 0, 16518947),
# ('/Users/av/Datasets/graph-patent-citations/all.csv', 0, 16518947),

# Mouse gene regulatory network derived
# from analyzing gene expression profiles. 162 Mb.
Expand All @@ -67,12 +66,12 @@

wrapper_types = [
# SQLiteMem,
SQLite,
MongoDB,
MySQL,
PostgreSQL,
GraphLSM,
# SQLiteCpp,
# MongoDB,
# SQLite,
# MySQL,
# PostgreSQL,
SQLiteCpp,
# Neo4J,
]

Expand Down
6 changes: 3 additions & 3 deletions bench/p3_bench_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class SimpleBenchmark(object):
5. Clearing all the data (if needed).
"""

def __init__(self, max_seconds_per_query=45):
def __init__(self, max_seconds_per_query=60):
self.max_seconds_per_query = max_seconds_per_query

def run(self, repeat_existing=True):
def run(self, repeat_existing=False):
self.repeat_existing = repeat_existing
for dataset_path in config.datasets:
self.dataset_path = dataset_path
Expand Down Expand Up @@ -55,7 +55,7 @@ def run_one(self, remove_all_afterwards=False):
self.one('Retrieve Directed Edge', self.find_e_directed)
self.one('Retrieve Undirected Edge', self.find_e_undirected)

# Queries returning collections.
# # Queries returning collections.
self.one('Retrieve Outgoing Edges', self.find_es_from)
self.one('Retrieve Ingoing Edges', self.find_es_to)
self.one('Retrieve Connected Edges', self.find_es_related)
Expand Down
Loading

0 comments on commit 57037dc

Please sign in to comment.