quick-perf/quickperf
关于
QuickPerf 是一个 Java 测试库,可快速评估并改进某些与性能相关的属性。
数据实测星标增长
- 24小时
- +1
- 7天
- +1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties
📙 Documentation
Annotations
:point_right: Core
:point_right: JVM
:point_right: SQL
Frameworks and Test Frameworks
:point_right: Spring
:point_right: JUnit 4
:point_right: JUnit 5
:point_right: TestNG
Frequently Asked Questions
Usage
JVM annotations
@MeasureHeapAllocation
@HeapSize(value = 1, unit = AllocationUnit.GIGA_BYTE)
@Test
public void execute_batch() {
...
}
📙 All the JVM annotations :mag_right: Examples with JUnit4, Junit5, TestNG :mag_right: 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 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 :mag_right: Spring Boot & JUnit 4 :mag_right: Spring Boot & JUnit 5
Talks and videos
English
French
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!
emoji keyLicense
探索相关项目
加载中…