measure: Measure times and memory usage

View source: R/measure.R

measureR Documentation

Measure times and memory usage

Description

Measure times and memory usage

Usage

measure(..., profiling = FALSE, drop_caches = NULL)

Arguments

...

An expression to

profiling

Logical: collect prof info? If TRUE, the result data will contain a prof_file field, which you can read in with profvis::profvis(prof_input = file). Default is FALSE

drop_caches

Attempt to drop the disk cache before each case or iteration. Currently only works on linux. Permissible values are "case", "iteration", and NULL. Defaults to NULL, i.e. don't drop caches. As measure() is run once per iteration, here "iteration" results in dropping caches once and NULL and "case" result in no cache dropping.

Value

A tibble of timings and memory usage


ursa-labs/arrowbench documentation built on July 8, 2023, 11:36 a.m.