;> >>>
>>> >>> Here's a more drastic example. I guess it spends most of its time
>>> doing
>>> > extended precision things. The Fibo routine is activated recursively
>>> just
>>> > 20 times or so. The result has over 20
ively
>> just
>> > 20 times or so. The result has over 20 digits.
>> >>>
>> >>> ~$ ~/j701/bin/jconsole
>> >>> Fibo =: 3 : 0"0NB. Compute large Fibonacci numbers like Fibo
>> > 1000000
>> >>> if. y<5 do.
CITG
> >>> wrote:
> >>>> Speaking about J, performance and Linux, is it true that Windows is
> > significantly faster? Or is there something wrong with my installation?
> > Also when runnning windows J under wine on my linux PC I get a better
> > per
ns (F y-1),F y
>>> ((,~<:)y){0 1 1 2 3x
>>> elseif. 0=2|y do.
>>> 'b c'=.Fibo -:y
>>> a=.c-b
>>> d=.c+b
>>> p=.b*a+c
>>> q=.c*b+d
>>> (q-p),q
>>> elseif. do.
>>> 'b c'=.Fibo -:>:y
>
;=.Fibo -:y
> >a=.c-b
> >d=.c+b
> >p=.b*a+c
> >q=.c*b+d
> >(q-p),q
> > elseif. do.
> >'b c'=.Fibo -:>:y
> >a=.c-b
> >d=.c+b
> >p=.b*a+c
> >q=.c*b+d
> >p,q-p
> > end.
> > )
> > 6!:2 '
15, 2014 09:42
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] On benchmarking results from J programming styles
FYI - 8s on my MacBookPro 13"
Regards Rob
Sent from my iPhone
> On 15 Jan 2014, at 7:12 pm, Ben Gorte - CITG wrote:
>
> Thanks, this is great. After recompi
l@gmail.com]
> Sent: Wednesday, January 15, 2014 04:10
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] On benchmarking results from J programming styles
>
> I get similar result for Fibo that linux needed about 41s and this is
> strange. I then recompiled the
mming-boun...@forums.jsoftware.com
[programming-boun...@forums.jsoftware.com] on behalf of bill lam
[bbill@gmail.com]
Sent: Wednesday, January 15, 2014 04:10
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] On benchmarking results from J programming styles
I get similar result for Fibo
b+d
>p,q-p
> end.
> )
> 6!:2 'z=.{:Fibo 100'
> 41.3298
>
>
> ~$ wine /media/Windows/Documents\ and\ Settings/bgorte/j701/bin/jconsole.exe
> ....
> 6!:2 'z=.{:Fibo 100'
> 15.5417
>
> #":z NB.
> 208
/media/Windows/Documents\ and\ Settings/bgorte/j701/bin/jconsole.exe
6!:2 'z=.{:Fibo 100'
15.5417
#":z NB.
208988
____________
From: programming-boun...@forums.jsoftware.com
[programming-boun...@forums.jsoftware.com] on behalf
in 32
> Installer: j701a_win.exe
> InstallPath: z:/media/windows/documents and settings/bgorte/j701
>time'locs=:nudge"1 locs'
> 1.09025e_5
>time'locs=:pfn"1 locs'
> 5.56416e_6
> time'locs=:(pfn f.)"1 locs'
> 2.88706e_6
quot;1 locs'
> 2.88706e_6
>time'locs=:pfns"1 locs'
> 2.77585e_5
>
> Regards,
> Ben
> ________
> From: programming-boun...@forums.jsoftware.com
> [programming-boun...@forums.jsoftware.com] on behalf of Raul Miller
> [r
iller
[rauldmil...@gmail.com]
Sent: Monday, January 13, 2014 06:44
To: Programming forum
Subject: Re: [Jprogramming] On benchmarking results from J programming styles
That sounds about right.
The big caution I would place on interpreting these results is: "This
won't necessarily apply for games
the pfns timings surprised me.
pfns =: 3 : '({.,_1&+@({.@}.),{:)`(_1&+@{.,15"_,{:)@.(0&=@({.@}.)) y'
On simple function tests where I take an implicit definition and just make it
explicit by adding y at the end, I've gotten an under 10% slowdown.
I would guess that you could see a comparable re
That sounds about right.
The big caution I would place on interpreting these results is: "This
won't necessarily apply for games implemented in J for Linux, where I
intend to rely on the SDL and byte-per-pixel graphics layouts.
Nonetheless, I retain the logic here, since it's representative of a
r
15 matches
Mail list logo