Learn R Programming

prcbench (version 0.3.1)

run_benchmark: Run microbenchmark with specified tools and test sets

Description

The run_benchmark function runs microbenchmark for specified tools and test datasets

Usage

run_benchmark(testset, toolset, times = 5, unit = "ms",
  use_sys_time = FALSE)

Arguments

testset
A character vector to specify a test set generated by create_testset.
toolset
A character vector to specify a tool set generated by create_toolset.
times
The number of iteration used in microbenchmark.
unit
A single string to specify the unit used in summary.microbenchmark.
use_sys_time
A Boolean value to specify system.time is used instead of summary.microbenchmark.

Value

  • A data frame of microbenchmark results with additional columns.

See Also

create_testset to generate a test dataset. create_toolset to generate a tool set. microbenchmark for benchmarking details.

Examples

Run this code
## Benchmarking for b10 and i10 test sets and crv5, auc5, and def5 tool sets
testset <- create_testset("bench", c("b10", "i10"))
toolset <- create_toolset(set_names = "def5")
res1 <- run_benchmark(testset, toolset)

Run the code above in your browser using DataLab