<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Calibri Light";
        panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">Hi OpenSSL tech specialist:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">I would like to benchmark TLS1.3 handshake in OpenSSL1.1.1 including 1.
<b>client CPU time</b>, 2. <b>server CPU time</b> and 3. <b>total handshake <span style="color:black">
wall clock </span>time. </b>I tried to use <b>openssl s_time</b> to get three of them but found out that it
<b>does not provide</b> <b>server CPU time</b> as shown below:<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">Then I<b>
</b>used following commands<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">Setup TLS1.3 server:
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">openssl s_server -cert ecdsa_srv.crt -key ecdsa_srv.key -www -tls1_3<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">Using s_time from client side:
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">openssl s_time -ciphersuites TLS_AES_128_GCM_SHA256 -curves P-256<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">, and the result is
<o:p></o:p></span></p>
<pre><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">            > </span><i><span style="font-family:"Calibri Light",sans-serif;color:black">Collecting connection statistics for 30 seconds</span></i><span style="font-family:"Calibri Light",sans-serif;color:black"><o:p></o:p></span></pre>
<p class="MsoListParagraph"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">>
</span><i><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:black">4137 connections in 14.30s; 289.30 connections/user sec, bytes read 0<o:p></o:p></span></i></p>
<p class="MsoListParagraph"><i><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:black">> 4137 connections in 31 real seconds, 0 bytes read per connection.<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">I learned from the previous email at
</span><span style="font-family:"Calibri Light",sans-serif"><a href="https://mta.openssl.org/pipermail/openssl-users/2016-June/003951.html">[openssl-users] OpenSSL s_time output meaning</a></span><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">
 , <b><span style="color:black">289.30</span></b><span style="color:black"> is the
</span><b>client CPU time</b><span style="color:black">, and <b>31s</b> is the <b>
total handshake wall clock time</b> for 4137 connections. <b>However it does not give server’s CPU time.<u>
<o:p></o:p></u></b></span></span></p>
<p class="MsoNormal"><b><u><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif;color:black"><o:p><span style="text-decoration:none"> </span></o:p></span></u></b></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif;color:black">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?
<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif;color:black"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif;color:black">Thank you so much.<b><u><o:p></o:p></u></b></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif;color:black">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif;color:black">Yunjie</span><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif"><o:p></o:p></span></p>
</div>
</body>
</html>