print.data_table_threads_benchmark: Function to concisely display the results returned by...

View source: R/print.data_table_threads_benchmark.R

print.data_table_threads_benchmarkR Documentation

Function to concisely display the results returned by findOptimalThreadCount() in an organized table

Description

Function to concisely display the results returned by findOptimalThreadCount() in an organized table

Usage

## S3 method for class 'data_table_threads_benchmark'
print(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 print function).

Details

Prints a table enlisting the best performing thread count along with the runtime (median value) for each benchmarked data.table function.

Value

NULL.

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

data.table.threads documentation built on April 3, 2025, 10:08 p.m.