Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quick-perf/quickperf-examples
Examples showing how to use QuickPerf with several frameworks (JUnit 4, JUnit 5, TestNG, Spring Boot, Quarkus, Micronaut, ...)
https://github.com/quick-perf/quickperf-examples
hibernate junit4 junit5 jvm micronaut micronautfw microservice n-plus-1 nplus1 profiling quarkus spring-boot spring-data-jpa testng
Last synced: about 1 month ago
JSON representation
Examples showing how to use QuickPerf with several frameworks (JUnit 4, JUnit 5, TestNG, Spring Boot, Quarkus, Micronaut, ...)
- Host: GitHub
- URL: https://github.com/quick-perf/quickperf-examples
- Owner: quick-perf
- License: apache-2.0
- Created: 2020-01-16T14:44:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T18:36:44.000Z (over 1 year ago)
- Last Synced: 2024-09-27T19:01:22.947Z (about 2 months ago)
- Topics: hibernate, junit4, junit5, jvm, micronaut, micronautfw, microservice, n-plus-1, nplus1, profiling, quarkus, spring-boot, spring-data-jpa, testng
- Language: Java
- Homepage:
- Size: 321 KB
- Stars: 18
- Watchers: 2
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# QuickPerf examples
This repository contains several projects showing how to use QuickPerf [JVM](https://github.com/quick-perf/doc/wiki/JVM-annotations) and [SQL](https://github.com/quick-perf/doc/wiki/SQL-annotations) annotations with various frameworks (*JUnit 4*, *JUnit 5*, *TestNG*, *Testcontainers*, *Spring Boot*, *Quarkus*, *Micronaut*, ...).
[How to run the examples](#How-to-run-the-examples)
[JVM annotations](#JVM-annotations)
[Hibernate without Spring](#Hibernate-without-Spring)
[Spring Boot](#Spring-Boot)
[Micronaut](#Micronaut)
[Quarkus](#Quarkus)
[Testcontainers](#Testcontainers)## How to run the examples
## Online in Developer Sandbox
Run the examples with an online interactive guide (hosted by Red Hat):Developer Sandbox is a Red Hat OpenShift cluster to deploy your application code as a container on this self-service, cloud-hosted experience. Skip installations and deployment and jump directly into OpenShift.
1. Get registered if not: https://developers.redhat.com/developer-sandbox
2. Start the workspace: [![try it online](https://www.eclipse.org/che/contribute.svg)](https://workspaces.openshift.com/f?url=https://github.com/quick-perf/quickperf-examples)Powered by [Eclipse Che](https://www.eclipse.org/che/) and [VSCode Didact](https://github.com/redhat-developer/vscode-didact).
## From your computer
*[QuickPerf artifacts are published to Maven central](https://search.maven.org/search?q=org.quickperf).*Execute the following command lines:
*Windows*
```
git clone https://github.com/quick-perf/quickperf-examples.git
cd quickperf-examples
mvnw.cmd compile
```*Mac or Linux or Windows with Git Bash*
```
git clone https://github.com/quick-perf/quickperf-examples.git
cd quickperf-examples
./mvnw compile
```Import the _quickperf-examples_ project in your IDE.
You can now execute the test methods from your IDE.
Tests are skiped by default as they will all fail, if you want to execute them via Maven you need to use
`mvn clean test -Dmaven.test.skip=false -Dmaven.test.failure.ignore`.## JVM annotations
**[jvm-junit4](jvm-junit4/src/test/java/org/quickperf/jvm)**
Examples showing how to use some **JVM annotations** with **JUnit 4****[jvm-junit5](jvm-junit5/src/test/java/org/quickperf/jvm)**
Examples showing how to use some **JVM annotations** with **JUnit 5****[jvm-testng](jvm-testng/src/test/java/org/quickperf/jvm)**
Examples showing how to use some **JVM annotations** with **TestNG**## Hibernate without Spring
**[hibernate-junit4](hibernate-junit4)**
Examples showing how to use some SQL annotations with **Hibernate** and **JUnit 4****[hibernate-junit5](hibernate-junit5)**
Examples showing how to use some SQL annotations with **Hibernate** and **JUnit 5****[hibernate-postgresql-testcontainers-junit5](tc-postgresql-hibernate-junit5)**
Examples showing how to use some SQL annotations with **Hibernate**, **JUnit 5**, **PostgreSQL** and [**Testcontainers**](https://www.testcontainers.org)**[hibernate-mariadb-testcontainers-junit5](tc-mariadb-hibernate-junit5)**
Examples showing how to use some SQL annotations with **Hibernate**, **JUnit 5**, **MariaDB** and [**Testcontainers**](https://www.testcontainers.org)**[hibernate-testng](hibernate-testng)**
Examples showing how to use some SQL annotations with **Hibernate** and **TestNG**## Spring Boot
**[springboot-junit4](springboot-junit4)**
This **Spring Boot** project illustrates how to use QuickPerf with **JUnit 4****[springboot-junit5](springboot-junit5)**
This **Spring Boot** project illustrates how to use QuickPerf with **JUnit 5****[testcontainers-springboot-junit5](tc-springboot-junit5)**
This **Spring Boot** project illustrates how to use QuickPerf with **JUnit 5** and [**Testcontainers**](https://www.testcontainers.org)## Micronaut
**[micronaut-hibernate-jpa](micronaut-hibernate-jpa)**
This **Micronaut/Hibernate/JPA** project illustrates how to use QuickPerf with **JUnit 5****[micronaut-data-jdbc](micronaut-data-jdbc)**
This **Micronaut/Data JDBC** project illustrates how to use QuickPerf with **JUnit 5**## Quarkus
**[quarkus](quarkus)**
This **Quarkus** project illustrates how to use QuickPerf with **JUnit 5** for SQL annotations only## Testcontainers
**[hibernate-postgresql-testcontainers-junit5](tc-postgresql-hibernate-junit5)**
Examples showing how to use some SQL annotations with **Hibernate**, **JUnit 5**, **PostgreSQL** and [**Testcontainers**](https://www.testcontainers.org)**[hibernate-mariadb-testcontainers-junit5](tc-mariadb-hibernate-junit5)**
Examples showing how to use some SQL annotations with **Hibernate**, **JUnit 5**, **MariaDB** and [**Testcontainers**](https://www.testcontainers.org)**[testcontainers-springboot-junit5](tc-springboot-junit5)**
This **Spring Boot** project illustrates how to use QuickPerf with **JUnit 5** and [**Testcontainers**](https://www.testcontainers.org)