Skip to content
Prev 11547 / 15075 Next

Multiple cores on a Mac

Wow, thanks guys.  I am back to original speed with matrix operations as documented here.  As noted previously, this includes the 4 fold basic slowing of matrix operations on a single processor that occurred at the time of the change ~2012(?).  So I have approx 80/5 = 16 fold improvement!!!   I can do experiments and do a new experiment tomorrow based on the calculation!!!

Tests applied today II_5_2016:

*Test without vecLib option
 > source("http://www.bio.umass.edu/biology/kunkel/pub/R/CuriousResult.R")
 matrix multiplication      80.516   1.338   81.22 
 tcrossprod                 79.999   1.366  80.734 
 transposition and reuse    14.303   2.323   16.52 
 elementwise after reshape  11.088   1.776  12.774 
 columnwise sapply    22.781   9.631  32.137 
 for loop over columns      23.976   7.811  31.507 
 >q()
*apply unix adjustment # for vecLib use
matrix multiplication      19.595   1.188   5.389 
 tcrossprod                     19   1.175   4.702 
 transposition and reuse    14.113   2.416  16.432 
 elementwise after reshape  11.102   1.764  12.798 
 columnwise sapply    21.747   9.125  30.683 
 for loop over columns      23.243   6.458  29.515 

I have renewed faith!
Joe