Skip to content

Commit

Permalink
fix results gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed May 6, 2024
1 parent 72f3ba9 commit a1486ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
backend: [ 'quic-go', 'quicly-go' ]
backend: [ 'quicly-go' ]
cca: [ 'reno' ]
slowstart: [ 'search' ]
connection_delay_ms: [ 0, 500 ]
Expand Down Expand Up @@ -129,6 +129,7 @@ jobs:
exit 1
fi
echo "CURRENT_RUN=${CURRENT_RUN}" >> $GITHUB_ENV
echo "Current run: ${CURRENT_RUN}"
gh run download ${CURRENT_RUN} --repo ${{ env.BASE_REPO }} -p client_*
gh run download ${CURRENT_RUN} --repo ${{ env.BASE_REPO }} -p server_*
Expand All @@ -144,6 +145,7 @@ jobs:
- name: Delete results artifacts
if: success()
run: |
echo "Current run: ${CURRENT_RUN}"
if [[ "${CURRENT_RUN}" -eq "" ]]; then
exit 1
fi
Expand Down
4 changes: 2 additions & 2 deletions docker/speedtests/speed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (s *SpeedTestsConfigSuite) TestRun() {

var totalBytesInTimeDelta int64 = 0
var start = time.Now()
var buff = make([]byte, 4096)
var buff = make([]byte, 512*1024)

ctx, cancel := context.WithCancel(context.Background())
go idlingTimeout(resp.Body, cancel, &flagActivity, &toRead, idleTimeout)
Expand All @@ -161,7 +161,7 @@ func (s *SpeedTestsConfigSuite) TestRun() {
default:
}

rd := io.LimitReader(resp.Body, 4096)
rd := io.LimitReader(resp.Body, 512*1024)
read, err := rd.Read(buff)
if err != nil && err != io.EOF {
if nErr, ok := err.(net.Error); ok && nErr.Timeout() {
Expand Down

0 comments on commit a1486ee

Please sign in to comment.