Instructions

  1. Make sure you have the following packages installed: dplyr, tidyr, xtable, lfe. If you don't running install.packages(c("dplyr", "tidyr", "xtable", "lfe")) in R should take care of this for you.
  2. Clone this repository.
git clone git@github.com:iangow/benchmark.git
  1. Open benchmark project in RStudio.
  2. Run the following lines.
system.time(source("benchmark.R", echo = FALSE))

Results

  1. Mac mini M1.
system.time(source("benchmark.R", echo = FALSE))
   user  system elapsed 
 48.427   3.359  50.993 
  1. 2013 i7 3770k
> system.time(source("benchmark.R", echo = FALSE))
   user  system elapsed 
111.875   3.732 112.726 
  1. 2017 12-core Xeon
> system.time(source("benchmark.R", echo = FALSE))
   user  system elapsed 
132.974   5.147 136.355 
  1. 2009 Mac Pro (2011 hex-core Xeon W3690)
> system.time(source("benchmark.R", echo = FALSE))
   user  system elapsed 
136.982  15.603 149.548