Macbook Air, 1.8 GHz Intel Core i5
Engine: j701/2011-01-10/11:25 build: Feb 6 2011 16:16:29
Platform: Darwin 64

- low:  1.95644
- high: 2.02227
- mean: 2.00139

On Sat, Jul 5, 2014 at 11:14 AM, Linda Alvord <[email protected]> wrote:
> HP Paviilion du9700 Notebook PC
> AMD Turion(tm) 64 X2 Mobile Technoloby TL-60
> Memory: 2.00 GB
>
>    x=: 1e6 $ ' '
>    y=: a. {~ ? 1e6 $ 256
>    %/ 100 (6!:2)&> '/:~x' ; '/:~y'
> 1.01786
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Roger Hui
> Sent: Saturday, July 05, 2014 1:59 AM
> 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

Reply via email to