ePrivacy and GPDR Cookie Consent by Cookie Consent

ContiPerf 2.3.2

Volker Bergmann in Development / Other

ContiPerf screenshot

User Rating: 3.1 (20 votes)

ContiPerf is a lightweight testing utility that enables the user to easily leverage JUnit 4 test cases as performance tests e.g. for continuous performance testing. It is inspired by JUnit 4's easy test configuration with annotations and by JUnitPerf's idea of wrapping Unit tests for performance testing, but more powerful and easier to use:

Using Java annotations for defining test execution characterisitics and performance requirements
You can mark a test to run a certain number of times or to be repeatedly executed for a certain amount of time
Performance requirements can be maximum, average, medium or any percentile exectution time
Perfect control and readability of performance requirements
You can run tests in two different modes, using them as simple unit tests or performance tests
Easy integration with Eclipse and Maven
Export of execution summary to a CSV file
Small library without external dependencies (only JUnit)
Easy extension with custom statistics evaluation and tracking mechanisms

Defining an attribute of type ContiPerfRule with the annotation @Rule activates ContiPerf. You can then choose from a different settings for specifying test execution (@PerfTest) and performance requirements (@Required). In the example the test is configured to be executed 1000 times with 20 concurrent threads, so each thread does 50 invocations. A maximum execution time of 1.2 seconds and and an average below or equals 250 milliseconds are tolerated.

As small but important detail is, that ContiPerf makes a difference to the behavior, you might expect from JUnit: ContiPerf creates a new test class instance and setup for each test method, but not for each test invocation! ContiPerf's purpose ist to do performance testing of your code, not of JUnit and the garbage collector! So, the behavior is as follows:

For each test method, a new instance of the test class is created and all further invocations of this method will happen on one and the same Java object!

First the @Before method is called. Then the test method is invoked 1,000 times subsequently and finally the @After method(s). ContiPerf 2 supports this behaviour for all JUnit 4 versions since version 4.7.

An example: Assuming you have a test class with two test methods, test1() and test2() which are executed two times each, a @Before method called before() and an @After method called after(), the invocation sequence is



File Size: 625 kB License: Open Source Price: FREE
Platform: Windows XP, Windows Vista, Windows Vista x64, Windows 7, Windows 7 x64
Downloads: Total: 144 | This Month: 0 Released: 2013-03-13
ContiPerf Similar Software
Popular Software in Development / Other

Racket for Mac 7.7 Racket    

Quick scripts easily compose into larger systems. Free download of Racket for Mac 7.7

software pick   

Guiffy for Mac and Linux 11.11 Guiffy Software    

Advanced Cross-Platform Diff/Merge software. Free download of Guiffy for Mac and Linux 11.11

software pick   

Mono for Windows Novell    

Provides the necessary software to develop and run .NET client. Free download of Mono for Windows

RubyMine for Mac 2020.1 JetBrains inc.    

Perform Ruby programming in a smart environment with your PC. Free download of RubyMine for Mac 2020.1

software pick   

wxPython for Mac and Linux 4.1.0 wxPROs    

A GUI toolkit for the Python programming language. Free download of wxPython for Mac and Linux 4.1.0

software award