View source: R/benchmark_parallel.R
bm_parallel | R Documentation |
This function runs benchmarks in parallel to test multithreading
bm_parallel(bm, runs, verbose, cores, ...)
bm |
character name of benchmark function to run from |
runs |
number of runs of benchmark to make |
verbose |
display messages during benchmarking |
cores |
number of cores to benchmark. If cores is specified, the benchmark is also run for cores = 1 to allow for normalisation. |
... |
additional arguments to pass to |
## Not run: bm_parallel("bm_matrix_cal_manip", runs = 3, verbose = TRUE, cores = 2) bm = c("bm_matrix_cal_manip","bm_matrix_cal_power", "bm_matrix_cal_sort", "bm_matrix_cal_cross_product", "bm_matrix_cal_lm") results = lapply(bm, bm_parallel, runs = 5, verbose = TRUE, cores = 2L) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.