- 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.
- Clone this repository.
git clone git@github.com:iangow/benchmark.git
- Open
benchmark
project in RStudio.
- Run the following lines.
system.time(source("benchmark.R", echo = FALSE))
- Mac mini M1.
system.time(source("benchmark.R", echo = FALSE))
user system elapsed
48.427 3.359 50.993
- 2013 i7 3770k
> system.time(source("benchmark.R", echo = FALSE))
user system elapsed
111.875 3.732 112.726
- 2017 12-core Xeon
> system.time(source("benchmark.R", echo = FALSE))
user system elapsed
132.974 5.147 136.355
- 2009 Mac Pro (2011 hex-core Xeon W3690)
> system.time(source("benchmark.R", echo = FALSE))
user system elapsed
136.982 15.603 149.548