Hi,<div><br></div><div>I'm trying to see swift behavior with some stress on and I see crashes at close to 1M calls/loops.</div><div><br></div><div>Here's one such case ( x_func.swift code is here -> <a href="https://github.com/yadudoc/swift-basics/blob/master/stress/x_func.swift">https://github.com/yadudoc/swift-basics/blob/master/stress/x_func.swift</a>):</div>
<div>Test run with 0.94 ( corei5 with 8Gb ram)</div><div> </div><div><div>yadu@Miranda:~/src/swift-basics/stress$ time swift x_func.swift -loops=1000000</div><div>Swift 0.94RC3 swift-r6268 cog-r3605</div><div><br></div><div>
RunID: 20130302-0019-l2alv5d2</div><div>Progress: time: Sat, 02 Mar 2013 00:19:38 +0530</div><div>Fibonacci[2] = 1 </div><div>No events in 10s.</div><div>Progress: time: Sat, 02 Mar 2013 00:20:08 +0530</div><div>Progress: time: Sat, 02 Mar 2013 00:20:38 +0530</div>
<div>Progress: time: Sat, 02 Mar 2013 00:21:08 +0530</div><div>Progress: time: Sat, 02 Mar 2013 00:21:38 +0530</div><div>Progress: time: Sat, 02 Mar 2013 00:22:08 +0530</div><div>Progress: time: Sat, 02 Mar 2013 00:22:38 +0530</div>
<div>Progress: time: Sat, 02 Mar 2013 00:23:08 +0530</div><div>Finding dependency loops...Exception in thread "Hang checker" java.lang.StackOverflowError</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>at java.util.HashMap.put(HashMap.java:484)</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>at java.util.HashSet.add(HashSet.java:217)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>at org.griphyn.vdl.karajan.HangChecker.findLoop(HangChecker.java:299)</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>at org.griphyn.vdl.karajan.HangChecker.findLoop(HangChecker.java:303)</div><div><br></div></div><div>Earlier I had posted about iterate failing to compile on 0.94. I ran a few tests on 0.93</div>
<div>(code : <a href="https://github.com/yadudoc/swift-basics/blob/master/stress/x_iterate.swift">https://github.com/yadudoc/swift-basics/blob/master/stress/x_iterate.swift</a>) with</div><div>results:</div><div>100K loops -> 17s real </div>
<div>1M loops -> No response for a while, then java.lang.OutOfMemory exception thrown.</div><div><br></div><div>I'm finding it difficult to keep stats so, I'm placing the stats and as much run info as</div><div>
possible in comments in the scripts themselves. All the scripts are here -></div><div><a href="https://github.com/yadudoc/swift-basics/tree/master/stress">https://github.com/yadudoc/swift-basics/tree/master/stress</a></div>
<div><br></div><div><br clear="all"><div>-Yadu</div>
</div>