tests/testthat/test-byte_compiler.R

test_that("Test Byte Compiler", {
  skip_on_cran()
  byte = get_byte_compiler()
  expect_gte(byte, 0L)
  expect_lte(byte, 3L)

  benchmark_std = compiler::cmpfun(benchmarkme::benchmark_std)
  assign("benchmark_std", benchmark_std, envir = globalenv())
  expect_gt(get_byte_compiler(), 0L)
}
)

Try the benchmarkme package in your browser

Any scripts or data that you put into this service are public.

benchmarkme documentation built on June 12, 2022, 5:06 p.m.