Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rburgst/spring-boot-jpa-kotlin-slow
demo repo showing slow integration tests with spring-boot and kotlin/hibernate/liquibase
https://github.com/rburgst/spring-boot-jpa-kotlin-slow
Last synced: 2 days ago
JSON representation
demo repo showing slow integration tests with spring-boot and kotlin/hibernate/liquibase
- Host: GitHub
- URL: https://github.com/rburgst/spring-boot-jpa-kotlin-slow
- Owner: rburgst
- Created: 2019-05-17T08:34:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-17T08:35:40.000Z (over 5 years ago)
- Last Synced: 2024-11-08T17:53:07.176Z (about 2 months ago)
- Language: Kotlin
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JPA Kotlin Sample
This sample illustrates slow performance for integration
tests in combination with* kotlin
* jpa (hibernate)
* liquibase
* spring-dataOn a reasonably recent MacBook Pro (Core i7, encrypted SSD)
the runtime of the test is approx 10s, even though
there is only a single entity and not much else.## How to run and time
The goal of this exercise is to get the runtime of
`JpaDemoApplicationTests.contextLoads` as fast as possible.Dont rely on the runtime shown in IntelliJ, but simply take the timestamp
of the first and last log line and calculate the duration.
## Things to try to improve performance* Use the following flags in the run config
VM Arguments
```bash
-noverify -XX:TieredStopAtLevel=1
```
gets it down to approx 7s
* run with openj9did not really move the needle
* use `@EnableJpaRepositories(...bootstrapMode = BootstrapMode.LAZY)`
no change in test time