Skip to content

Comments

test(event-hub): batch insert 성능 측정해보기#3

Open
tomatozil wants to merge 1 commit intodevelopfrom
test/batch-insert-test
Open

test(event-hub): batch insert 성능 측정해보기#3
tomatozil wants to merge 1 commit intodevelopfrom
test/batch-insert-test

Conversation

@tomatozil
Copy link
Owner

🔧 어떤 작업인가요?

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 성능이 더 떨어져서 성능 개선 폭이 더 커질 가능성이 있다고 합니다. 이 부분은 더 공부해보겠습니다.

@tomatozil tomatozil self-assigned this Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant