This function enables comparing CPU times of several expressions. The times
are calculated via
system.time, additionally time ratios are
a collection of expressions in the form of tag=value
The function uses
system.time to estimate CPU times needed to
evaluate each of the expressions. The output provides raw timings as well as
ratios of time elapsed.
show method prints the results nicely and
additionally calculates the ratios of times elapsed.
An object of S4 class
speedcomp with two slots
list of expressions processed
matrix containing the CPU times of the expressions in
e estimated with
system.time. Rows correspond to
expressions and columns to the fields returned by
i.e. "user cpu", "system cpu", "elapsed", "subproc1" and "subproc2"
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.