Automated Performance Testing System

Is there any environment for writing automatic performance tests on the JVM?

I would like to set some performance targets and turn on a red light (or rather print a red console message) every time the performance is below the target.

I have some tests written with Calliper that I run manually, however I would like the set of performance tests to run automatically, as well as for unit testing.

No databases or web server.

+5
source share
3 answers

The ScalaMeter tool does exactly what I was looking for when I asked this question.

0
source

4- JUnit :

import org.junit.*;

public class JunitTest4 {

    // timings below are in milliseconds
    @Test(timeout = 1000)  
    public void infinity() {
        // will fail    
        while (true);  
    }  

}

, , , , : - , , , .

+1

, , , JUnit.

@Test, om-nom-nom, , , , 100 , 100 stdev 2 stdevs , timeoiut.... .

JUnit.

Basically the same approach should work with ScalaTest

+1
source

All Articles