Description Usage Arguments Value Methods Examples
Storage and methods benchmarking data.
Constructor for bench objects.
1 |
header |
Printer header. A string or |
flops |
An optional numeric argument specifying the number of floating point operations for all timed operations. |
A bench class object.
new()benchR6$new(header = NULL, flops = NULL)
headerPrinter header. A string or NULL to ignore.
flopsAn optional numeric argument specifying the number of floating point operations for all timed operations.
Class initializer.
time()benchR6$time(expr, reps = 1, name = NULL, env = parent.frame())
exprExpression to time.
repsNumber of replications for each expression.
nameOptional name for the timed expression.
envEnvironment where expression will be executed.
Time an expression using system.time().
print()benchR6$print()
Print current benchmark information.
table()benchR6$table()
Returns a table of the benchmark data.
csv()benchR6$csv(sep = ",", header = TRUE, file = NULL)
sepSeparator.
headerPrint header?
fileA file to write to, or NULL to print to stdout.
Prints the benchmark table as a csv.
plot()benchR6$plot(...)
...Additional arguments to plot().
Show a line plot of the benchmarks table.
barplot()benchR6$barplot(...)
...Additional arguments to barplot().
Show a barplot of the benchmarks table.
clone()The objects of this class are cloneable with this method.
benchR6$clone(deep = FALSE)
deepWhether to make a deep clone.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.