JBenchX Java Unit Benchmarking Framework 0.3.0

Add this URL to your Eclipse Installation to reach this Solution's Update Site.
More Info


Categories:
JBenchX is a Unit Benchmarking Framework for Java(tm). It aims at micro-benchmarking your classes as easily as you create tests for your classes with the well-known JUnit framework. This is the Eclipse plug-in providing support for launching benchmarks directly from within Eclipse.

Important Note: Before you can write JBenchX bechmarks in Eclipse you need to add the JBenchX library to the classpath! You can do this easily by opening the Properties of your project, selecting the Java Build Path page, chosing the Libraries tab and adding the JBenchX libraries with the "Add Library..." command.

Example Benchmark to test how long it takes to generate a truly random integer:

import java.security.*;

import org.jbenchx.annotations.*;

public class Example {
  
  private SecureRandom fRandom;

  public Example() throws Exception {
    fRandom = SecureRandom.getInstance("SHA1PRNG");
  }
  
  @Bench
  public int random() {
    return fRandom.nextInt();
  }
  
}

Additional Details

  • Version Number: 0.3.0
  • Eclipse Versions: 3.6, 3.7
  • Organization: Micha Riser
  • Date Created: 23/08/2011
  • Date Updated: 30/10/2011
  • Development Status: Beta
  • License: EPL
  • Submitted by: Micha Riser
  • This listing has been installed 14 times in the last 30 days.

Reviews

Add a Review