Skip to content

[Feature] API 성능 테스트 환경 구성#66

Merged
rimeir merged 4 commits intodevelopfrom
feature/#62-estimate-api-performance-test
Jun 4, 2025
Merged

[Feature] API 성능 테스트 환경 구성#66
rimeir merged 4 commits intodevelopfrom
feature/#62-estimate-api-performance-test

Conversation

@rimeir
Copy link
Copy Markdown
Member

@rimeir rimeir commented Jun 3, 2025

📌 개요

  • API 성능 분석을 위한 AOP 기반 실행 시간 측정 기능 추가
  • 테스트용 견적서 데이터를 삽입하는 DummyDataInitializer 클래스 추가

🚀 관련 이슈

✅ 변경 사항

  • global/common/aop/PerformanceLogAspect 추가
    • @Around 방식으로 서비스/컨트롤러 실행 시간 로그 출력
    • 로그 포맷: [PERF] com.postdm... took 42ms
  • global/init/DummyDataInitializer 추가
    • @Profile("dev") 기반으로 실행: 로컬 테스트 시, 기본 프로파일을 dev로 수정 필요
    • 견적서 데이터가 비어 있는 경우, 10000건의 테스트용 데이터 자동 삽입

📝 상세 내용

  • DummyDataInitializerestimateRepository.count() > 0 조건으로 중복 삽입 방지
  • PerformanceLogAspectexecution(* com.postdm.backend.domain.estimate..*(..)) 기반으로 특정 도메인 서비스 실행 시간 측정
  • 성능 테스트 결과는 별도 이슈로 업로드 예정

@rimeir rimeir requested a review from Etwashoeren June 3, 2025 10:55
@rimeir rimeir self-assigned this Jun 3, 2025
@rimeir rimeir added this to PostDM Jun 3, 2025
@rimeir rimeir added enhancement New feature or request backend labels Jun 3, 2025
@rimeir
Copy link
Copy Markdown
Member Author

rimeir commented Jun 4, 2025

@Etwashoeren 현재 상황에 필요하여 일단은 직접 머지하겠습니다!

@rimeir rimeir merged commit e95fc64 into develop Jun 4, 2025
@github-project-automation github-project-automation bot moved this to Done in PostDM Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant