benchmark_io: IO benchmarks

View source: R/benchmark_io.R

benchmark_ioR Documentation

IO benchmarks

Description

Benchmarking reading and writing a csv file (containing random numbers). The tests are essentially write.csv(x) and read.csv(...) where x is a data frame. Of sizeMB.

Usage

benchmark_io(
  runs = 3,
  size = c(5, 50),
  tmpdir = tempdir(),
  verbose = TRUE,
  cores = 0L
)

bm_read(runs = 3, size = c(5, 50), tmpdir = tempdir(), verbose = TRUE)

bm_write(runs = 3, size = c(5, 50), tmpdir = tempdir(), verbose = TRUE)

Arguments

runs

Number of times to run the test. Default 3.

size

a number specifying the approximate size of the generated csv. Must be one of 5 or 50

tmpdir

a non-empty character vector giving the directory name. Default tempdir()

verbose

Default TRUE.

cores

Default 0 (serial). When cores > 0, the benchmark is run in parallel.


benchmarkme documentation built on June 12, 2022, 5:06 p.m.