<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:wf_segoe-ui_normal;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-US;}
span.EmailStyle23
        {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:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-IL" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Thanks Andrea we add /usr/bin/time command before calling to each testcase of ltp.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Zion<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-IL"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:#2000">From:</span></b><span lang="EN-US" style="mso-fareast-language:#2000"> Andrea Cervesato <andrea.cervesato@suse.com>
<br>
<b>Sent:</b> Monday, 8 August 2022 15:07<br>
<b>To:</b> Chen, Zion <zion.chen01@sap.com>; ltp@lists.linux.it<br>
<b>Cc:</b> DL CSI Cloud Virtualization DevOps <DL_6093EC116D5E46027E42596D@global.corp.sap><br>
<b>Subject:</b> Re: [LTP] Duration run time of each benchmark<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#A6A6A6;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width="100%" style="width:100.0%;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 11.25pt">
<div>
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="font-size:9.0pt;font-family:wf_segoe-ui_normal;color:#212121">You don't often get email from
<a href="mailto:andrea.cervesato@suse.com">andrea.cervesato@suse.com</a>. <a href="https://aka.ms/LearnAboutSenderIdentification">
Learn why this is important</a><o:p></o:p></span></p>
</div>
</td>
<td width="75" style="width:56.25pt;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 3.75pt;align:left">
</td>
</tr>
</tbody>
</table>
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Probably the easiest way is to parse stdout and check for TPASS/TFAIL message here (adding a timer somewhere):<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Facerv%2Frunltp-ng%2Fblob%2F401f366ccd4bae00a2b247397aae21286594eb5a%2Fltp%2Fui.py%23L307&data=05%7C01%7Czion.chen01%40sap.com%7Ce8df3a4a3ca544cb179908da79368c50%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C637955572444548456%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=h2mHKRo8pu%2BzoL%2FJdl3hgdehONJXHkWhXRrO7T1ljy4%3D&reserved=0">https://github.com/acerv/runltp-ng/blob/401f366ccd4bae00a2b247397aae21286594eb5a/ltp/ui.py#L307</a><o:p></o:p></p>
</div>
<p>Beware that resulting time is an approximation, since python is running through syscalls and buffering. Also, not all<br>
tests are implemented with latest LTP API, so TPASS/TFAIL messages might not always appear after sub-tests.<o:p></o:p></p>
<p>Andrea<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">On 8/8/22 12:44, Chen, Zion wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Hello Andera,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Thanks for your answer, but we need a duration time of a specific TPASS/TFAIL. Do you have something like this?
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">If not, can you point me to which line in “runltp” I can add “time” linux command to get the duration time of it?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Zion</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:#2000">From:</span></b><span lang="EN-US" style="mso-fareast-language:#2000"> Andrea Cervesato
<a href="mailto:andrea.cervesato@suse.com"><andrea.cervesato@suse.com></a> <br>
<b>Sent:</b> Monday, 8 August 2022 12:02<br>
<b>To:</b> Chen, Zion <a href="mailto:zion.chen01@sap.com"><zion.chen01@sap.com></a>;
<a href="mailto:ltp@lists.linux.it">ltp@lists.linux.it</a><br>
<b>Subject:</b> Re: [LTP] Duration run time of each benchmark</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#A6A6A6;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width="100%" style="width:100.0%;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 11.25pt">
<div>
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="font-size:9.0pt;color:black">You don't often get email from <a href="mailto:andrea.cervesato@suse.com">
andrea.cervesato@suse.com</a>. <a href="https://aka.ms/LearnAboutSenderIdentification">
Learn why this is important</a></span><o:p></o:p></p>
</div>
</td>
<td width="75" style="width:56.25pt;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 3.75pt;align:left">
</td>
</tr>
</tbody>
</table>
<div>
<div>
<div>
<p class="MsoNormal">Hi!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">We are currently working on a new LTP runner which is the future replacement of the runltp script written in bash:
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Facerv%2Frunltp-ng&data=05%7C01%7Czion.chen01%40sap.com%7Ce8df3a4a3ca544cb179908da79368c50%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C637955572444548456%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5Mg28F7RBkkjPafOsT%2B1pw9%2BSocaSrPutiPu0HNUT5Q%3D&reserved=0">
https://github.com/acerv/runltp-ng</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">The new runner is written in python 3.7+ and it supports duration time between tests. At the moment, it considers execution time of a single test binary,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">not the duration time of specific TPASS/TFAIL results as you might expect, also because the old format is still supported and it doesn't give this possibility.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">If you don't need to have duration time of specific TPASS/TFAIL , runltp-ng might be the #1 choice for you, since it also implements a JSON report file which<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">can be parsed easily to obtain the results.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">The runltp-ng source code is open and available to everyone, so feel free to help and give any feedback if needed!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Andrea<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">On 8/8/22 10:17, Chen, Zion via ltp wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Hello Linux Test Project</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">We are in SAP using your ltp benchmark in our linux machine. We are looking in the results file after the run is finish and we want to know the duration time of each sub-test.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Can you point me how to do it? How to find the duration time of each sub-test?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Zion </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:#2000"><br>
<br>
<br>
</span><o:p></o:p></p>
<pre> <o:p></o:p></pre>
</blockquote>
<p> <o:p></o:p></p>
</div>
</blockquote>
<p><o:p> </o:p></p>
</div>
</div>
</body>
</html>