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 size
MB.
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)
Number of times to run the test. Default 3.
a number specifying the approximate size of the generated csv. Must be one of 5 or 50
a non-empty character vector giving the directory name. Default tempdir()
Default TRUE.
Default 0 (serial). When cores > 0, the benchmark is run in parallel.