benchmark: Benchmark geotrellis functions

Description Usage Arguments Details Value Examples

View source: R/benchmark.R

Description

This benchmarks functions in this package that leverage geotrellis http://geotrellis.io and their counterparts in the raster package.

Usage

1
2
benchmark(ncell = c(100, 2500, 1e+06), times = 100L, io = TRUE,
  gp = TRUE, stats = TRUE)

Arguments

ncell

integer number of cells in data to use for benchmarking.

times

integer number of replicate runs.

io

logical should input/output functions be benchmarked?

gp

logical should geoprocessing functions be benchmarked?

stats

logical should statistical functions be benchmarked?

Details

This function returns a gt_Benchmark object. This is basically a list of microbenchmark objects.

Value

gt_Benchmark object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# run short benchmark
# note that real benchmarks should use more replications
# and that geotrellis is better for bigger data sets
b <- benchmark(c(100, 2500), times = 10L)
# print results
b
# plot results
plot(b)

## End(Not run)

jeffreyhanson/geotrellis documentation built on May 19, 2019, 4 a.m.