Skip to content

Commit 233f55c

Browse files
committed
Fix benchmark to use latest PySHACL "memory" backend
Signed-off-by: Ashley Sommer <[email protected]>
1 parent d8d860a commit 233f55c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Python PEP 440 Versioning](https://www.python.org/dev/peps/pep-0440/).
66

77
## [Unreleased]
8+
- Nothing yet.
9+
810

911
## [0.23.0] - 2023-05-23
1012
### Added

benchmarks/benchmark.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
target_ttl_file = \
1414
'../test/resources/dash_tests/core/complex/personexample.test.ttl'
1515
target_ttl_file = path.abspath(target_ttl_file)
16-
target_graph = rdflib.Graph("Memory2")
16+
target_graph = rdflib.Graph("Memory")
1717
with open(target_ttl_file, 'rb') as file:
1818
target_graph.parse(file=file, format='turtle')
1919
'''
@@ -34,13 +34,13 @@
3434
r = pyshacl.validate(target_graph, inference='both')
3535
'''
3636

37-
t1 = timeit.timeit(run_script_pre_none, set_up_script, number=100) / 100.0
37+
t1 = timeit.timeit(run_script_pre_none, set_up_script, number=200) / 200.0
3838

39-
t2 = timeit.timeit(run_script_pre_rdfs, set_up_script, number=100) / 100.0
39+
t2 = timeit.timeit(run_script_pre_rdfs, set_up_script, number=200) / 200.0
4040

41-
t3 = timeit.timeit(run_script_pre_owlrl, set_up_script, number=100) / 100.0
41+
t3 = timeit.timeit(run_script_pre_owlrl, set_up_script, number=200) / 200.0
4242

43-
t4 = timeit.timeit(run_script_pre_both, set_up_script, number=100) / 100.0
43+
t4 = timeit.timeit(run_script_pre_both, set_up_script, number=200) / 200.0
4444

4545

4646
print("Benchmark completed. Validation took:\n"

0 commit comments

Comments
 (0)