Skip to content

Commit

Permalink
pre-compute mean
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzwalthert committed Oct 23, 2020
1 parent 07d3d67 commit 11b1eab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bench/02-basic.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ cat(
round(quantile(time_for_git_reset, 0.975), 3), ").",
sep = ""
)
mean_time_for_git_reset <- mean(time_for_git_reset)
Sys.sleep(3) # make system more idle
without_cache <- marker(
without_cache = {
Sys.sleep(mean(time_for_git_reset))
Sys.sleep(mean_time_for_git_reset)
style_pkg(path, filetype = c("R", "rmd"))
}
)
Expand Down

0 comments on commit 11b1eab

Please sign in to comment.