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

Slow test test_https_conn_post_handshake on Linux #1211

Closed
alfredh opened this issue Nov 15, 2024 · 1 comment
Closed

Slow test test_https_conn_post_handshake on Linux #1211

alfredh opened this issue Nov 15, 2024 · 1 comment

Comments

@alfredh
Copy link
Contributor

alfredh commented Nov 15, 2024

Platform: Debian 12

The test test_https_conn_post_handshake is very slow around 1.8 seconds.

alfredh@debian:~/git/re$ ./test/retest -p
retest: libre version 3.17.0 (x86_64/Linux)
using async polling method 'epoll'

sorted by average timing (slowest on top):
test_https_conn_post_handshake    : 1844058.00 usec
test_https_loop                   :  884029.00 usec
test_https_large_body             :  428247.66 usec
test_http_conn_large_body         :  320060.66 usec
test_http_large_body              :  318892.66 usec
test_rtmps_publish                :  136004.33 usec
test_tls_ec                       :   95969.33 usec
test_rtmp_publish                 :   88003.33 usec
test_rtmp_play                    :   87999.66 usec
test_tls_cli_conn_change_cert     :   51991.33 usec
test_tls_sni                      :   51985.66 usec
test_tls                          :   48002.33 usec
test_tls_session_reuse_tls_v12    :   48000.00 usec
test_json_file                    :   12254.00 usec
test_vid                          :   11798.87 usec
test_http_conn                    :   10861.77 usec
test_http_loop                    :   10654.66 usec
test_trice_loop                   :    8720.18 usec
alfredh@debian:~/git/re$ time ./test/retest -v -r test_https_conn_post_handshake
single testcase: test_https_conn_post_handshake
retest: libre version 3.17.0 (x86_64/Linux)
using async polling method 'epoll'
using datapath './test/data'
regular tests:       OK

real	0m1.857s
user	0m0.170s
sys	0m0.016s
@cspiel1
Copy link
Collaborator

cspiel1 commented Nov 18, 2024

We try to have a look on this soon. I talk with @fAuernigg. We can test on Ubuntu and Arch.

fAuernigg added a commit to fAuernigg/re that referenced this issue Nov 20, 2024
fAuernigg added a commit to fAuernigg/re that referenced this issue Nov 20, 2024
Multiple HTTP requests are sent in parallel. Processing of the responses are done
asynchronously in the main thread. The test should ensure that there is no double
free, memleak, mix-up of content, ... for multiple parallel requests.
Fixes baresip#1211 slow https test.
fAuernigg added a commit to fAuernigg/re that referenced this issue Nov 21, 2024
Multiple HTTP requests are sent in parallel. Processing of the responses are done
asynchronously in the main thread. The test should ensure that there is no double
free, memleak, mix-up of content, ... for multiple parallel requests.
Fixes baresip#1211 slow https test.
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

No branches or pull requests

2 participants