JUnit 4.x extensions for benchmark and performance testing
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
LICENSE
README.md
pom.xml

README.md

JUnitBench

Already using JUnit 4.x for testing? Adding performance tests to the mix has never been easier. JUnitBench is a set of JUnit 4.x extensions for benchmark and performance testing inspired by popular frameworks such as Japex, JMeter, and JUnitPerf without the overhead of maintaining separate code bases and configuration files. As an extension, performance tests can run alongside JUnit tests, utilizing the same infrastructure already provided by your toolchain (e.g. Ant, Maven, etc.).

Requirements

Due to the heavy use of annotations in both JUnitBench and JUnit 4.x, Java 1.5 is needed. However, Java 1.5 is only need to compile and run the performance test source, so older libraries compiled with older JDKs can still be tested using this framework.

  • Java 1.5 - test source compiling/running (e.g. annotations)
  • JUnit 4.x - general framework support (e.g. annotations, runner architecture)

Features

  • JUnit 4.x pluggable Runner architecture with sequential and multi-threading support.
  • Performance metric target formats:
    • comma-separated values (CSV) file format
    • JMeter log format (e.g. .jtl)
    • standard streams (e.g. stderr/stdout)