spring-templates / spring-concurrency-thread

Spring 프레임워크에서의 Thread 동시성 제어 문제를 다룹니다.
https://spring-templates.github.io/spring-concurrency-thread/
MIT License
0 stars 1 forks source link

✨ Feat : Implements `ConcurrentBatchCounter` #34

Closed ooMia closed 5 months ago

ooMia commented 5 months ago

개요

변경 사항

추가 정보

관련 이슈

Closes #33

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 70.76923% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 79.13%. Comparing base (b77d483) to head (1bb0cc0). Report is 12 commits behind head on develop.

Files Patch % Lines
.../batch/ConcurrentParameterizedBatchingCounter.java 0.00% 17 Missing :warning:
...oncurrency/SpringThreadConcurrencyApplication.java 97.05% 0 Missing and 1 partial :warning:
...rency/counter/batch/ConcurrentBatchingCounter.java 92.85% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #34 +/- ## ============================================== - Coverage 97.77% 79.13% -18.65% - Complexity 22 38 +16 ============================================== Files 5 9 +4 Lines 45 115 +70 Branches 1 6 +5 ============================================== + Hits 44 91 +47 - Misses 0 22 +22 - Partials 1 2 +1 ``` | [Flag](https://app.codecov.io/gh/spring-templates/spring-concurrency-thread/pull/34/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spring-templates) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/spring-templates/spring-concurrency-thread/pull/34/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spring-templates) | `79.13% <70.76%> (-18.65%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spring-templates#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

ooMia commented 5 months ago

실제 애플리케이션을 실행시켰을 때에는 일정 수준까지는 스레드 수에 따라 성능이 향상되었다.

특히, 현재 테스트 환경에서의 프로세서가 12th Gen Intel(R) Core(TM) i7-12650H, 2300Mhz, 10 코어, 16 논리 프로세서이기 때문에, 16개의 스레드를 활용하는 시점까지는 성능이 개선되는 것처럼 보이는 것을 알 수 있다.

image

테스트 환경에서는 싱글 스레드 성능이 4배 이상 높았다. 가상 스레드를 활용하면 스레드 생성 오버헤드가 적어, 수가 늘어나도 시간 차가 크지 않았다.

image

image

image