unpack_timing: Unpack timing information

View source: R/benchmark_timing_tbl_methods.R

unpack_timingR Documentation

Unpack timing information

Description

Takes the result of a time_methods() call and remove the 'timed_result' column, replacing it with three columns of durations representing the 'system', 'user' and 'elapsed' times from a system.time() call.

Usage

unpack_timing(x)

## S3 method for class 'benchmark_timing_tbl'
unpack_timing(x)

Arguments

x

the benchmark_timing_tbl object

Value

a tibble containing pipeline steps and timing information

See Also

strip_timing

Examples

## Not run: 
datasets <- list(
    data1 = c(1, 2, 3)
)

transforms <- list(
    log = function(x) { Sys.sleep(0.1); log(x) },
    sqrt = function(x) { Sys.sleep(0.1); sqrt(x) }
)

datasets %>%
    time_methods(transforms) %>%
    unpack_timing()

## End(Not run)


Shians/CellBench documentation built on Oct. 16, 2023, 7:54 a.m.