Learn R Programming

data.table.threads (version 1.0.0)

plot.data_table_threads_benchmark: 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 data_table_threads_benchmark
plot(x, ...)

Value

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

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.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab