Site icon R-bloggers

Crowd sourced benchmarks

[This article was first published on Why? » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

When discussing how to speed up slow R code, my first question is what is your computer spec? It always surprises me when complex biological experiments, costing a significant amount of money, are analysed using a six year old laptop. A new desktop machine costs around £1000 and that money would be saved within a month in user time. Typically the more the RAM you have, the larger the dataset you can handle. However it’s not so obvious of the benefit of upgrading the processor.

To quantify the impact of the CPU on an analysis, I’ve create a simple benchmarking package. The aim of this package is to provide a set of benchmarks routines and data from past runs. You can then compare your machine, with other CPUs. The package currently isn’t on CRAN, but you can install it via my drat repository

install.packages("drat") drat::addRepo("csgillespie") install.packages("benchmarkme")

You can load the package in the usual way, and view past results via

library("benchmarkme") plot_past()

to get

Currently around forty machines have been benchmarked. To benchmark and compare your own system just run

## On slower machines, reduce runs. res = benchmark_std(runs=3) plot(res)

gives

The final step is to upload your benchmarks

## You can control exactly what is uploaded. See the help page upload_results(res)

The current record is held by a Intel(R) Core(TM) i7-4712MQ CPU.


To leave a comment for the author, please follow the link and comment on their blog: Why? » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.