benchmark_io | R Documentation |
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)
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 |
verbose |
Default TRUE. |
cores |
Default 0 (serial). When cores > 0, the benchmark is run in parallel. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.