microbenchmark icon indicating copy to clipboard operation
microbenchmark copied to clipboard

Bells and whistles for the core microbenchmark functions

Results 5 microbenchmark issues
Sort by recently updated
recently updated
newest added

Is there any way to reorder the y axis in the plot generated by `autoplot()`?

This adds a new parameter `order` to `autoplot.microbenchmark()`, similar to `print.microbenchmark()` which sorts the y-axis according to some measure: mean, median, max, etc. Code is mainly borrowed from `print.microbenchmark()` but...

If the same expression is passed into `microbenchmark()` twice, then the resulting error is not very helpful. ```r library(microbenchmark) microbenchmark(1 + 1, 1 + 1) ## Error in `levels

Suppose I want to test how a function scales with respect to the size of its input. Here's an example function that scales rather badly. ```r f

``` r microbenchmark::microbenchmark(TRUE, unit = "f") ## Error in convert_to_unit(object$time, unit) : Unknown unit 'Mhz'. ``` The following works: ``` r microbenchmark::microbenchmark(TRUE, unit = "mhz") ```