bench_memory {bench}R Documentation

Measure memory that an expression used.

Description

Measure memory that an expression used.

Usage

bench_memory(expr)

Arguments

expr

A expression to be measured.

Value

A tibble with two columns

Examples

if (capabilities("profmem")) {
  bench_memory(1 + 1:10000)
}

[Package bench version 1.1.3 Index]