question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Negative min_response_time shown in stats

See original GitHub issue

Describe the bug

Negative value shown for min_response_time:

Screen Shot 2020-07-22 at 17 58 54

Expected behavior

0 or positive value.

Actual behavior

Negative value shown for min_response_time

Steps to reproduce

I have a branch local docker-compose setup to reproduce it easily. But it’s just 1 worker calling nginx in another docker container.

Environment

  • OS: Docker
  • Python version: -
  • Locust version: current master

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
heymancommented, Jul 22, 2020

Interesting.

Should we make a change to the locust code though? Like to record the response time as 0 in this case?

I don’t think we should “hide” the clock issue by setting it to zero if it’s negative.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interpreting "Response time is negative, can not update ...
The error simply implies that the response time for the current request came out to be negative (possibly due to momentary failure of...
Read more >
Response Time Calculation between 2 different events
Hello, I am trying to find response time between events in different sourcetype but not able to figure out how to find time...
Read more >
How to remove HTTPError 429 from Locust API Statistics?
When 429 errors start occurring the min response time is less than 10ms. This leads to the statistics being skewed by the response...
Read more >
HTTP: response time measurement omits time to connect and ...
@ceeaspb : Ah, my bad, after checking a bit further, the culprit is ResponseBuilder, how it is updated. Gatling doesn't update those timestamps ......
Read more >
Gatling simulation assertions failed ! - Google Groups
i have problem with gatling, i know scala/maven since yesterday. the error is : Failed to execute goal io.gatling:gatling-maven-plugin:2.1.2 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found