Package 'benchmarkmeData'

Title: Data Set for the 'benchmarkme' Package
Description: Crowd sourced benchmarks from running the 'benchmarkme' package.
Authors: Colin Gillespie [aut, cre]
Maintainer: Colin Gillespie <[email protected]>
License: GPL-2 | GPL-3
Version: 1.0.4
Built: 2024-09-19 04:59:43 UTC
Source: https://github.com/csgillespie/benchmarkme-data

Help Index


The benchmarkmeData package

Description

This package contains the results from users running the benchmarkme package. The key function is plot_past().

Author(s)

[email protected]

See Also

https://github.com/csgillespie/benchmarkme-data

Examples

plot_past("prog")

Interactive table of results

Description

A summary of past results

Usage

get_datatable_past(test_group, blas_optimize = NULL, cores = 0)

Arguments

test_group

One of "prog", "matrix_fun", "matrix_cal", "read5", "read50", "read200", "write5", "write50" or "write200". Default value prog.

blas_optimize

Default NULL. The default behaviour is to plot all results. To plot only the BLAS optimized results, set to TRUE, otherwise FALSE.

cores

Default 0, i.e. no parallel.

Examples

## Need the DT package
## View all results for prog test
get_datatable_past("prog")

BLAS optimize

Description

Try to determine parallel BLAS, which implies non-standard R! Compare user with elapsed time. If user >> elapsed, then parallel BLAS

Usage

is_blas_optimize(results)

Arguments

results

The output from a benchmark_* call.


Functions for manipulating uploaded results

Description

Functions used for moving and creating the past_results_v2 data set from uploaded data. The move_files function is used to moved files from the server to another location, whilst removing any empty data sets.

Usage

make_data_set(from)

move_files(from, to)

Arguments

from

A directory containing the uploaded results.

to

Destination directory

Note

One of the unit tests uploads an empty results file. Files where the results are NULL are moved to a sub-directory (called) empty in the to directory. If the empty directory doesn't exist, it is created.

Currently these functions are specific to my set-up.


Benchmarking results

Description

A summary of past benchmarks.

Format

A data frame


Benchmarking results

Description

A summary of past benchmarks.

Format

A data frame


Scatter plot of past benchmarks

Description

Plot the previous benchmarks. This function creates two figures.

  • Figure 1: Total benchmark time over all benchmarks (in seconds) on the y-axis.

  • Figure 2: Relative time (compared to the smallest benchmark).

The data set used is data(past_results_v2).

Usage

plot_past(test_group, blas_optimize = NULL, cores = 0, log = "y")

Arguments

test_group

One of "prog", "matrix_fun", "matrix_cal", "read5", "read50", "read200", "write5", "write50" or "write200". Default value prog.

blas_optimize

Default NULL. The default behaviour is to plot all results. To plot only the BLAS optimized results, set to TRUE, otherwise FALSE.

cores

Default 0, i.e. no parallel.

log

By default the y axis is plotted on the log scale. To change, set the the argument equal to the empty parameter string, "".

Examples

## Plot all past results for the `prog` benchmark
plot_past("prog", blas_optimize = NULL)

Selecting results

Description

Selects and aggregates over the past_results_v2 data set or the results input data set..

Usage

summarise_results(res)

select_results(test_group, results = NULL, blas_optimize = NULL, cores = 0)

Arguments

res

A list containing benchmark results and system information.

test_group

One of "prog", "matrix_fun", "matrix_cal", "read5", "read50", "read200", "write5", "write50" or "write200". Default value prog.

results

Default NULL. If NULL the past_results_v2 data set is used. Otherwise, the input data set.

blas_optimize

Default NULL. The default behaviour is to plot all results. To plot only the BLAS optimized results, set to TRUE, otherwise FALSE.

cores

Default 0, i.e. no parallel.

Value

A data frame

Examples

select_results("prog", blas_optimize = NULL)