plot.data_table_threads_benchmark {data.table.threads}R Documentation

Function to make speedup plots for the benchmarked data.table functions

Description

Function to make speedup plots for the benchmarked data.table functions

Usage

## S3 method for class 'data_table_threads_benchmark'
plot(x, ...)

Arguments

x

A data.table of class data_table_threads_benchmark containing benchmarked timings with corresponding thread counts.

...

Additional arguments (not used in this function but included for consistency with the S3 generic plot function).

Details

Creates a comprehensive ggplot showing the ideal, sub-optimal, and measured speedup trends for the data.table functions benchmarked with varying thread counts.

Value

A ggplot object containing a speedup plot for each benchmarked data.table function.

Examples

# 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)

[Package data.table.threads version 1.0.1 Index]