Skip to content

Commit f8d5940

Browse files
committed
Restore workloads
1 parent 2975273 commit f8d5940

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

core/sail/memory/src/test/java/org/eclipse/rdf4j/sail/memory/benchmark/ConcurrentQueryBenchmark.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void tearDown() throws Exception {
8888
public void hasStatement(Blackhole blackhole) throws Exception {
8989
threads(numThreads, () -> {
9090
try (SailRepositoryConnection connection = repository.getConnection()) {
91-
for (int i = 0; i < 50; i++) {
91+
for (int i = 0; i < 100; i++) {
9292
boolean b = connection.hasStatement(null, null, null, true);
9393
blackhole.consume(b);
9494
}
@@ -100,7 +100,7 @@ public void hasStatement(Blackhole blackhole) throws Exception {
100100
public void hasStatementSharedConnection(Blackhole blackhole) throws Exception {
101101
try (SailRepositoryConnection connection = repository.getConnection()) {
102102
threads(numThreads, () -> {
103-
for (int i = 0; i < 50; i++) {
103+
for (int i = 0; i < 100; i++) {
104104
boolean b = connection.hasStatement(null, null, null, true);
105105
blackhole.consume(b);
106106
}
@@ -112,7 +112,7 @@ public void hasStatementSharedConnection(Blackhole blackhole) throws Exception {
112112
public void getNamespaces(Blackhole blackhole) throws Exception {
113113
threads(numThreads, () -> {
114114
try (SailRepositoryConnection connection = repository.getConnection()) {
115-
for (int i = 0; i < 50; i++) {
115+
for (int i = 0; i < 100; i++) {
116116
blackhole.consume(connection.getNamespaces().stream().count());
117117
}
118118
}
@@ -123,7 +123,7 @@ public void getNamespaces(Blackhole blackhole) throws Exception {
123123
public void getNamespacesSharedConnection(Blackhole blackhole) throws Exception {
124124
try (SailRepositoryConnection connection = repository.getConnection()) {
125125
threads(numThreads, () -> {
126-
for (int i = 0; i < 50; i++) {
126+
for (int i = 0; i < 100; i++) {
127127
blackhole.consume(connection.getNamespaces().stream().count());
128128
}
129129
});

core/sail/memory/src/test/java/org/eclipse/rdf4j/sail/memory/benchmark/MemValueFactoryConcurrentBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class MemValueFactoryConcurrentBenchmark extends BaseConcurrentBenchmark
6666
@Param({ "10", "50", "100", "500", "1000", "5000" })
6767
public int numThreads;
6868

69-
public static final int BUCKET_SIZE = 5000;
69+
public static final int BUCKET_SIZE = 10000;
7070
private SailRepository repository;
7171
private List<List<Value>> values;
7272

core/sail/memory/src/test/java/org/eclipse/rdf4j/sail/memory/benchmark/ParallelMixedReadWriteBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private ArrayList<Runnable> getMixedWorkload(Blackhole blackhole, CountDownLatch
258258

259259
for (int i = 0; i < 20 * workloadSize; i++) {
260260
list.add(getRunnable(startSignal, connection, isolationLevel, (localConnection) -> {
261-
for (int j = 0; j < 25; j++) {
261+
for (int j = 0; j < 100; j++) {
262262
localConnection.add(Values.bnode(), RDFS.LABEL, Values.literal(j),
263263
Values.iri("http://example.com/g1"));
264264
}

core/sail/memory/src/test/java/org/eclipse/rdf4j/sail/memory/model/MemStatementListTestIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static void beforeAll() throws IOException {
109109
statements = stream
110110
.map(s -> ((MemStatement) s))
111111
.sorted(Comparator.comparing(Object::toString))
112-
.limit(5000)
112+
.limit(10000)
113113
.collect(Collectors.toList());
114114
}
115115
connection.commit();

0 commit comments

Comments
 (0)