Skip to content

Commit f607dd2

Browse files
mp911dechristophstrobl
authored andcommitted
Polishing.
Update placeholders to recent syntax, reduce test fork count. See: #3309
1 parent b8319a0 commit f607dd2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

spring-data-jpa-performance/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<dependencies>
2020

2121
<dependency>
22-
<groupId>${groupId}</groupId>
22+
<groupId>${project.groupId}</groupId>
2323
<artifactId>spring-data-jpa</artifactId>
24-
<version>${version}</version>
24+
<version>${project.version}</version>
2525
</dependency>
2626

2727
<dependency>

spring-data-jpa-performance/src/test/java/org/springframework/data/jpa/repository/RepositoryFinderTests.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@
3131
import java.util.Set;
3232

3333
import org.openjdk.jmh.annotations.Benchmark;
34+
import org.openjdk.jmh.annotations.Fork;
3435
import org.openjdk.jmh.annotations.Level;
3536
import org.openjdk.jmh.annotations.Measurement;
3637
import org.openjdk.jmh.annotations.Scope;
3738
import org.openjdk.jmh.annotations.Setup;
3839
import org.openjdk.jmh.annotations.State;
3940
import org.openjdk.jmh.annotations.TearDown;
41+
import org.openjdk.jmh.annotations.Timeout;
4042
import org.openjdk.jmh.annotations.Warmup;
4143
import org.springframework.data.jpa.model.IPersonProjection;
4244
import org.springframework.data.jpa.model.Person;
@@ -48,8 +50,10 @@
4850
* @author Christoph Strobl
4951
*/
5052
@Microbenchmark
51-
@Warmup(time = 5, iterations = 3)
52-
@Measurement(time = 5)
53+
@Fork(1)
54+
@Warmup(time = 2, iterations = 3)
55+
@Measurement(time = 2)
56+
@Timeout(time = 2)
5357
public class RepositoryFinderTests {
5458

5559
@State(Scope.Benchmark)

0 commit comments

Comments
 (0)