How good is your machine?

Writing Efficient R Code

Colin Gillespie

Jumping Rivers & Newcastle University

Experiments!

Cost of experiment:

  • Experimental equipment
  • Researcher time

Not cheap!

Writing Efficient R Code

To buy, or not to buy...

Writing Efficient R Code

To buy, or not to buy...

  • Analysis takes twenty minutes on your current machine
    • Ten minutes to run on a new machine
    • Your time is charged at $100 per hour
    • Run sixty analyses to pay back the cost of a $1000 machine
Writing Efficient R Code

The benchmarkme package

install.packages("benchmarkme")

library("benchmarkme")
# Run each benchmark 3 times res <- benchmark_std(runs = 3)
plot(res)

My machine is ranked 75th out 400 machines

upload_results(res)

Writing Efficient R Code

Let's practice!

Writing Efficient R Code

Preparing Video For Download...