benchmark: Benchmark processing time for typical analytics tasks

Description Usage Arguments Examples

Description

Benchmark processing time for typical analytics tasks

Usage

1
2
benchmark(rows = 1e+05, csv = FALSE, size = "rows", bytes = (3 *
  1024)^2, rep_times = 10)

Arguments

rows

Number of rows of the testing dataset if 'size = "rows"'.

csv

If 'TRUE', the csv-functions 'read.csv2' and 'write.csv' are included in the benchmarking.

size

How you want to specify the size of your testing dataset. Either "rows" or "bytes". "rows" by default.

bytes

Size of the dataset if 'size = "bytes"'. E.g. (3*1024)^2 for 3 MB or 1024^4 for one GB.

rep_times

Number of time each benchmarked function is repeated for the benchmarking.

Examples

1
2
3
4
5
6
7
8
benchmark(csv = T) # include benchmarking of read.csv and write.csv2

# specify the size of the dataset you want to test your system with:
benchmark(size = "bytes", bytes = (5*1024)^2) # in bytes
benchmark(rows = 100000) # in rows

benchmark(rep_times = 20) # specify how many times you want to repeat
# benchmarking one function

tim-dim/rlytics documentation built on May 4, 2019, 4:22 p.m.