Parallel Java Plots model element

PJPlots can store data measurements about runs of a parallel algorithm and display plots of the Speedup or Sizeup metrics

The metrics are defined in the book Building Parallel Java by Alan Kaminsky and look like shown in the Speedup and Sizeup documentation.


This is an example of a sizeup plot

Usage

Add a PJPlots element to your model, by dragging the icon element to the list of your model elements. Whenever you have data from a parallel run, add it to the element using the addMeasurement method. When you think you have enough data, invoke the element's showSpeedupPlot or showSizeupPlot method to display a dialog with the plots.

You can invoke the plotting methods as may times as required. The element will create each time a new plot with the available data.

The element implements the following basic methods:

Example of use

pjPlots.addMeasurement(20,1,1234);
pjPlots.addMeasurement(20,1,1256);
pjPlots.addMeasurement(20,2,700);
pjPlots.addMeasurement(20,2,710);
pjPlots.addPlotSpecification("n 20 1048576 \"N = 1M\"");
pjPlots.addPlotSpecification("time rightMargin 54");
// Do more runs and add their data...
// ...when you are ready:
pjPlots.showSpeedupPlot(_view.mainFrame);
// or
pjPlots.showSizeupPlot(_view.mainFrame);