-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50b7949
commit 03b0540
Showing
28 changed files
with
270 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/componentsjs-error-state.json | ||
/node_modules | ||
/generated/* | ||
!/generated/.keep | ||
/output/* | ||
!/output/.keep | ||
/combinations/*/generated/* | ||
!/combinations/*/generated/.keep | ||
/combinations/*/output/* | ||
!/combinations/*/output/.keep | ||
plot_queries_data.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Benchmark BSBM HDT | ||
|
||
This internal package benchmarks Comunica HDT using the [BSBM](http://wbsg.informatik.uni-mannheim.de/bizer/berlinsparqlbenchmark/) benchmark. | ||
|
||
Compare your current version of Comunica locally with the latest published release by running `npm run performance` from within this package. | ||
This will output a file called `plot_queries_data.svg` that visualizes the performance differences. | ||
|
||
If you only want to check the performance of your current version of Comunica, | ||
you can run `npm run performance:ci` instead, | ||
which is what the CI will run as well for continuous performance measurements. | ||
|
||
Continuous performance results are tracked on https://github.com/comunica/comunica-performance-results. |
Empty file.
Empty file.
8 changes: 8 additions & 0 deletions
8
performance/benchmark-bsbm-hdt/combinations/combination_0/input/config-client.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-hdt/^3.0.0/components/context.jsonld" | ||
], | ||
"import": [ | ||
"ccqsh:config/config-default.json" | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
performance/benchmark-bsbm-hdt/combinations/combination_0/input/context-client.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"sources": [{ "type": "hdt", "value": "/tmp/dataset.hdt" }] | ||
} |
19 changes: 19 additions & 0 deletions
19
...ormance/benchmark-bsbm-hdt/combinations/combination_0/input/dockerfiles/Dockerfile-client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM comunica/query-sparql-hdt:latest | ||
|
||
ARG CONFIG_CLIENT | ||
ARG QUERY_TIMEOUT | ||
ARG MAX_MEMORY | ||
ARG LOG_LEVEL | ||
|
||
ADD $CONFIG_CLIENT /tmp/config.json | ||
|
||
ENV COMUNICA_CONFIG=/tmp/config.json | ||
ENV NODE_ENV=production | ||
ENV MAX_MEMORY=$MAX_MEMORY | ||
ENV QUERY_TIMEOUT=$QUERY_TIMEOUT | ||
ENV LOG_LEVEL=$LOG_LEVEL | ||
|
||
EXPOSE 3000 | ||
|
||
ENTRYPOINT [] | ||
CMD [ "/bin/sh", "-c", "node --max-old-space-size=$MAX_MEMORY ./bin/http.js -c /tmp/context.json -p 3000 -t $QUERY_TIMEOUT -l $LOG_LEVEL -i" ] |
17 changes: 17 additions & 0 deletions
17
performance/benchmark-bsbm-hdt/combinations/combination_0/jbr-experiment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/jbr/^5.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@jbr-experiment/bsbm/^5.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@jbr-hook/sparql-endpoint-comunica/^5.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@jbr-hook/cli/^5.0.0/components/context.jsonld" | ||
], | ||
"@id": "urn:jbr:benchmark-bsbm-hdt:combination_0", | ||
"@type": "ExperimentBsbm", | ||
"productCount": 1000, | ||
"generateHdt": true, | ||
"endpointUrl": "http://host.docker.internal:3001/sparql", | ||
"endpointUrlExternal": "http://localhost:3001/sparql", | ||
"warmupRuns": 5, | ||
"runs": 10, | ||
"hookSparqlEndpoint": { "@id": "urn:jbr:benchmark-bsbm-hdt:hookSparqlEndpoint", "@type": "HookCli", "entrypoint": ["node", "../../engines/query-sparql-hdt/bin/http.js", "hdt@generated/dataset.hdt", "-p", "3001"], "statsFilePath": "output/stats.csv" } | ||
} |
Empty file.
Empty file.
Empty file.
8 changes: 8 additions & 0 deletions
8
performance/benchmark-bsbm-hdt/combinations/combination_1/input/config-client.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-hdt/^3.0.0/components/context.jsonld" | ||
], | ||
"import": [ | ||
"ccqsh:config/config-default.json" | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
performance/benchmark-bsbm-hdt/combinations/combination_1/input/context-client.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"sources": [{ "type": "hdt", "value": "/tmp/dataset.hdt" }] | ||
} |
19 changes: 19 additions & 0 deletions
19
...ormance/benchmark-bsbm-hdt/combinations/combination_1/input/dockerfiles/Dockerfile-client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM comunica/query-sparql-hdt:latest | ||
|
||
ARG CONFIG_CLIENT | ||
ARG QUERY_TIMEOUT | ||
ARG MAX_MEMORY | ||
ARG LOG_LEVEL | ||
|
||
ADD $CONFIG_CLIENT /tmp/config.json | ||
|
||
ENV COMUNICA_CONFIG=/tmp/config.json | ||
ENV NODE_ENV=production | ||
ENV MAX_MEMORY=$MAX_MEMORY | ||
ENV QUERY_TIMEOUT=$QUERY_TIMEOUT | ||
ENV LOG_LEVEL=$LOG_LEVEL | ||
|
||
EXPOSE 3000 | ||
|
||
ENTRYPOINT [] | ||
CMD [ "/bin/sh", "-c", "node --max-old-space-size=$MAX_MEMORY ./bin/http.js -c /tmp/context.json -p 3000 -t $QUERY_TIMEOUT -l $LOG_LEVEL -i" ] |
17 changes: 17 additions & 0 deletions
17
performance/benchmark-bsbm-hdt/combinations/combination_1/jbr-experiment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/jbr/^5.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@jbr-experiment/bsbm/^5.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@jbr-hook/sparql-endpoint-comunica/^5.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@jbr-hook/cli/^5.0.0/components/context.jsonld" | ||
], | ||
"@id": "urn:jbr:benchmark-bsbm-hdt:combination_1", | ||
"@type": "ExperimentBsbm", | ||
"productCount": 1000, | ||
"generateHdt": true, | ||
"endpointUrl": "http://host.docker.internal:3001/sparql", | ||
"endpointUrlExternal": "http://localhost:3001/sparql", | ||
"warmupRuns": 5, | ||
"runs": 10, | ||
"hookSparqlEndpoint": { "@id": "urn:jbr:benchmark-bsbm-hdt:hookSparqlEndpoint", "@type": "HookSparqlEndpointComunica", "dockerfileClient": "input/dockerfiles/Dockerfile-client", "resourceConstraints": { "@type": "StaticDockerResourceConstraints", "cpu_percentage": 100 }, "configClient": "input/config-client.json", "contextClient": "input/context-client.json", "additionalBinds": ["/generated/dataset.nt:/tmp/dataset.nt"], "clientPort": 3001, "clientLogLevel": "info", "maxMemory": 8192 } | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-hdt/^3.0.0/components/context.jsonld" | ||
], | ||
"import": [ | ||
"ccqsh:config/config-default.json" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"sources": [{ "type": "hdt", "value": "/tmp/dataset.hdt" }] | ||
} |
19 changes: 19 additions & 0 deletions
19
performance/benchmark-bsbm-hdt/input/dockerfiles/Dockerfile-client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM comunica/query-sparql-hdt:latest | ||
|
||
ARG CONFIG_CLIENT | ||
ARG QUERY_TIMEOUT | ||
ARG MAX_MEMORY | ||
ARG LOG_LEVEL | ||
|
||
ADD $CONFIG_CLIENT /tmp/config.json | ||
|
||
ENV COMUNICA_CONFIG=/tmp/config.json | ||
ENV NODE_ENV=production | ||
ENV MAX_MEMORY=$MAX_MEMORY | ||
ENV QUERY_TIMEOUT=$QUERY_TIMEOUT | ||
ENV LOG_LEVEL=$LOG_LEVEL | ||
|
||
EXPOSE 3000 | ||
|
||
ENTRYPOINT [] | ||
CMD [ "/bin/sh", "-c", "node --max-old-space-size=$MAX_MEMORY ./bin/http.js -c /tmp/context.json -p 3000 -t $QUERY_TIMEOUT -l $LOG_LEVEL -i" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/jbr/^5.0.0/components/context.jsonld" | ||
], | ||
"@id": "urn:jbr:benchmark-bsbm-hdt-combinations", | ||
"@type": "FullFactorialCombinationProvider", | ||
"commonGenerated": true, | ||
"factors": { | ||
"hookSparqlEndpoint": [ | ||
"{\"@id\": \"urn:jbr:benchmark-bsbm-hdt:hookSparqlEndpoint\",\"@type\": \"HookCli\",\"entrypoint\": [ \"node\", \"../../engines/query-sparql-hdt/bin/http.js\", \"hdt@generated/dataset.hdt\", \"-p\", \"3001\"],\"statsFilePath\": \"output/stats.csv\" }", | ||
"{\"@id\": \"urn:jbr:benchmark-bsbm-hdt:hookSparqlEndpoint\", \"@type\": \"HookSparqlEndpointComunica\", \"dockerfileClient\": \"input/dockerfiles/Dockerfile-client\", \"resourceConstraints\": {\"@type\": \"StaticDockerResourceConstraints\",\"cpu_percentage\": 100 }, \"configClient\": \"input/config-client.json\", \"contextClient\": \"input/context-client.json\", \"additionalBinds\": [\"/generated/dataset.nt:/tmp/dataset.nt\"], \"clientPort\": 3001, \"clientLogLevel\": \"info\", \"maxMemory\": 8192}" | ||
] | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
performance/benchmark-bsbm-hdt/jbr-experiment.json.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/jbr/^5.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@jbr-experiment/bsbm/^5.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@jbr-hook/sparql-endpoint-comunica/^5.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@jbr-hook/cli/^5.0.0/components/context.jsonld" | ||
], | ||
"@id": "urn:jbr:benchmark-bsbm-hdt", | ||
"@type": "ExperimentBsbm", | ||
"productCount": 1000, | ||
"generateHdt": true, | ||
"endpointUrl": "http://host.docker.internal:3001/sparql", | ||
"endpointUrlExternal": "http://localhost:3001/sparql", | ||
"warmupRuns": 5, | ||
"runs": 10, | ||
"hookSparqlEndpoint": %FACTOR-hookSparqlEndpoint% | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "benchmark-bsbm-hdt", | ||
"version": "3.1.0", | ||
"private": true, | ||
"scripts": { | ||
"jbr": "cross-env NODE_OPTIONS=--max-old-space-size=8192 jbr", | ||
"validate": "jbr validate", | ||
"performance": "docker pull comunica/query-sparql-hdt:latest && jbr prepare && jbr run && psbr csv bsbm combinations/combination_*/output && psbr tex query combinations/combination_*/output --svg --logY --overrideCombinationLabels Current,Previous", | ||
"performance:ci": "jbr prepare -c 0 && jbr run -c 0 && psbr csv bsbm combinations/combination_0/output" | ||
}, | ||
"dependencies": { | ||
"@jbr-experiment/bsbm": "^5.2.3", | ||
"@jbr-hook/cli": "^5.2.0", | ||
"@jbr-hook/sparql-endpoint-comunica": "^5.2.0", | ||
"cross-env": "^7.0.3", | ||
"jbr": "^5.2.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
03b0540
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmarks total results
WatDiv-HDT
5066
ms5066
ms1
BSBM-HDT
794
msThis comment was automatically generated by workflow using github-action-benchmark.
03b0540
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Performance benchmarks succeeded! 🚀
[Summarized results] [Detailed results]
03b0540
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmarks total results
WatDiv-HDT
4966
ms5066
ms0.98
BSBM-HDT
791
msThis comment was automatically generated by workflow using github-action-benchmark.
03b0540
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Performance benchmarks succeeded! 🚀
[Summarized results] [Detailed results]