result-api-scaled-3-1000rps.json


Overview

The file **`result-api-scaled-3-1000rps.json`** is a structured JSON report containing detailed performance testing results for an API under a load of 1000 requests per second (RPS). It captures a comprehensive set of metrics, thresholds, and runtime states collected during the test execution, focusing primarily on HTTP request timings, success/failure rates, throughput, and virtual user (VU) statistics.

This file serves as a snapshot output from a load testing framework (e.g., [k6](https://k6.io/)) that measures and analyzes the behavior of an API under heavy concurrent usage. The data provided helps developers, testers, and system analysts understand the system's responsiveness, stability, and capacity to handle the specified workload.


File Structure and Key Sections

The JSON report is organized into the following top-level keys:


Detailed Explanation of Sections

1. root_group

{
  "path": "",
  "id": "d41d8cd98f00b204e9800998ecf8427e",
  "groups": [],
  "checks": [],
  "name": ""
}

*Usage:* This section is a placeholder for hierarchical organization of tests but contains no detailed groups or checks in this file.


2. options

{
  "summaryTrendStats": ["avg", "min", "med", "max", "p(90)", "p(95)", "p(99)", "count"],
  "summaryTimeUnit": "",
  "noColor": false
}

*Usage:* Defines how the metrics are summarized and reported, useful for interpretation of numerical values.


3. state

{
  "isStdOutTTY": true,
  "isStdErrTTY": true,
  "testRunDurationMs": 300311.555708
}

*Usage:* Provides contextual info about how the test was run and its length.


4. metrics

This is the most critical and detailed section, containing various performance measurements collected during the test.

Each metric is a key-value pair where the key is the metric name (sometimes with tags), and the value is an object describing the metric type, nature, values, and thresholds.

Metric Types

Representative Metrics with Explanation

Metric Name

Type

Description

Notable Fields

`http_req_failed{scenario:rps}`

rate

Failure rate of HTTP requests in the RPS scenario

`rate`, `passes`, `fails`, `thresholds`

`http_req_duration{scenario:rps}`

trend

Distribution of HTTP request durations in the RPS scenario

`avg`, `min`, `med`, `max`, `p(90)`, `p(95)`, `p(99)`, `count`, `thresholds`

`http_reqs`

counter

Total HTTP requests made

`count`, `rate`

`vus`

gauge

Number of virtual users active

`value`, `min`, `max`

`iteration_duration`

trend

Duration of iterations (single test scenario iteration duration)

Various percentiles and count

`http_req_connecting`

trend

Time spent connecting

Percentiles and average

`http_req_tls_handshaking`

trend

Time spent in TLS handshake

Percentiles and average

`dropped_iterations`

counter

Number of iterations dropped due to errors or limits

`count`, `rate`

`data_sent`

counter

Amount of data sent over network

`count` (bytes), `rate`

`data_received`

counter

Amount of data received over network

`count` (bytes), `rate`


Important Implementation Details and Algorithms


Usage Examples

While this file is a data report rather than executable code, it is used as follows:

*Example:* An engineer might extract the 95th percentile (`p(95)`) of `http_req_duration{scenario:rps}` to check if response times exceed the SLA of 800 ms, which in this file is marked as failed (`ok: false`).


Interaction With Other System Components


Visual Diagram: Flowchart of Main Data Elements and Relationships

flowchart TD
    A[Performance Test Execution]
    B[Metrics Collection]
    C[root_group Metadata]
    D[Options Configuration]
    E[State Info]
    F[Metrics Data]
    G[Rate Metrics]
    H[Trend Metrics]
    I[Counter Metrics]
    J[Gauge Metrics]
    K[Threshold Checks]

    A --> B
    B --> C
    B --> D
    B --> E
    B --> F

    F --> G
    F --> H
    F --> I
    F --> J

    G --> K
    H --> K

Summary

The **`result-api-scaled-3-1000rps.json`** file is a detailed performance test results report representing HTTP request metrics collected during a high-load scenario of 1000 requests per second. It enables stakeholders to:

This file is crucial for performance engineers and QA teams to ensure the API meets expected service levels under heavy load conditions.