[openssl-users] OpenSSL s_time output meaning

Yunjie Yi yunjie.yi at huawei.com
Thu May 18 21:47:42 UTC 2023


Hi OpenSSL tech specialist:

I would like to benchmark TLS1.3 handshake in OpenSSL1.1.1 including 1. client CPU time, 2. server CPU time and 3. total handshake wall clock time. I tried to use openssl s_time to get three of them but found out that it does not provide server CPU time as shown below:

Then I used following commands
Setup TLS1.3 server:
openssl s_server -cert ecdsa_srv.crt -key ecdsa_srv.key -www -tls1_3
Using s_time from client side:
openssl s_time -ciphersuites TLS_AES_128_GCM_SHA256 -curves P-256
, and the result is

            > Collecting connection statistics for 30 seconds

> 4137 connections in 14.30s; 289.30 connections/user sec, bytes read 0

> 4137 connections in 31 real seconds, 0 bytes read per connection.
I learned from the previous email at [openssl-users] OpenSSL s_time output meaning<https://mta.openssl.org/pipermail/openssl-users/2016-June/003951.html> , 289.30 is the client CPU time, and 31s is the total handshake wall clock time for 4137 connections. However it does not give server's CPU time.

Please tell how to get CPU time of the server (for ex. in connections/server_sec) if you have some built in command can do that?

Thank you so much.
Regards,
Yunjie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20230518/c063127f/attachment.htm>


More information about the openssl-users mailing list