Re: [R] R perfomance question !!!

From: Rolf Turner <r.turner_at_auckland.ac.nz>
Date: Thu, 19 Jun 2008 08:40:04 +1200

On 19/06/2008, at 2:38 AM, diver495 wrote:

>
> I ran the simple script bellow and received shoking

        Your spelling is pretty shoking too.

> results. It was complied
> for about 15 seconds !!! on modern Intel Core Duo computer.
>
> i=0;
> while(i<5000000)
> {
> i=i+1;
> }
>
> Using Visual Basic I can complete the same script (simple loop of
> 5000000
> itterations) in 0.1 sec.
> Is it realy R not suitable for huge computing.

It helps to know what the <expletive deleted> you're doing. E.g.:

  > x <- rep(1,5e6)
  > system.time(sum(x))
    user system elapsed
   0.014 0.000 0.014

        cheers,

                Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 18 Jun 2008 - 21:27:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 18 Jun 2008 - 21:31:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive