Learn R Programming

data.table.threads (version 1.0.0)

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

Value

NULL.

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.

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

Run the code above in your browser using DataLab