Skip to content

Frequently Asked Questions

Jean Bisutti edited this page Nov 18, 2020 · 17 revisions

On this page, we gather frequently asked questions.

If you don't find the answer to your question, please explore the documentation for a few minutes. You still don't get your answer? Don't hesitate to create a question issue or leave a message on the chat.

General

Why use QuickPerf?

Explanations here.

QuickPerf annotations seem not executed

Check that the test is a QuickPerf test.

Global annotations seem not executed

Check that the class implementing SpecifiableGlobalAnnotations uses the org.quickperf package.

πŸ’‘ What is a global annotation?

JVM

Is a long time spent doing GC?

The fastest way to answer this question with QuickPerf is to use ProfileJvm annotation. This annotation displays the GC time on the console:

GARBAGE COLLECTION           
Total pause     : 1,264 s   

This information can help choose a heap size, for example, with HeapSize annotation, to limit GC duration and test length.

org.openjdk.jmc:flightrecorder.rules.jdk:pom:7.0.0 not found

πŸ‘‰ Maven

The error message contains Failure to find org.openjdk.jmc:flightrecorder.rules.jdk:pom:7.0.0 in.

Add the https://adoptopenjdk.jfrog.io/adoptopenjdk/jmc-libs repository to the POM file:

<repositories>
        <repository>
            <id>AdoptOpenJDK</id>
            <name>AdoptOpenJDK</name>
            <url>https://adoptopenjdk.jfrog.io/adoptopenjdk/jmc-libs</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
</repositories>

πŸ‘‰ Gradle

Add the https://adoptopenjdk.jfrog.io/adoptopenjdk/jmc-libs repository to the build.gradle file:

repositories {
	mavenCentral()
	maven { url 'https://adoptopenjdk.jfrog.io/adoptopenjdk/jmc-libs' }
} 

SQL

How to detect N+1 selects

Explanations here

Annotations

πŸ‘‰ Β Core

πŸ‘‰ Β JVM

πŸ‘‰ Β SQL

πŸ‘‰ Β Scopes

πŸ‘‰ Β Create an annotation

Supported frameworks

πŸ‘‰ Β JUnit 4

πŸ‘‰ Β JUnit 5

πŸ‘‰ Β TestNG

πŸ‘‰ Β Spring

How to

πŸ‘‰ Β Detect and fix N+1 SELECT

Project examples

πŸ‘‰ Β Maven performance

πŸ‘‰ Β Spring Boot - JUnit 4

πŸ‘‰ Β Spring Boot - JUnit 5

πŸ‘‰ Β Micronaut Data - JUnit 5

πŸ‘‰ Β Micronaut - Spring - JUnit 5

πŸ‘‰ Β Quarkus - JUnit 5

Miscellaneous

πŸ‘‰ Β FAQ

πŸ‘‰ Β QuickPerf code

Clone this wiki locally