강의

멘토링

커뮤니티

Inflearn Community Q&A

aectarine1507's profile image
aectarine1507

asked

Virtual thread in spring boot completed in 1 hour

performance test

Performance 테스트에서 CPU 작업도 Virtual이 빠른것 같습니다

Written on

·

325

0

2000바퀴 돌릴때

Platform은 279000ms가 나오는데

Virtual은 97480ms가 나오네요

javaspring-boot동시성threadvirtual-thread

Answer 1

0

Hello World님의 프로필 이미지
Hello World
Instructor

2000바퀴라는건 platform thread pool size도 2000개로 설정했을것 같습니다. 너무 많은 platform thread 를 생성했기에 그 자체만으로 thread 생성비용 및 context switching 비용이 많이 들어서 오히려 느려진것 같습니다. 2000개가 아닌 100개, 300개 정도 적정(?)수준의 thread pool 에서는 platform thread 가 더 빠르게 나올겁니다.

aectarine1507's profile image
aectarine1507

asked

Ask a question