kanedafromparis / quickperf

QuickPerf is a testing library for Java to quickly evaluate and investigate some performance properties.

Home Page:https://github.com/quick-perf/doc/wiki/QuickPerf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuickPerf

QuickPerf is a testing library for Java to quickly evaluate some performance properties.


Maven Central    License    Build Status    Gitter    Twitter Follow    YouTube


Usage

JVM annotations

    @MeasureHeapAllocation
    @HeapSize(value = 1, unit = AllocationUnit.GIGA_BYTE)
    @Test
    public void execute_batch() {
        ...
    }

πŸ“™ All the JVM annotations    πŸ”Ž Examples with JUnit4, Junit5, TestNG    πŸ”Ž Heap allocation of Apache Maven

SQL annotations

    @ExpectSelect(1)
    @Test
    public void should_find_all_players() {
     ...
    }
[PERF] You may think that <1> select statement was sent to the database
       But in fact <10>...

πŸ’£ You may have even more select statements with production data.
Be careful with the cost of JDBC server roundtrips: https://blog.jooq.org/2017/12/18/the-cost-of-jdbc-server-roundtrips/

Auto-detection of Hibernate and Spring Data JPA:

πŸ’‘ Perhaps you are facing an N+1 select issue
	* With Hibernate, you may fix it by using JOIN FETCH
	                                       or LEFT JOIN FETCH
	                                       or FetchType.LAZY
	                                       or ...
	* With Spring Data JPA, you may fix it by adding @EntityGraph(attributePaths = { "..." })
      	  on repository method: https://docs.spring.io/spring-data/jpa/docs/current/reference/ht

πŸ“™ All the SQL annotations    πŸ”Ž Spring Boot & JUnit 4    πŸ”Ž Spring Boot & JUnit 5

View Devoxx Belgium talk

Devoxx Belgium talk

Documentation

The full documentation is available here.

Something to ask us?

πŸ’¬ Want to chat with us? Join us on gitter

:octocat: You prefer to use a Github issue to ask a question? Create a question issue

Show your support

Please ⭐ this repository or Tweet if this project helped you!

Contributing

You are very welcome to contribute to QuickPerf! You can contribute in many ways. Some relatively easy things can be done. Other issues are more challenging. Each contribution is appreciated. Read our contributing guide to learn more.

Contributors

Many thanks to all our contributors!

Jean Bisutti
Jean Bisutti

πŸ’» ⚠ πŸ“– 🎨
πŸ’‘ πŸ‘€ πŸ“’
guiRagh
Guillaume Raghoumandan

πŸ’» ⚠
Patrice CAVEZZAN
Patrice Cavezzan

πŸ’» πŸš‡ πŸ“–
Alexandre Blanchard
Alexandre Blanchard

πŸ› πŸ’»
Eric McDowell
Eric McDowell

πŸ’»
Jan KrΓΌger
Jan KrΓΌger

πŸ’»
LoΓ―c Mathieu
LoΓ―c Mathieu

πŸ’»
Daniel Bentley
Daniel Bentley

πŸš‡
Gaurav Deshpande
Gaurav Deshpande

⚠
rdm100
rdm100

πŸ“–
Artus de Benque
Artus de Benque

πŸ› πŸ’»
Minh-Trieu Ha
Minh-Trieu Ha

πŸ’»
Bakary Djiba
Bakary Djiba

πŸ’»
C Faisal
C Faisal

πŸ’»
Thami Inaflas
Thami Inaflas

πŸ’»
JosΓ© Paumard
JosΓ© Paumard

πŸ’»
Edward Rose
Edward Rose

πŸ’»
Ubaid ur Rehman
Ubaid ur Rehman

πŸ’»
Giuseppe B.
Giuseppe B.

πŸ’»
Fabrice
Fabrice

πŸ’»
Navneet Kumar
Navneet Kumar

πŸ’»
emoji key

Sponsors

Many thanks Zenika for sponsoring this project!

with love by zenika

License

Apache License 2.0

About

QuickPerf is a testing library for Java to quickly evaluate and investigate some performance properties.

https://github.com/quick-perf/doc/wiki/QuickPerf

License:Apache License 2.0


Languages

Language:Java 99.9%Language:TSQL 0.1%