Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | Package Functions | Package Attributes | List of all members
bridges.benchmark.Benchmark Class Referenceabstract
Inheritance diagram for bridges.benchmark.Benchmark:
bridges.benchmark.GraphBenchmark bridges.benchmark.SortingBenchmark bridges.benchmark.BFSBenchmark bridges.benchmark.PageRankBenchmark bridges.benchmark.ShortestPathBenchmark

Detailed Description

Base class for a variety of benchmarks.

This class is not meant to be used directly by students.

Public Member Functions

void setTimeCap (long cap_in_ms)
 sets an upper bound to the time of a run. More...
 
long getTimeCap ()
 Return time limit of a run. More...
 

Package Functions

 Benchmark (LineChart plot, long timeCap)
 
 Benchmark (LineChart plot)
 

Package Attributes

LineChart plot
 

Constructor & Destructor Documentation

◆ Benchmark() [1/2]

bridges.benchmark.Benchmark.Benchmark ( LineChart  plot,
long  timeCap 
)
package

◆ Benchmark() [2/2]

bridges.benchmark.Benchmark.Benchmark ( LineChart  plot)
package

Member Function Documentation

◆ getTimeCap()

long bridges.benchmark.Benchmark.getTimeCap ( )

Return time limit of a run.

The benchmark will end after a run if it takes more than the given amount of time. So it is possible a particular run takes more than the allotted time, but that will be the last run.

Returns
the time upper bound (in milliseconds) of a particular run.

◆ setTimeCap()

void bridges.benchmark.Benchmark.setTimeCap ( long  cap_in_ms)

sets an upper bound to the time of a run.

The benchmark will end after a run if it takes more than the given amount of time. So it is possible a particular run takes more than the alloted time, but that will be the last run.

Parameters
cap_in_mstime limit in milliseconds

Member Data Documentation

◆ plot

LineChart bridges.benchmark.Benchmark.plot
package

The documentation for this class was generated from the following file: