Displaying 1 result from an estimated 1 matches for "l9400".
Did you mean:
9400
2012 Aug 02
2
parallel SNOW slower than single core?
Dear All,
I am learning parallel in R and start with the package "snow". I did a test
about running time and the parallel version is much slower than the regulat
code. My laptop is X200s with dual core intel L9400 cpu.
Should I make more clusters than 2? Or how to improve the performance?
# install.packages("snow")
library(snow)
cl <- makeCluster(2)
t1 <- proc.time()
a <- c()
for (i in 1:1000)
{
a[i] <- sum(parSapply(cl, 1:15, get("+"), 2))
}
proc.time()-t1
t2 <- proc.time...