Intel i5 - 4200U
1.6GHz - 2.3GHz
J engine j701/2011-01-10/11:25
Qt IDE 1,1.3/5.3.0
Win 8.1 - 64
J802 Install
Dell Inspiron 15r Laptop
x=: 1e6 $ ' '
y=: a. {~ ? 1e6 $ 256
%/ 100 (6!:2)&> '/:~x' ; '/:~y'
3.78154
%/ 100 (6!:2)&> '/:~x' ; '/:~y'
2.68616
%/ 100 (6!:2)&> '/:~x' ; '/:~y'
2.53473
%/ 100 (6!:2)&> '/:~x' ; '/:~y'
2.53262
%/ 100 (6!:2)&> '/:~x' ; '/:~y'
2.52433
%/ 100 (6!:2)&> '/:~x' ; '/:~y'
2.53329
Skip Cave
Cave Consulting LLC
On Sat, Jul 5, 2014 at 12:59 AM, Roger Hui <[email protected]>
wrote:
> 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