Package jbe

Source Code of jbe.BenchLift

package jbe;

import jbe.lift.LiftControl;
import jbe.lift.TalIo;

public class BenchLift extends BenchMark {

  public BenchLift() {

    // initialization
    ctrl = new LiftControl();
    io = new TalIo();
  }

  public int test(int cnt) {

    int i;

    for (i=0; i<cnt; ++i) {
      loop();
    }

    return i;
  }

  public String getName() {

    return "Lift";
  }
 
  private static LiftControl ctrl;
  private static TalIo io;

  static void loop() {
    ctrl.setVals();
    ctrl.getVals();
    ctrl.loop(io);
  }

  public static void main(String[] args) {

    BenchMark bm = new BenchLift();

    Execute.perform(bm);
  }
     
}
TOP

Related Classes of jbe.BenchLift

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.