Benchmark plot creation time. Broken down into construct, build, render and draw times.
Source:R/bench.r
benchplot.Rd
Benchmark plot creation time. Broken down into construct, build, render and draw times.
Examples
benchplot(ggplot(mtcars, aes(mpg, wt)) + geom_point())
#> step user.self sys.self elapsed
#> 1 construct 0.002 0 0.002
#> 2 build 0.007 0 0.007
#> 3 render 0.011 0 0.011
#> 4 draw 0.024 0 0.024
#> 5 TOTAL 0.044 0 0.044
benchplot(ggplot(mtcars, aes(mpg, wt)) + geom_point() + facet_grid(. ~ cyl))
#> step user.self sys.self elapsed
#> 1 construct 0.002 0 0.002
#> 2 build 0.013 0 0.013
#> 3 render 0.033 0 0.033
#> 4 draw 0.041 0 0.041
#> 5 TOTAL 0.089 0 0.089