[R] R perfomance question !!!
Rolf Turner
r.turner at auckland.ac.nz
Wed Jun 18 22:40:04 CEST 2008
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}}
More information about the R-help
mailing list