View source: R/findOptimalThreadCount.R
findOptimalThreadCount | R Documentation |
data.table
functionsThis function finds the optimal thread count for running data.table
functions with maximum efficiency.
findOptimalThreadCount(rowCount, colCount, times = 10, verbose = FALSE)
rowCount |
The number of rows in the |
colCount |
The number of columns in the |
times |
The number of times the benchmarks are to be run. |
verbose |
Option (logical) to enable or disable detailed message printing. |
Iteratively runs benchmarks with increasing thread counts and determines the optimal number of threads for each data.table
function.
A data.table
of class data_table_threads_benchmark
containing the optimal thread count for each data.table
function.
# Finding the best performing thread count for each benchmarked data.table function
# with a data size of 1000 rows and 10 columns:
(optimalThreads <- data.table.threads::findOptimalThreadCount(1e3, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.