Tutorials :Writing Micro-Benchmarks With Japex :

Writing Micro-Benchmarks With Japex

by Leonard Anghel

Do you need a micro-software to help you implement micro-benchmarks in micro-time? If your answer is yes, you need Japex. This Java tool was designed specifically to offer simple solutions for writing wall-clock benchmarks for chunks of code. The spirit of Japex borrows from its famous "sibling", JUnit, so if you are familiar with JUnit then you will recognize the application logic here. In this article, you'll learn:

  • How to download and install Japex
  • About Japex benchmarking funcamentals
  • How to build a Japex folders skeleton
  • Write a Japex benchmark:
    • Write drivers
    • Write test suites
  • Work with driver groups
  • Normalize benchmarks results
Let's begin!

Download And Install Japex

Download Japex from its web site. Make sure you download the latest Japex distribution. Install by extracting the .ZIP archive to the preferred place on your machine.

Japex's benchmarks are based on the JARs libraries from the /Japex/lib folder and they're most often executed through Ant scripts. Throughout this article, you'll place the benchmarks in the /Japex main folder under a sub-folder, named tests (you should create the test folder manually).

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.