0Pricing
Load Testing & Performance Benchmarking (JMeter & k6) · 강의

현실적인 작업 부하 설계

다양한 사용자 행동과 비즈니스 프로세스를 정확히 반영하는 정교한 작업 부하 모델을 설계합니다.

현실적인 작업 부하 설계은(는) CoddyKit의 무료 Load Testing & Performance Benchmarking (JMeter & k6) 강의입니다. 이것은 4개 중 1번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Load Testing & Performance Benchmarking (JMeter & k6) 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Load Testing & Performance Benchmarking (JMeter & k6) 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

The Art of Realistic Workloads

Welcome to "Crafting Realistic Workloads"! In performance testing, a workload model defines how virtual users interact with your system during a test.

It's crucial because a realistic model ensures your test results accurately predict how your system will perform under real-world conditions, helping you find actual bottlenecks.

Defining Your Virtual Users

Start by identifying your user personas. Who uses your application? (e.g., guest, registered user, administrator). Each persona might have different behaviors.

Then, map out their typical business processes or "user journeys." What steps do they take? (e.g., "Guest browses products," "Registered user adds to cart and checks out").

Balancing Actions and Operations

A transaction mix describes the proportion of different actions users perform. For example, 70% of users might browse, 20% search, and only 10% make a purchase.

This mix should reflect real-world usage patterns, often derived from analytics data or business requirements, to accurately simulate system load.

The Importance of Think Time

Think time (or pacing) is the pause a real user takes between actions. Without it, virtual users send requests as fast as possible, which is unrealistic and can overwhelm the system.

Adding realistic delays simulates human interaction, making your load test more accurate and preventing premature bottlenecks.

Shaping Your Load Profile

A load test typically has three phases: ramp-up, steady-state, and ramp-down.

  • Ramp-up: Gradually increases the number of virtual users.
  • Steady-state: Maintains a constant peak load for a duration.
  • Ramp-down: Gradually decreases the number of virtual users.

These phases simulate how user load changes over time in the real world.

Dynamic Data for Unique Users

For a truly realistic workload, each virtual user should use unique, varied data. This prevents caching effects from skewing results and simulates diverse user inputs.

Instead of logging in with "user1" repeatedly, simulate multiple users like "user1", "user2", "user3", each with their own unique data set for actions.

Sourcing Real-World Insights

Where do you find the data to build your workload model?

  • Web Analytics: Tools like Google Analytics provide user behavior patterns.
  • Server Logs: Access logs reveal request frequencies and popular endpoints.
  • Business Intelligence: Reports on sales, user activity, etc.
  • Product Owners/Managers: Direct insights into expected user journeys and peak usage.

JMeter: Throughput Controller

In JMeter, the Throughput Controller is excellent for defining a transaction mix. It allows you to specify a percentage of executions for its child elements.

For example, you can have one controller for "Browse Products" with 70% throughput and another for "Checkout" with 10% throughput, reflecting your desired mix.

k6: Defining Multiple Scenarios

k6's scenarios block is powerful for modeling diverse user behaviors. You can define multiple scenarios, each with its own executor, VUs, and duration, to simulate complex workloads.

Here's an example simulating different user types with distinct load patterns:

import http from 'k6/http';
import { sleep } from 'k6';

export const options = {
  scenarios: {
    browserUser: {
      executor: 'constant-vus',
      vus: 10,
      duration: '30s',
      exec: 'browserUserFlow', // function to execute
      tags: { type: 'browser' },
    },
    apiUser: {
      executor: 'ramping-vus',
      startVUs: 0,
      stages: [
        { duration: '10s', target: 5 },
        { duration: '20s', target: 5 },
        { duration: '5s', target: 0 },
      ],
      exec: 'apiUserFlow', // function to execute
      tags: { type: 'api' },
    },
  },
};

export function browserUserFlow() {
  http.get('https://test.k6.io/public/croco-products/');
  sleep(5);
  http.get('https://test.k6.io/news.php');
  sleep(3);
}

export function apiUserFlow() {
  http.get('https://test-api.k6.io/public/croco/1');
  sleep(1);
}

Realistic Workload Components

Which of the following are essential components when designing a realistic workload model for performance testing? (Select all that apply)

Recap: Crafting Realistic Loads

In this lesson, we explored the critical elements of crafting realistic workload models for performance testing.

  • We covered defining user personas, business processes, and transaction mix.
  • We emphasized the importance of pacing, concurrency patterns, and dynamic data.
  • Finally, we looked at how to implement these models using tools like JMeter and k6.

A well-designed workload is the foundation for meaningful performance test results!

자주 묻는 질문

“현실적인 작업 부하 설계” 강의는 무료인가요?

네 — “현실적인 작업 부하 설계” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Load Testing & Performance Benchmarking (JMeter & k6) 강의 전체를 잠금 해제할 수 있습니다. Load Testing & Performance Benchmarking (JMeter & k6) 강의에는 총 4개의 강의가 포함되어 있습니다.

“현실적인 작업 부하 설계”에서 뭘 배우나요?

다양한 사용자 행동과 비즈니스 프로세스를 정확히 반영하는 정교한 작업 부하 모델을 설계합니다. 브라우저에서 직접 실행하는 실습 코드로 Load Testing & Performance Benchmarking (JMeter & k6)을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Load Testing & Performance Benchmarking (JMeter & k6)을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Load Testing & Performance Benchmarking (JMeter & k6)은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 1번째 강의입니다.

“현실적인 작업 부하 설계” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Load Testing & Performance Benchmarking (JMeter & k6) 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Load Testing & Performance Benchmarking (JMeter & k6) 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. 현실적인 작업 부하 설계
  2. 이해관계자 대상 보고
  3. 성능 테스트 확장 전략
  4. 성능 시험 전략 구축
← Load Testing & Performance Benchmarking (JMeter & k6)(으)로 돌아가기