[Pharo-dev] Never ending BlockClosure>>benchFor:

Andreas Wacknitz A.Wacknitz at gmx.de
Wed Nov 18 13:02:38 EST 2015



Am 18.11.15 um 11:48 schrieb Andrei Chis:
> Can you try the script below in the latest Pharo image and let me know 
> how much does it take to execute on your machine:
>
>   |duration benchmarkResult|
>   100 timesRepeat: [
> RubScrolledTextMorph new
> model: (RubScrolledTextModel new setInitialText: '1+1'; yourself);
> beForSmalltalkScripting;
> yourself
> ] .
>
> duration := 100 milliSeconds.
> benchmarkResult := [ 100 factorial ] benchFor: duration.
>
> In my case it takes around 1 minute. The inner loop finishes 
> immediately and then most time is spend executing the benchmark.
>
> At the end I get the following result:
> "a BenchmarkResult(2,060,386 iterations in 1 minute 7 seconds 498 
> milliseconds. 30,525 per second)"
>
> So the benchmark is executed for over one minute before the delay expires.
>
>
>
"a BenchmarkResult(1,263,573 iterations in 37 seconds 689 milliseconds. 
33,526 per second)"
(HP Z420 with Xeon E5-1620 under OpenIndiana).

Regards
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20151118/4eab70b9/attachment-0002.html>


More information about the Pharo-dev mailing list