Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 어떤 작업인가요?
JPA saveAll과 JDBC batchUpdate의 성능을 비교해보았습니다.
💡 리뷰어에게 하고 싶은 말
https://httpd.apache.org/docs/2.4/programs/ab.html
apache bench라는 툴을 이용해서 간단하게 측정 및 비교해보았습니다. 터미널에서 명령어와 요청 수, 동시 요청수, 요청 url 등의 옵션을 설정하고 실행하기만 하면됩니다. Apple M2 16GB 환경에서 spring boot 3.3.1에서 실행한 로컬 서버를 기준으로 측정했지만, 각 기술의 구체적인 성능이 필요한 것이 아니라 'tps가 몇 퍼센트 향상되는지' 등의 두 기술의 상대적인 성능 변화를 알고싶은 것이었기 때문에 실행 환경은 크게 중요하지 않았습니다.
*GPT 왈, cpu와 memory가 크게 제한되는 AWS EC2 t2.small에서는 JPA 성능이 더 떨어져서 성능 개선 폭이 더 커질 가능성이 있다고 합니다. 이 부분은 더 공부해보겠습니다.