Β Β Β Β Β Β Β Β quickperf.io
@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
@ExpectSelect(1)
@Test
public void should_find_all_players() {
...
}
[PERF] You may think that <1> select statement was sent to the database
But there are in fact <10>...
π£ You may have even more select statements with production data.
Be careful with the cost of JDBC 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
π§ [email protected]
π¬ Want to chat with us? Join us on gitter
Do you prefer to use a Github issue to ask a question? Create a question issue
Please β this repository or if this project helped you!
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.
Many thanks to all our contributors!