useRbenchmarkWrapper: Insert rbenchmark object into benchmarkVis application

Description Usage Arguments Value Examples

View source: R/rbenchmarkWrapper.R

Description

Create a data table useable with the benchmarkVis application out of an rbenchmark object. All important imformation will be exluded from the input object and transformed into a appropriate data table

Usage

1

Arguments

benchmark

a rbenchmark object

Value

a data table with the benchmarkVis specific structure

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(rbenchmark)
x = runif(1000)
benchmark = rbenchmark::benchmark(
 shell_sort = sort(x, method = "shell"),
 quick_sort = sort(x, method = "quick"),
 radix_sort = sort(x, method = "radix"),
 columns = c(
   "test", "replications", "elapsed"),
 order = "elapsed",
 replications = c(100, 20)
)
dt = useRbenchmarkWrapper(benchmark)

collinleiber/benchmarkVis documentation built on April 29, 2018, 4:20 p.m.