Skip to content

Commit

Permalink
Readme updated to include the outputRawResults field changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
constraintAutomaton committed Sep 25, 2024
1 parent 0bc65da commit 7bb3dd0
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,24 @@ npm install sparql-benchmark-runner
```

## Usage

`sparql-benchmark-runner` can be used as a CLI programming with the the following options.
```
Options:
--version Show version number [boolean]
--endpoint URL of the SPARQL endpoint to send queries to
[string] [required]
--queries Directory of the queries [string] [required]
--replication Number of replication runs [number] [default: 5]
--warmup Number of warmup runs [number] [default: 1]
--output Destination for the output CSV file
[string] [default: "./output.csv"]
--timeout Timeout value in seconds to use for individual queries
[number]
--outputRawResults A flag indicating if SPARQL Benchmark Runner should also
output the raw results [boolean] [default: false]
----help
```
A user can run with this example input.
```bash
sparql-benchmark-runner \
--endpoint http://example.org/sparql \
Expand Down Expand Up @@ -95,6 +112,7 @@ async function executeQueries(pathToQueries, pathToOutputCsv) {
availabilityCheckTimeout: 1_000,
logger: (message) => console.log(message),
resultAggregator,
outputRawResults: false // false by default, if true will add the raw results (timeAggregate field) to aggregate
});

const results = await runner.run();
Expand All @@ -113,12 +131,12 @@ docker run \
--rm \
--interactive \
--tty \
--volume $(pwd)/output.csv:/tmp/output.csv \
--volume $(pwd)/queries:/tmp/queries \
--volume $(pwd)/output.csv:/output.csv \
--volume $(pwd)/queries:/queries \
comunica/sparql-benchmark-runner \
--endpoint https://dbpedia.org/sparql \
--queries /tmp/queries \
--output /tmp/output.csv \
--queries /queries \
--output /output.csv \
--replication 5 \
--warmup 1
```
Expand Down

0 comments on commit 7bb3dd0

Please sign in to comment.