x=: 1e6 $ ' '
y=: a. {~ ? 1e6 $ 256
%/ 100 (6!:2)&> '/:~x' ; '/:~y'
2.35847
JVERSION
Engine: j701/2011-01-10/11:25
Library: 8.02.10
Qt IDE: 1.1.3/5.3.0
Platform: Win 64
Installer: J802 install
InstallPath: c:/j/j64-802
Intel I7
x=: 1e6 $ ' '
y=: a. {~ ? 1e6 $ 256
%/ 100 (6!:2)&> '/:~x' ; '/:~y'
1.76105
JVERSION
Installer: j602a_win.exe
Engine: j602/2008-03-03/16:45
Library: 6.02.071
Intel I7 in 32 bit mode
On Sat, Jul 5, 2014 at 6:02 AM, R.E. Boss <[email protected]> wrote:
> 3,07 GHz Intel Core i7 950
>
> x=: 1e6 $ ' '
> y=: a. {~ ? 1e6 $ 256
> %/ 100 (6!:2)&> '/:~x' ; '/:~y'
> 1.7674852
>
>
> R.E. Boss
>
> (Add your info to http://www.jsoftware.com/jwiki/Community/Demographics )
>
>
> > -----Original Message-----
> > From: [email protected] [mailto:programming-
> > [email protected]] On Behalf Of Roger Hui
> > Sent: zaterdag 5 juli 2014 7:59
> > To: Programming forum
> > Subject: [Jprogramming] sort times
> >
> > I have observed a puzzling timing result which may be CPU dependent.
> > Please try the following and tell me what ratio you get, and the kind of
> > machine you ran it on. Thanks.
> >
> > On my machine, an XPS L521X Intel Core i7-3632QM @ 2.2 GHz,
> >
> > x=: 1e6 $ ' '
> > y=: a. {~ ? 1e6 $ 256
> > %/ 100 (6!:2)&> '/:~x' ; '/:~y'
> > 2.44133
> >
> > Basically, sorting a constant vector of 1-byte ints takes 2.4 times as
> long
> > as sorting a random vector of 1-byte ints.
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm