<p dir="ltr">On Nov 17, 2016 10:36 PM, "Adam Nemet via llvm-dev" <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hi Brian,<br>
><br>
>> On Nov 17, 2016, at 3:05 PM, Brian Cain <<a href="mailto:bcain@codeaurora.org">bcain@codeaurora.org</a>> wrote:<br>
>><br>
>> Adam,<br>
>>  <br>
>> The test case was the Python-3.6.0b3 release, 234 input YAML files.  The large majority of time is spent with processing the file input.  Next ranked was rendering output.  Moving the files to a tmpfs partition didn’t change the time significantly (but I would expect that experiment would yield different results with libYAML).<br>
>>  <br>
>>  <br>
>> original, single-threaded:<br>
>> processed input files 335.985792875 secs<br>
>> mapped remarks 0.060357093811 secs<br>
>> file rendering 70.5569140911 sec<br>
>> index rendering 1.79133582115 sec<br>
>>  <br>
>> x20 processes spawned:<br>
>> processed input files 53.4612071514 secs<br>
>> mapped remarks 0.0622367858887 secs<br>
>> file rendering 8.30268716812 sec<br>
>> index rendering 2.08150291443 sec<br>
>> total time 63.9999139309 secs<br>
><br>
><br>
> Isn’t this actually an improvement of over 6x rather than the 4x you mentioned? ;)<br>
></p>
<p dir="ltr">The 4x was measured on a smaller subset of the 234 input files.<br></p>
<p dir="ltr">> Anyhow, do you want to properly submit a review for this?  I’d like to try it with libYAML.<br>
><br>
> In the new review, you need to add llvm-commits as a subscriber.  You may also want to split up main into smaller functions.<br>
><br></p>
<p dir="ltr">Ok, I'll clean it up and make a real review. <br></p>
<p dir="ltr">> Thanks!<br>
><br>
> Adam<br>
><br>
>>  <br>
>>  <br>
>> -Brian<br>
>>  <br>
>> From: llvm-dev [mailto:<a href="mailto:llvm-dev-bounces@lists.llvm.org">llvm-dev-bounces@lists.llvm.org</a>] On Behalf Of Adam Nemet via llvm-dev<br>
>> Sent: Thursday, November 17, 2016 11:15 AM<br>
>> To: Cain, Brian <<a href="mailto:bcain@quicinc.com">bcain@quicinc.com</a>><br>
>> Cc: llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>>; Bob Haarman <<a href="mailto:inglorion@google.com">inglorion@google.com</a>><br>
>> Subject: Re: [llvm-dev] Rewriting opt-viewer in C++<br>
>>  <br>
>> Hi Brian,<br>
>>  <br>
>> Great, thanks for doing this!<br>
>>  <br>
>> Can you please share the timing printouts?  Are we spending most of the time in parsing?<br>
>>  <br>
>> Is this on an internal test case?<br>
>>  <br>
>> Adam<br>
>>  <br>
>>><br>
</p>