parent
d9c36fb453
commit
4c2eafbfe0
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 46 KiB |
@ -1,19 +1,19 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
DATASET_SIZE=100000 |
||||
DATASET_SIZE=10000 |
||||
cd bsbm-tools |
||||
./generate -fc -pc ${DATASET_SIZE} -s nt -fn "explore-${DATASET_SIZE}" |
||||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 |
||||
../graphdb-free-8.11.0/bin/graphdb -s -Dgraphdb.logger.root.level=WARN & |
||||
../graphdb-free-9.3.3/bin/graphdb -s -Dgraphdb.logger.root.level=WARN & |
||||
sleep 10 |
||||
curl -f -X POST http://localhost:7200/rest/repositories -H 'Content-Type:application/json' -d ' |
||||
{"id":"test","params":{"ruleset":{"label":"Ruleset","name":"ruleset","value":"empty"},"title":{"label":"Repository title","name":"title","value":"GraphDB Free repository"},"checkForInconsistencies":{"label":"Check for inconsistencies","name":"checkForInconsistencies","value":"false"},"disableSameAs":{"label":"Disable owl:sameAs","name":"disableSameAs","value":"true"},"baseURL":{"label":"Base URL","name":"baseURL","value":"http://example.org/owlim#"},"repositoryType":{"label":"Repository type","name":"repositoryType","value":"file-repository"},"id":{"label":"Repository ID","name":"id","value":"repo-test"},"storageFolder":{"label":"Storage folder","name":"storageFolder","value":"storage"}},"title":"Test","type":"free"} |
||||
' |
||||
curl -f -X PUT -H 'Content-Type:application/n-triples' --data-binary "@explore-${DATASET_SIZE}.nt" http://localhost:7200/repositories/test/statements |
||||
./testdriver -ucf usecases/explore/sparql.txt -o "../bsbm.explore.graphdb.${DATASET_SIZE}.8.11.0.xml" http://localhost:7200/repositories/test |
||||
./testdriver -ucf usecases/businessIntelligence/sparql.txt -o "../bsbm.businessIntelligence.graphdb.${DATASET_SIZE}.8.11.0.xml" http://localhost:7200/repositories/test |
||||
./testdriver -ucf usecases/explore/sparql.txt -o "../bsbm.explore.graphdb.${DATASET_SIZE}.9.3.3.xml" http://localhost:7200/repositories/test |
||||
./testdriver -ucf usecases/businessIntelligence/sparql.txt -o "../bsbm.businessIntelligence.graphdb.${DATASET_SIZE}.9.3.3.xml" http://localhost:7200/repositories/test |
||||
kill $! |
||||
sleep 5 |
||||
rm -r ../graphdb-free-8.11.0/data |
||||
rm -r ../graphdb-free-9.3.3/data |
||||
rm "explore-${DATASET_SIZE}.nt" |
||||
rm -r td_data |
||||
|
@ -1,19 +1,14 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
DATASET_SIZE=100000 # number of products in the dataset. There is around 350 triples generated by product. |
||||
MEMORY_SIZE=1000000 # available memory for Oxigraph in KB. Useful to simulate low RAM machines. |
||||
|
||||
DATASET_SIZE=10000 # number of products in the dataset. There is around 350 triples generated by product. |
||||
cd bsbm-tools |
||||
./generate -fc -pc ${DATASET_SIZE} -s nt -fn "explore-${DATASET_SIZE}" |
||||
cargo build --release --manifest-path="../../server/Cargo.toml" |
||||
( |
||||
ulimit -d ${MEMORY_SIZE} |
||||
./../../target/release/oxigraph_server --file oxigraph_data --bind 127.0.0.1:7878 |
||||
) & |
||||
./../../target/release/oxigraph_server --file oxigraph_data --bind 127.0.0.1:7878 & |
||||
sleep 5 |
||||
curl -f -X POST -H 'Content-Type:application/n-triples' --data-binary "@explore-${DATASET_SIZE}.nt" http://127.0.0.1:7878/ |
||||
./testdriver -ucf usecases/explore/sparql.txt -o "../bsbm.explore.oxigraph.${DATASET_SIZE}.${MEMORY_SIZE}.$(date +'%Y-%m-%d').xml" http://127.0.0.1:7878/query |
||||
./testdriver -ucf usecases/businessIntelligence/sparql.txt -o "../bsbm.businessIntelligence.oxigraph.${DATASET_SIZE}.${MEMORY_SIZE}.$(date +'%Y-%m-%d').xml" "http://127.0.0.1:7878/query" |
||||
./testdriver -ucf usecases/explore/sparql.txt -o "../bsbm.explore.oxigraph.${DATASET_SIZE}.0.1.0-rocksdb.xml" http://127.0.0.1:7878/query |
||||
./testdriver -ucf usecases/businessIntelligence/sparql.txt -o "../bsbm.businessIntelligence.${DATASET_SIZE}.0.1.0-rocksdb.xml" "http://127.0.0.1:7878/query" |
||||
kill $! |
||||
rm -r oxigraph_data |
||||
rm "explore-${DATASET_SIZE}.nt" |
||||
|
Loading…
Reference in new issue