plot.data_table_threads_benchmark {data.table.threads} | R Documentation |
data.table
functionsFunction to make speedup plots for the benchmarked data.table
functions
## S3 method for class 'data_table_threads_benchmark'
plot(x, ...)
x |
A |
... |
Additional arguments (not used in this function but included for consistency with the S3 generic |
Creates a comprehensive ggplot
showing the ideal, sub-optimal, and measured speedup trends for the data.table
functions benchmarked with varying thread counts.
A ggplot
object containing a speedup plot for each benchmarked 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:
benchmarkData <- data.table.threads::findOptimalThreadCount(1e3, 10)
# Generating speedup plots based on the data collected above:
plot(benchmarkData)