<p dir="auto">I put up a gist at <a href="https://gist.github.com/felipenoris/3dbd7ff6a830be372e45dc337bb204cf">https://gist.github.com/felipenoris/3dbd7ff6a830be372e45dc337bb204cf</a> with the slow code.</p>
<p dir="auto">Once julia reaches line 19:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for usecache in [ false, true ]"><pre class="notranslate"><span class="pl-k">for</span> usecache <span class="pl-k">in</span> [ <span class="pl-c1">false</span>, <span class="pl-c1">true</span> ]</pre></div>
<p dir="auto">it takes a long time to start executing what´s inside the <code class="notranslate">for</code> loop.</p>
<p dir="auto">If I just unroll the loop (see <a href="https://gist.github.com/felipenoris/d9ba8d9ee5b116d259a6de3189418055">https://gist.github.com/felipenoris/d9ba8d9ee5b116d259a6de3189418055</a>), it runs smoothly, just like 0.4 does.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174884102" data-permission-text="Title is private" data-url="https://github.com/JuliaFinance/BusinessDays.jl/issues/4" data-hovercard-type="issue" data-hovercard-url="/JuliaFinance/BusinessDays.jl/issues/4/hovercard" href="https://github.com/JuliaFinance/BusinessDays.jl/issues/4">JuliaFinance/BusinessDays.jl#4</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="173748119" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/18276" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/18276/hovercard" href="https://github.com/JuliaLang/julia/pull/18276">#18276</a></p>
<p dir="auto">The time to run N tests using <code class="notranslate">FactCheck</code> (which internally uses anonymous functions heavily) grows significantly faster than linear in N, causing long generated test suites to hang.<br>
This apparently is due to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109391246" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/13412" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/13412/hovercard" href="https://github.com/JuliaLang/julia/pull/13412">#13412</a> (tested with that commit compared to the previous one; thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andreasnoack/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andreasnoack">@andreasnoack</a>). It is approximately linear on 0.4.</p>
<p dir="auto">I have written a simple <a href="https://gist.github.com/52b6599f6549c390b0e9">file</a> that generates test suites consisting of N tests of the form <code class="notranslate">@fact i--&gt;i</code>:</p>
<p dir="auto">This gives the following run-times (in seconds!) on 0.5:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/191822/13510074/ee182edc-e15c-11e5-81d1-af1c7096df58.png"><img src="https://cloud.githubusercontent.com/assets/191822/13510074/ee182edc-e15c-11e5-81d1-af1c7096df58.png" alt="0 5_test_times" style="max-width: 100%;"></a></p>
<p dir="auto">[This seems to be faster than power law and slower than exponential growth. Raw data <a href="https://gist.github.com/b26507550931e9a3d1d2">here</a>.]</p>