unpack_timing {CellBench} | R Documentation |
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.
unpack_timing(x) ## S3 method for class 'benchmark_timing_tbl' unpack_timing(x)
x |
the benchmark_timing_tbl object |
a tibble containing pipeline steps and timing information
## 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)