Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Update placeholders to recent syntax, reduce test fork count.

See: #3309
  • Loading branch information
mp911de authored and christophstrobl committed Jun 25, 2024
1 parent b8319a0 commit f607dd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spring-data-jpa-performance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<dependencies>

<dependency>
<groupId>${groupId}</groupId>
<groupId>${project.groupId}</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@
import java.util.Set;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.TearDown;
import org.openjdk.jmh.annotations.Timeout;
import org.openjdk.jmh.annotations.Warmup;
import org.springframework.data.jpa.model.IPersonProjection;
import org.springframework.data.jpa.model.Person;
Expand All @@ -48,8 +50,10 @@
* @author Christoph Strobl
*/
@Microbenchmark
@Warmup(time = 5, iterations = 3)
@Measurement(time = 5)
@Fork(1)
@Warmup(time = 2, iterations = 3)
@Measurement(time = 2)
@Timeout(time = 2)
public class RepositoryFinderTests {

@State(Scope.Benchmark)
Expand Down

0 comments on commit f607dd2

Please sign in to comment.