Description Usage Arguments Value Examples
Create a data table useable with the benchmarkVis application out of an rbenchmark object. All important imformation will be exluded from the input object and transformed into a appropriate data table
1 | useRbenchmarkWrapper(benchmark)
|
benchmark |
a rbenchmark object |
a data table with the benchmarkVis specific structure
1 2 3 4 5 6 7 8 9 10 11 12 | library(rbenchmark)
x = runif(1000)
benchmark = rbenchmark::benchmark(
shell_sort = sort(x, method = "shell"),
quick_sort = sort(x, method = "quick"),
radix_sort = sort(x, method = "radix"),
columns = c(
"test", "replications", "elapsed"),
order = "elapsed",
replications = c(100, 20)
)
dt = useRbenchmarkWrapper(benchmark)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.