All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class test.jcsp.BenchMark

java.lang.Object
   |
   +----test.jcsp.BenchMark

public class BenchMark
extends Object
implements CSProcess

Process Diagram

External View

  _____________
 |             |
 |  BenchMark  |
 |_____________|
 

Internal View

  ___________________________
 |                           |
 |  _______       _________  |
 | |       |     |         | |
 | |  Nos  |-->--| Consume | |
 | |_______|     |_________| |
 |                           |
 |                 BenchMark |
 |___________________________|
 

Description

The BenchMark process is used to give an estimate of the synchronisation overhead of Channel communication.

The CSProcess has two CSProcess's executing in Parallel, Nos and Consume The output of the Nos process is connecting to the input of the Consume process.

The Consume process reads 50 Objects from the input Channel to discard any start-up overhead. It then time the time to read the next 5000 Objects and then writes to the screen the time taken in total and per loop then exits.

Author:
P.D.Austin

Constructor Index

 o BenchMark()

Method Index

 o main(String[])
Main entry point for the application.
 o run()
The main body of this process.

Constructors

 o BenchMark
 public BenchMark()

Methods

 o run
 public void run()
The main body of this process.

 o main
 public static void main(String argv[])
Main entry point for the application.


All Packages  Class Hierarchy  This Package  Previous  Next  Index