From a3f9dd455c6f85a3786bbb6c1f6d5cdfd0dcd5d2 Mon Sep 17 00:00:00 2001 From: bookug Date: Wed, 8 Aug 2018 13:52:01 +0800 Subject: [PATCH] docs: benchmark1 is right in java api of http; but benchmark still exists errors; by znegli --- api/http/java/example/Benchmark1.java | 6 +++--- api/http/java/example/Makefile | 7 ++++++- api/http/java/example/result/.gitignore | 0 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 api/http/java/example/result/.gitignore diff --git a/api/http/java/example/Benchmark1.java b/api/http/java/example/Benchmark1.java index 6734988..db686ff 100644 --- a/api/http/java/example/Benchmark1.java +++ b/api/http/java/example/Benchmark1.java @@ -26,7 +26,7 @@ class MyThread extends Thread { String filename = "result/" + num + ".txt"; String answer = ""; // String answer = gc.query("root", "123456", "test", sparql); - gc.query("root", "123456", "test", sparql, filename); + gc.query("root", "123456", "lubm", sparql, filename); FileInputStream in = null; try { @@ -67,8 +67,8 @@ public class Benchmark1 { public static void main(String[] args) { - GstoreConnector gc = new GstoreConnector("172.31.222.78", 3305); - gc.load("test", "root", "123456"); + GstoreConnector gc = new GstoreConnector("172.31.222.94", 9000); + gc.load("lubm", "root", "123456"); String[] spq = new String[6]; spq[0] = "select ?x where" +"{" diff --git a/api/http/java/example/Makefile b/api/http/java/example/Makefile index 08f4889..c5a9472 100644 --- a/api/http/java/example/Makefile +++ b/api/http/java/example/Makefile @@ -1,4 +1,4 @@ -all: JavaAPIExample.class Benchmark.class +all: JavaAPIExample.class Benchmark.class Benchmark1.class JavaAPIExample.class: JavaAPIExample.java javac -cp ../lib/GstoreJavaAPI.jar JavaAPIExample.java @@ -6,12 +6,17 @@ JavaAPIExample.class: JavaAPIExample.java Benchmark.class: Benchmark.java javac -cp ../lib/GstoreJavaAPI.jar Benchmark.java +Benchmark1.class: Benchmark1.java + javac -cp ../lib/GstoreJavaAPI.jar Benchmark1.java + .PHONY: clean run run: JavaAPIExample.class java -cp ../lib/GstoreJavaAPI.jar:. JavaAPIExample test: Benchmark.class java -XX:-UseGCOverheadLimit -Xmx64G -cp ../lib/GstoreJavaAPI.jar:. Benchmark +test1: Benchmark1.class + java -XX:-UseGCOverheadLimit -Xmx64G -cp ../lib/GstoreJavaAPI.jar:. Benchmark1 #test: Benchmark.class #java -XX:-UseGCOverheadLimit -Xmx64G -cp ../lib/GstoreJavaAPI.jar:. Benchmark >> time.txt diff --git a/api/http/java/example/result/.gitignore b/api/http/java/example/result/.gitignore new file mode 100644 index 0000000..e69de29