# Formulas for Total Hits

This article explains how **Total Hits, Total Throughput, Average Hits, and Average Throughput** are calculated in the **Iteration Summary** report.

These metrics provide information about the number of requests generated during a test and the amount of data transferred.

## 1. Total Hits

**Total Hits** represents the total number of requests generated during the test.

**Formula:**

```text
Total Hits = Total Requests
```

For example, if the test generates **125 requests**, the Iteration Summary report shows:

```text
Total Hits = 125
```

> **Note:** A single user action can generate multiple HTTP requests. Therefore, Total Hits does not necessarily represent the number of test steps or user actions.

---

## 2. Total Throughput

**Total Throughput** represents the total amount of data transferred by successful requests during the test.

**Formula:**

```text
Total Throughput = avgSize × success
```

Where:

- **avgSize** = Average size of the response/request data, in KB.
- **success** = Number of successful requests.

### Example

Assume the following values:

```text
Average Size = 2.17 KB
Successful Requests = 25
```

The Total Throughput is calculated as:

```text
2.17 KB × 25 = 54.25 KB
```

Therefore:

```text
Total Throughput ≈ 54.3 KB
```

The result represents the total volume of data calculated from the average size and the number of successful requests.

---

## 3. Average Hits

**Average Hits** represents the average number of requests generated per second during the test.

**Formula:**

```text
Average Hits = Total Hits / Test Duration in seconds
```

### Example

Assume:

```text
Total Hits = 125
Test Duration = 25 seconds
```

The Average Hits is:

```text
125 / 25 = 5 hits/s
```

Therefore:

```text
Average Hits = 5 hits/s
```

This means that the test generated an average of **5 requests per second** during the test duration.

> **Note:** Average Hits is an average value. It does not mean that exactly the same number of requests was generated every second.

---

## 4. Average Throughput

**Average Throughput** represents the average amount of data transferred per second during the test.

**Formula:**

```text
Average Throughput = Total Throughput / Test Duration in seconds
```

### Example

Assume:

```text
Total Throughput = 54.3 KB
Test Duration = 25 seconds
```

The Average Throughput is:

```text
54.3 KB / 25 seconds = 2.172 KB/s
```

Therefore:

```text
Average Throughput ≈ 2.17 KB/s
```

This means that the test transferred an average of approximately **2.17 KB of data per second**.

---

## Summary

The following table summarizes the metrics and their formulas:

<table id="bkmrk-metricdescriptionfor"><colgroup><col></col><col></col><col></col><col></col></colgroup><tbody><tr><th>Metric

</th><th>Description

</th><th>Formula

</th><th>Unit

</th></tr><tr><td>**Total Hits**

</td><td>Total number of requests generated

</td><td>`<span class="editor-theme-code">Total Requests</span>`

</td><td>Hits/requests

</td></tr><tr><td>**Total Throughput**

</td><td>Total data volume calculated from successful requests

</td><td>`<span class="editor-theme-code">avgSize × success</span>`

</td><td>KB

</td></tr><tr><td>**Average Hits**

</td><td>Average number of requests generated per second

</td><td>`<span class="editor-theme-code">Total Hits / Duration</span>`

</td><td>Hits/s

</td></tr><tr><td>**Average Throughput**

</td><td>Average amount of data transferred per second

</td><td>`<span class="editor-theme-code">Total Throughput / Duration</span>`

</td><td>KB/s

</td></tr></tbody></table>

### Complete Example

For a test with the following results:

```text
Total Requests = 125
Successful Requests = 25
Average Size = 2.17 KB
Test Duration = 25 seconds
```

The metrics are calculated as follows:

```text
Total Hits
= 125 requests
```

```text
Total Throughput
= 2.17 KB × 25
= 54.3 KB
```

```text
Average Hits
= 125 / 25
= 5 hits/s
```

```text
Average Throughput
= 54.3 / 25
= 2.17 KB/s
```

Therefore, the Iteration Summary metrics would be:

```text
Total Hits           = 125
Total Throughput     = 54.3 KB
Average Hits         = 5 hits/s
Average Throughput   = 2.17 KB/s
```

---

**Last updated: September 1, 2026**

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>.