Skip to content

Commit c96c4de

Browse files
authored
Merge pull request #9 from ponder-lab/fibers_additional_jmh_workload
Change workload (fibers)
2 parents 5275532 + b24ad59 commit c96c4de

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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 < 100; i++) {
91+
for (int i = 0; i < 50; 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 < 100; i++) {
103+
for (int i = 0; i < 50; 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 < 100; i++) {
115+
for (int i = 0; i < 50; 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 < 100; i++) {
126+
for (int i = 0; i < 50; 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 = 10000;
69+
public static final int BUCKET_SIZE = 5000;
7070
private SailRepository repository;
7171
private List<List<Value>> values;
7272

0 commit comments

Comments
 (0)