Learn R Programming

jwutil (version 1.2.3)

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

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

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"), ...)

Arguments

Details

Do not use 'ccache'!