Skip to content

joshuaulrich/microbenchmark

master
Switch branches/tags
Code

Latest commit

The y_max parameter in autoplot.microbenchmark is currently ignored,
because coord_cartesian and coord_flip do not work together. I removed
coord_cartesian and moved ylim to coord_flip.

Now that y_max works, two issues appear in how it works: First, y_min
cannot be 0 on a log axis, so I added a line to use the minimum value
from object$ntime if log == TRUE. Second, the default value for y_max
is derived from object$time, while the plot uses object$ntime, so I
replaced the default with NULL and calculate the default value after
calculating object$ntime. Note that the previous default for y_max
also had no effect. This is why I did not keep the 1.05 factor, as it
would change the behaviour compared to before.

Calling the function without y_max produces the same plots as before,
but without the warning from coord_flip that it is replacing the
coordinate system from coord_cartesian.

Fixes #35.
669611f

Git stats

Files

Permalink
Failed to load latest commit information.

microbenchmark

Infrastructure to accurately measure and compare the execution time of R expressions.

microbenchmark for enterprise

Available as part of the Tidelift Subscription.

The maintainers of microbenchmark and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Install from GitHub

To install the bleeding edge version from GitHub run (requires the remotes package):

remotes::install_github("joshuaulrich/microbenchmark")

CRAN Status Badge CRAN Downloads

About

Infrastructure to accurately measure and compare the execution time of R expressions

Resources

License

Stars

Watchers

Forks

Packages

No packages published