Package org.apache.etch.util

Examples of org.apache.etch.util.PerfTest


      listener.transportControl( Transport.STOP_AND_WAIT_DOWN, maxWaitTime );
  }

  private static void perfReport2( int threads ) throws Exception
  {
    new PerfTest( "report2", runtime, trials, threads )
    {
      @Override
      public void run( long n ) throws Exception
      {
        RemotePerfServer server = startServer();
View Full Code Here


    }.run();
  }

  private static void perfAdd2( int threads ) throws Exception
  {
    new PerfTest( "add2", runtime, trials, threads )
    {
      @Override
      public void run( long n ) throws Exception
      {
        RemotePerfServer server = startServer();
View Full Code Here

    }.run();
  }

  private static void perfDist( int threads ) throws Exception
  {
    new PerfTest( "dist", runtime, trials, threads )
    {
      @Override
      public void run( long n ) throws Exception
      {
        RemotePerfServer server = startServer();
View Full Code Here

  {
    final int[] values = new int[1000];
    for (int i = 0; i < values.length; i++)
      values[i] = i;

    new PerfTest( "sum-" + values.length, runtime, trials, threads )
    {
      @Override
      public void run( long n ) throws Exception
      {
        RemotePerfServer server = startServer();
View Full Code Here

    }.run();
  }

  private static void perfReport( int threads ) throws Exception
  {
    new PerfTest( "report", runtime, trials, threads )
    {
      @Override
      public void run( long n ) throws Exception
      {
        RemotePerfServer server = startServer();
View Full Code Here

    }.run();
  }

  private static void perfAsyncAdd( int threads ) throws Exception
  {
    new PerfTest( "async add", runtime, trials, threads )
    {
      @Override
      public void run( long n ) throws Exception
      {
        RemotePerfServer server = startServer();
View Full Code Here

    }.run();
  }

  private static void perfAdd( int threads ) throws Exception
  {
    new PerfTest( "add", runtime, trials, threads )
    {
      @Override
      public void run( long n ) throws Exception
      {
        RemotePerfServer server = startServer();
View Full Code Here

TOP

Related Classes of org.apache.etch.util.PerfTest

Copyright © 2018 www.massapicom. 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.