- Subject: Re: [slang-users] Slang 2.x is slow compared to 1.x
- From: Fatih Ulupinar <diskapi2@xxxxxxxxx>
- Date: Tue, 16 May 2017 13:11:41 -0700
Thanks for trying it on your system.
Something is wrong with the installation on my system. I tried your
alternative loops, they all are similarly slow.
I can't use _tic()/_toc() on the version 1.4. that's why I use the _time()
function. However, the result is the same when I use tic/toc on slang 2.
On Tue, May 16, 2017 at 12:35 PM, Manfred Hanke <Manfred.Hanke@xxxxxxxxxxx>
wrote:
> Hi,
>
> although I have no comparison with S-Lang 1.4, I'd say that your simple
> for loop runs quite fast on my (x86_64 GNU/Linux) system: 0–1 seconds.
>
> _time gives current calendar time, but I assume you can exclude that
> your system was under extremely high load when you did the S-Lang 2.3.1a
> tests...? ;)
> (If available on your system, you could also try the _tic / _toc
> functions: "The `_toc' function returns the elapsed CPU time in seconds
> since the last call to `_tic'.")
>
> Do you see any speedup when you replace the simple for loop with either
> _for i (0, 9999999) {}
> or
> loop (10000000) {}
> ?
>
> Cheers,
>
> Manfred
>
>
> On 16.05.2017 21:13, Fatih Ulupinar wrote:
> > I recently upgraded to slang 2.3.1a from slang 1.4 (I know really old).
> > Unfortunately after the upgrade, the performance has decreased by more
> > than 100 times.
> > I tried a simple for loop code to test the performance:
> >
> > variable i;
> > variable start = _time();
> > for (i = 0; i < 10000000; i++){}
> > printf("It took : %d seconds\n", _time() - start);
> >
> > On version 1.4, I get:
> > It took : 1 seconds
> >
> > On version 2.3.1a, I get:
> > It took : 343 seconds
> >
> > Am I doing something wrong? Is there like a special compile option to
> > enable optimization. I noticed that the 2.3.1a code is compiled with -O2
> > optimization.
> > Did anyone experience this type of slowdown?
> >
> > I appreciate any help.
> >
> > Thanks
>
>
> --
> Dr. Manfred Hanke * manfred.hanke@xxxxxxxxxxx * +49-176-17654618
> TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
> Geschäftsführer: Henrik Klagges, Christoph Stock, Dr. Robert Dahlke
> Sitz: Unterföhring * Amtsgericht München * HRB 135082
>
>
[2017 date index]
[2017 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]