Skip to content

Ease your work on Spring Boot applications: quickly generate functional non-regression tests, diagnose performance and generate non-regression tests on performance-related properties.

License

Notifications You must be signed in to change notification settings

debbeca/quickperf-live

 
 

Repository files navigation

QuickPerf live

A tool to ease your work as a developer, not only regarding performance. Make your developer job easier.


📺 QuickPerf live demo (in French)    @QuickPerf    License    Build Status


Main features

Diagnose performance-related properties

GET 200 http://localhost:8080/owners?lastName=
* [WARNING] N+1 select suspicion - 453 SELECT
GET 200 http://localhost:8080/owners/2/edit
* [WARNING] Heap allocation is greater than 10 000 000 bytes: 17 509 888 bytes

👉 Learn more

💡 You can use the performance diagnostic features during development or to help you diagnose the performance of a deployed application.

Generate non-regression tests

The generated tests ensure a non-regression on:

  • functional behavior
  • performance-related properties

👉 Learn more

Some use cases

You have many things to do or think about in your daily job. You may not have enough time to improve the following issues that would ease your daily job or improve the user experience. QuickPerf live could help you!

You work on an application lacking automated tests on business behavior

Are you not confident that your new development will not break another feature? QuickPerf live allows you to generate automated tests! More here.

You want to fix an N+1 select

QuickPerf live can generate an automatic test reproducing the N+1 select. You can use it to investigate the cause of the N+1 select. The produced test will also ensure non-regression on the absence of N+1 select as well as on the functional behavior.

Your application allocates a lot

QuickPerf live allows you to measure the heap allocation generated by each HTTP call.

You want to know how a web service handles the business data

Finding out what types of business data a web service handles may be challenging. Sometimes, as a developer, we may also be tempted to load more data than necessary to implement a business behavior, potentially impacting performance. In both cases, QuickPerf live can help you by displaying the selected columns from the database (cf. Selected columns part in Database diagnostics), or creating the database dataset of a generated web service test.

Add QuickPerf live to your project

Current limitations

QuickPerf live works today for web applications developed with Spring Boot 2.

Today, we don't recommend enabling the tool in a production environment.

Add QuickPerf live dependency

<dependency>
    <groupId>org.quickperf</groupId>
    <artifactId>quick-perf-live-springboot2</artifactId>
    <version>0.12</version>
</dependency>

Enable QuickPerf live

From a yaml file:

quickperf:
  enabled: true

From a .properties file:

quickperf.enabled=true

Enable QuickPerf live features

Enable the performance diagnostic and test generation features

You can configure the performance diagnostics and the test generation with properties. You can also update the configuration after the application startup with the help of MBeans.

👉 Performance diagnostics

👉 Test generation

Tip

QuickPerf MBeans are unavailable? Read this.

Configuration examples

👉 A yaml file example

👉 A .properties file example

Export QuickPerf live information

Display info on application logs

logging.level.org.quickperf.*=INFO

Implement custom exports

Create Spring beans implementing QuickPerfHttpCallInfoWriter or QuickPerfHttpCallWarningWriter interfaces. You can use this feature to generate a performance diagnostic report or record the history of performance-related properties.

About

Ease your work on Spring Boot applications: quickly generate functional non-regression tests, diagnose performance and generate non-regression tests on performance-related properties.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.9%
  • HTML 0.1%