Learn R Programming

pbdPROF (version 0.2-3)

benchplot: Benchmark Plotter

Description

Simple benchmarks plotter.

Usage

benchplot(cores, timings, plot.type="speedup", title=NULL)

Arguments

cores
Numeric vector containing the cores used in each benchmark.
timings
A dataframe containing the wall-clock timings of each benchmark.
plot.type
character; determines what kind of plot to produce. options are "runtime", "speedup", or "both".
title
character or NULL; plot title.

Details

benchplot() produces simple benchmark plots. If multiple benchmarks are given (i.e., multiple columns are present in the timings dataframe) then the generated plot will automatically plot them against each other, separated by color.

See Also

prof-class

Examples

Run this code
library(pbdPROF)

x <- c(1, 2, 4, 6, 8, 10, 12, 16)
y <- c(111.424, 80.696, 42.832, 29.468, 24.060, 19.390, 15.938, 11.860)

benchplot(x, y, "both")

Run the code above in your browser using DataLab