print.mbc: Print 'mbc' timings.

Description Usage Arguments Note Author(s) See Also Examples

Description

Print mbc timings.

Usage

1
2
## S3 method for class 'mbc'
print(x, unit, order, signif, ...)

Arguments

x

An object of class mbc.

unit

What unit to print the timings in. Default value taken from to option microbenchmark.unit (see example).

order

If present, order results according to this column of the output.

signif

If present, limit the number of significant digits shown.

...

Passed to print.data.frame

Note

The available units are nanoseconds ("ns"), microseconds ("us"), milliseconds ("ms"), seconds ("s") and evaluations per seconds ("eps") and relative runtime compared to the best median time ("relative").

If the multcomp package is available a statistical ranking is calculated and displayed in compact letter display from in the cld column.

Author(s)

Collin Erickson

See Also

boxplot.mbc and autoplot.mbc for a plot methods.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
a1 <- a2 <- a3 <- a4 <- numeric(0)

res <- mbc(a1 <- c(a1, 1),
                      a2 <- append(a2, 1),
                      a3[length(a3) + 1] <- 1,
                      a4[[length(a4) + 1]] <- 1,
                      times=100L)
print(res)
## Change default unit to relative runtime
options(microbenchmark.unit="relative")
print(res)
## Change default unit to evaluations per second
options(mbc.unit="eps")
print(res)

CollinErickson/mbc documentation built on May 28, 2019, 12:18 p.m.