<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 9/11/2018 5:48 PM, Andrew Kelley via
      llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACXN+=RypDDnL0LbHQ6-6N+zhXMHsUDYfys8r3jwU75gReQqEw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div><span style="font-family:monospace,monospace">Here is
                some timing information from running the Zig standard
                library tests:<br>
              </span></div>
            <div dir="ltr"><span style="font-family:monospace,monospace"><br>
              </span></div>
            <div dir="ltr"><span style="font-family:monospace,monospace">$
                ./zig test ../std/index.zig --enable-timing-info<br>
                                Name       Start         End   
                Duration     Percent<br>
                          Initialize      0.0000      0.0010     
                0.0010      0.0001<br>
                   Semantic Analysis      0.0010      0.9968     
                0.9958      0.1192<br>
                     Code Generation      0.9968      1.4000     
                0.4032      0.0483<br>
                    LLVM Emit Output      1.4000      8.1759     
                6.7760      0.8112<br>
                  Build Dependencies      8.1759      8.3341     
                0.1581      0.0189<br>
                           LLVM Link      8.3341      8.3530     
                0.0189      0.0023<br>
                               Total      0.0000      8.3530     
                8.3530      1.0000<br>
              </span></div>
            <div dir="ltr"><span style="font-family:monospace,monospace"><br>
              </span></div>
            <div><span style="font-family:monospace,monospace">81% of
                the time was spent waiting for LLVM to turn a Module
                into an object file. This is with optimizations off,
                FastISel, no module verification, etc.</span></div>
            <div><span style="font-family:monospace,monospace"><br>
              </span></div>
            <div><span style="font-family:monospace,monospace">How can I
                speed this up? Any tips or things to look into?</span></div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    First step is probably setting TimePassesIsEnabled to true and
    looking at the output.  It's hard to say where the time is going
    without any numbers.<br>
    <br>
    -Eli<br>
    <pre class="moz-signature" cols="72">-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
  </body>
</html>