### Build QuickPerf with Local Maven Installation Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Build the QuickPerf project using a locally installed Maven version (requires Maven 3+). ```bash mvn clean install ``` -------------------------------- ### Test JDK 11 with Docker Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Run a clean install of QuickPerf using Maven 3 with JDK 11 in a Docker container. ```bash docker container run --rm --name mvn-quickperf-cleaninstall -v $HOME/.m2:/root/.m2 -v $(pwd):/usr/src/quickperf -w /usr/src/quickperf maven:3-jdk-11 mvn clean install ``` -------------------------------- ### Test JDK 12 with Docker Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Run a clean install of QuickPerf using Maven 3 with JDK 12 in a Docker container. ```bash docker container run --rm --name mvn-quickperf-cleaninstall -v $HOME/.m2:/root/.m2 -v $(pwd):/usr/src/quickperf -w /usr/src/quickperf maven:3-jdk-12 mvn clean install ``` -------------------------------- ### Test Multiple JDKs with Docker in a Loop Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Iterate through JDK versions 11 to 12, running a clean install of QuickPerf with each using Docker. The loop breaks on the first failure. ```bash for i in {11..12}; do echo "******** Testing with maven:3-jdk-$i ********"; docker container run --rm --name mvn-quickperf-cleaninstall -v $HOME/.m2:/root/.m2 -v $(pwd):/usr/src/quickperf -w /usr/src/quickperf maven:3-jdk-$i mvn clean install; if [[ $? != 0 ]]; then break; fi; done ``` -------------------------------- ### Build QuickPerf with Maven Wrapper (Linux/macOS) Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Build the QuickPerf project using the Maven wrapper script on Linux or macOS. ```bash ./mvnw clean install ``` -------------------------------- ### Build QuickPerf with Maven Wrapper (Windows) Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Build the QuickPerf project using the Maven wrapper script on Windows. ```bash mvnw.cmd clean install ``` -------------------------------- ### Clone Documentation Repository Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Use this command to clone the QuickPerf documentation repository. ```git git clone https://github.com/quick-perf/doc.wiki.git ``` -------------------------------- ### Clone QuickPerf Repository Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Clone the main QuickPerf project repository to your local machine. ```git git clone https://github.com/quick-perf/quickperf.git ``` -------------------------------- ### Build with Testcontainers Tests Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Build QuickPerf including Testcontainers tests using a Maven profile. ```bash mvn clean install -P testcontainers ``` -------------------------------- ### Format License Header Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Apply a license header to each new file using the Maven license plugin. ```maven mvn license:format ``` -------------------------------- ### Disable Spring Boot Tests Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Build QuickPerf while excluding Spring Boot tests using a Maven profile. ```bash mvn clean install -P -SpringBootTests ``` -------------------------------- ### Disable jfr-annotations Module Source: https://github.com/quick-perf/quickperf/blob/master/CONTRIBUTING.md Build QuickPerf excluding the 'jfr-annotations' module using a Maven profile. ```bash mvn clean install -P -jfr ``` -------------------------------- ### Measure Heap Allocation and Set Heap Size Source: https://github.com/quick-perf/quickperf/blob/master/README.md Use @MeasureHeapAllocation to track heap allocations and @HeapSize to define the maximum allowed heap size during a test. This snippet is suitable for JVM performance testing. ```java @MeasureHeapAllocation @HeapSize(value = 1, unit = AllocationUnit.GIGA_BYTE) @Test public void execute_batch() { ... } ``` -------------------------------- ### Expect Specific Number of SQL Select Statements Source: https://github.com/quick-perf/quickperf/blob/master/README.md The @ExpectSelect annotation verifies that a specific number of SQL SELECT statements are executed. This is useful for identifying potential N+1 query issues in applications using databases. ```java @ExpectSelect(1) @Test public void should_find_all_players() { ... } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.