apache / apache/jmeter

JMeter SummariserRunningSample: The member variable startTime is only updated at initialization

Open
#5,769 0 comments 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

update the startTime When calling the addSample method

### Actual behavior

At present, the start time is assigned when the object is created. The creation time of the object is too early, which will lead to incorrect rate calculation. I used jmeter extension, which contains some time-consuming logic, which will lead to greater error. I observed the SamplingStatCalculator class. When it calls the addSample method, it updates the start time in real time. Is this the expected behavior?

### Steps to reproduce the problem

For some reason, I cannot submit my extension code to you, but as I describe the actual behavior, this problem is very clear. If this is not a bug, please tell me why it is designed like this. Thank you very much, especially for being able to read my poor English description patiently

### JMeter Version

5.2.1

### Java Version

1.8.0_162

### OS Version

win 7

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.