baseline-1000rps.json


Overview

`baseline-1000rps.json` is a JSON-formatted data file representing detailed performance metrics and configuration details from a high-load test scenario, specifically a baseline test running at approximately 1000 requests per second (RPS). The file captures aggregated statistics about HTTP requests, iterations, virtual users (VUs), data throughput, and various timing metrics collected during the test run.

This file is primarily used for **performance analysis**, **benchmarking**, and **monitoring** within performance testing and load testing frameworks (e.g., k6 or similar tools). It provides key insights into the latency, throughput, error rates, and other vital statistics that help developers and testers understand system behavior under sustained load.


Detailed Explanation of File Structure and Contents

The file is structured as a single JSON object with the following main sections:

1. root_group

2. options

3. state

4. metrics

A comprehensive dictionary of performance metrics collected during the test, each with its own structure and statistical values.

Metric Types

Each metric typically contains:

Key Metrics Explained


Usage Example

This JSON file is typically generated automatically by a load testing tool after running a test scenario. It can be consumed by:

Example: Accessing Average HTTP Request Duration

const metrics = baselineData.metrics;
const avgHttpReqDuration = metrics["http_req_duration"].values.avg;
console.log(`Average HTTP request duration: ${avgHttpReqDuration} ms`);

Important Implementation Details and Algorithms


Interaction with Other System Components


Visual Diagram

The following flowchart illustrates the main metric categories and their relationships, highlighting how the file organizes and aggregates performance data.

flowchart LR
    A[baseline-1000rps.json] --> B[root_group]
    A --> C[options]
    A --> D[state]
    A --> E[metrics]

    E --> F[Trend Metrics]
    E --> G[Counter Metrics]
    E --> H[Gauge Metrics]
    E --> I[Rate Metrics]

    F --> F1[http_req_duration]
    F --> F2[iteration_duration]
    F --> F3[http_req_tls_handshaking]
    F --> F4[http_req_connecting]
    F --> F5[http_req_blocked]
    F --> F6[http_req_sending]
    F --> F7[http_req_waiting]
    F --> F8[http_req_receiving]
    F --> F9[scenario-specific durations]

    G --> G1[iterations]
    G --> G2[dropped_iterations]
    G --> G3[http_reqs]
    G --> G4[data_received]
    G --> G5[data_sent]

    H --> H1[vus]
    H --> H2[vus_max]

    I --> I1[http_req_failed]
    I --> I2[scenario-specific failures]

Summary

This file is foundational for understanding system behavior under load and optimizing for scalability and reliability.