Skip to content

Commit

Permalink
Stripping success result in order to speed up transmit in distributed…
Browse files Browse the repository at this point in the history
… test mode.
  • Loading branch information
junyejiang committed Jan 13, 2025
1 parent 5d97781 commit 7942d03
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,24 @@ private static void stripContent(SampleResult result, int level) {
private static void stripResponse(SampleResult result) {
result.setBytes(result.getBytesAsLong());
result.setResponseData(EMPTY_BA);

if (result.isSuccessful()) {
result.setSentBytes(result.getSentBytes());
result.setSamplerData(null);
result.setRequestHeaders(null);

result.setBodySize(result.getBodySizeAsLong());
result.setDataType(null);
result.setDataEncoding(null);

result.setHeadersSize(result.getHeadersSize());
result.setResponseHeaders(null);

result.setURL(null);

result.setResponseMessage(null);
result.setResponseCode(null);
}
}

/**
Expand Down

0 comments on commit 7942d03

Please sign in to comment.