pgo_bench: Compile and test package with and without profile guided...

Description Usage Details

View source: R/pgo.R

Description

Running the test suite is a proxy for some kind of benchmark. Obviously this is inadequate with most CRAN test-suites. However, the test_that path may be set to a directory of testthat tests, which are called by test_dir. Alternatively, environment variables or R options may be set to run computationally intensive tests which exercise the compiled code.

Usage

1
2
3
4
5
6
pgo_bench(pkg_path = getwd(), test_path = "tests/testthat",
  prof_dir = file.path(pkg_path, "src/prof"), iterations = 7,
  quiet = TRUE, reporter = ifelse(quiet, "silent", "check"),
  clean = FALSE, opt_level = "-O3", cc = "clang", cxx = "clang++",
  brew = Sys.info()[["sysname"]] == "Darwin", measure = c("real",
  "user", "system"), ...)

Details

Do not use 'ccache'!


jackwasey/jwutil documentation built on Jan. 20, 2020, 6:56 p.m.