Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve benchmark output from vespa-feed-client #33157

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bjorncs
Copy link
Member

@bjorncs bjorncs commented Jan 22, 2025

The extended output format is gated behind an environment variable.

Example:

{
  "feeder.seconds": 730.403,
  "feeder.ok.count": 85858,
  "feeder.ok.rate": 117.549,
  "feeder.error.count": 0,
  "feeder.inflight.count": 277,
  "http.request.count": 3854073,
  "http.request.bytes": 8385743742,
  "http.request.MBps": 11.481,
  "http.exception.count": 0,
  "http.response.count": 3853796,
  "http.response.bytes": 505883404,
  "http.response.MBps": 0.693,
  "http.response.error.count": 3767938,
  "http.response.latency.millis.min": 0.000,
  "http.response.latency.millis.avg": 47.000,
  "http.response.latency.millis.max": 3826.000,
  "operation.latency": {
    "min": 361,
    "avg": 2211,
    "max": 24990
  },
  "http.response": {
    "200": {
      "count": 85858,
      "latency": {
        "min": 197,
        "avg": 1729,
        "max": 3826
      }
    },
    "429": {
      "count": 3767938,
      "latency": {
        "min": 0,
        "avg": 9,
        "max": 461
      }
    }
  }
}

@bjorncs bjorncs requested a review from vekterli January 22, 2025 16:18
Copy link
Member

@vekterli vekterli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

return responsesByCode;
}
/** Statistics per response code. */
public Map<Integer, Response> statsByCode() { return statsByCode; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to add a convenience wrapper statsByCode(int code) which returns e.g. an Optional<Response>?

vessel.complete(HttpResponse.of(statusCode, "body".getBytes(StandardCharsets.UTF_8)));
return null;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: missing line break

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants