feat(backend): 블로그 포스트 성능 벤치마크 환경 구축 및 테스트 스크립트 추가#10
Merged
Conversation
- BlogService: `POSTS_ROOT_PATH`를 환경변수(`BLOG_POSTS_PATH`)로 주입받을 수 있도록 개선하여 테스트 격리성 확보 - Bench: 대량의 더미 포스트(기본 5만 개) 생성을 위한 `generate-posts.sh` 쉘 스크립트 작성 - Test: 기존 Lazy Evaluation 방식과 Native Eager Loading 방식의 성능(메모리, 속도)을 비교하는 `posts.bench.spec.ts` 추가 - Config: 벤치마크 전용 Jest 설정(`jest-bench.json`) 및 실행 스크립트(`bench:setup`, `bench:run`) 등록 이 변경을 통해 대규모 데이터 환경에서의 인덱싱 및 조회 성능을 정량적으로 측정하고 최적화할 수 있는 기반을 마련했습니다.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
POSTS_ROOT_PATH를 환경변수(BLOG_POSTS_PATH)로 주입받을 수 있도록 개선하여 테스트 격리성 확보generate-posts.sh쉘 스크립트 작성posts.bench.spec.ts추가jest-bench.json) 및 실행 스크립트(bench:setup,bench:run) 등록이 변경을 통해 대규모 데이터 환경에서의 인덱싱 및 조회 성능을 정량적으로 측정하고 최적화할 수 있는 기반을 마련했습니다.