Overview

A straightforward way of speeding up your analysis, is to buy a better computer. Modern desktops are relatively cheap, especially compared to user time. However, it isn’t clear clear if upgrading your computing is worth the cost. benchmarkme provides a set of benchmarks to help quantify your system. More importantly, it allows you to compare your timings with other systems.

Getting Started

To benchmark your system just run

library("benchmarkme")
res = benchmark_std(runs = 3)

The runs argument controls the number of replicates. If you have a fast system, then consider increasing this number. Currently it takes around a minute to run a single benchmark on a standard system (so \(3\) minutes for \(3\) runs).

You can upload the results using

id = upload_results(res)

The object id contains a unique identifier that you can use to extract your dataset in future versions of the package.

Exploring the Results

Past results are included in a companion package and can be accessed via

data(past_results, package="benchmarkmeData")

The data set is a simple data frame

head(past_results, 3)
##                    id       date     time test_group
## 1 2015-12-14-98680060 2015-12-14  5.91600       prog
## 2 2015-12-14-98680060 2015-12-14 13.11433 matrix_fun
## 3 2015-12-14-98680060 2015-12-14 17.15367 matrix_cal
##                                        cpu        ram byte_optimize
## 1 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz 8053540000             2
## 2 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz 8053540000             2
## 3 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz 8053540000             2
##   r_major r_minor sysname           release blas_optimize
## 1       3     2.2   Linux 3.13.0-43-generic         FALSE
## 2       3     2.2   Linux 3.13.0-43-generic         FALSE
## 3       3     2.2   Linux 3.13.0-43-generic         FALSE

and can plotted via

plot_past()

## shine() # if you have shiny

You can also see how you computer measures up with others

plot(res)
## You are ranked 1 out of 123 machines.
## Press return get next plot
## You are ranked 35 out of 123 machines.

## Press return get next plot
## You are ranked 22 out of 123 machines.

## shine(res) # if you have shiny

Interactive Tables

If you crave raw numbers, install the DT package`

install.packages("DT")

and run

## Your result is highlighted in orange.
get_datatable(res)
get_datatable_past()