View source: R/profitBenchmark.R
profitBenchmarkResultBest | R Documentation |
This function will return the best method from a benchmark result returned by profitBenchmark
.
profitBenchmarkResultBest(result, precision="double")
result |
A benchmarking result returned from |
precision |
The desired floating-point precision; either "single" or "double" (the default). |
List; complex structure containing:
Pointer to the best profitConvolver; see profitMakeConvolver
.
The name of the best device.
The name of the best method and/or OpenCL environment.
Pointer to the best OpenCL environment; see profitOpenCLEnv
.
The floating point precision (from precision).
The time per operation for the best method in ms.
Logical; whether the optimal method uses the calcregion matrix or not; see profitSetupData
.
Dan Taranu
profitBenchmark
, profitSetupData
## Not run:
img = profitMakeGaussianPSF()
bench=profitBenchmark(img, psf=img, nbench=1L, methods=profitAvailableConvolvers())
print(profitBenchmarkResultStripPointers(bench$result)[
c("name","env_name","version","dev_name",paste0("tinms.mean_",c("single","double")))])
best = profitBenchmarkResultBest(bench$result)
print(paste('Name:',best$name,'time:',best$time))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.