benchmarks: Benchmark R and Rcpp functions.

Description Examples

Description

Use R package microbenchmark to compare the performance of C functions (gibbsR and vaccR) and Cpp functions (gibbsC and vaccC).

Examples

1
2
3
4
5
6
7
8
## Not run: 
tm1 <- microbenchmark::microbenchmark(
  rnR = gibbsR(100,10,22,2,2),
  rnC = gibbsC(100,10,22,2,2)
)
print(summary(tm1)[,c(1,3,5,6)])

## End(Not run)

Lrrzz/StatComp21064 documentation built on Dec. 23, 2021, 10:21 p.m.