[R] Accessing functions from a package

jim holtman jholtman at gmail.com
Tue May 25 01:42:13 CEST 2010


Put some numbers on your request.  How much slower was it? Did you
measure the user and system CPU?  Was there a difference?  Was there a
large amount of I/O or other system calls being done?

On Mon, May 24, 2010 at 2:01 PM, Peter Holt <source.code.devel at gmail.com> wrote:
> Hi Folks,
>
> I created a .R file with source code that accesses functions from a R
> package (example, fTrading).
>
> I then run the created application in two different configurations:
>
> 1. I started a R session, and then ran the application using the source
> ("my_application.R") command, and I measured the time the application ran.
>
> 2. I started 2 R sessions in the same processor, and executed the same
> source ("my_application.R") command, and measured the times the application
> ran.
>
> The times I measured for each applications in #2 was slower than the times I
> measured for the application in #1.
>
> The application was run in a 4-core machine running Linux.
>
> When the application ran, i used "mpstat" to look at the CPU usage. For #1,
> the CPU usage was 25%, and for #2, the CPU usage was 50%.
>
> No other process was running in the machine.
>
> My question is, why would #2 be slower than #1?
>
> Thanks,
> Peter
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?



More information about the R-help mailing list