사용자 도구

사이트 도구


java:junit:contiperf

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
java:junit:contiperf [2015/11/26 19:57]
kwon37xi
java:junit:contiperf [2016/04/22 08:26] (현재)
kwon37xi [Bug]
줄 1: 줄 1:
 ====== ContiPerf ====== ====== ContiPerf ======
   * [[http://databene.org/contiperf|ContiPerf 2]] 성능 테스트   * [[http://databene.org/contiperf|ContiPerf 2]] 성능 테스트
 +  * [[http://mvnrepository.com/artifact/org.databene/contiperf|ContiPerf Maven Repository]]
   * [[http://blog.javabenchmark.org/2013/03/continuous-performance-and-junit-with.html|Java Benchmark: Continuous Performance and JUnit with ContiPerf]]   * [[http://blog.javabenchmark.org/2013/03/continuous-performance-and-junit-with.html|Java Benchmark: Continuous Performance and JUnit with ContiPerf]]
  
줄 8: 줄 9:
    
     @Rule     @Rule
-    public ContiPerfRule = new ContiPerfRule();+    public ContiPerfRule contiPerfRule = new ContiPerfRule();
            
     @Test     @Test
줄 50: 줄 51:
 // ConstantTimer, RandomTimer, CumulatedTimer // ConstantTimer, RandomTimer, CumulatedTimer
 </code> </code>
 +
 +===== @Required : 테스트 성공 조건 기술 =====
 +  * ''@Required(throughput = 20)'' : Requires to have at least 20 test executions per second
 +  * ''@Required(average = 50)'' Requires an average execution time of not more than 50 milliseconds
 +  * ''@Required(median = 45)'' : Requires that 50% of all executions do not take longer than 45 milliseconds
 +  * ''@Required(max = 2000)'' : Requires that no invocation takes more than 2000 milliseconds (2 seconds)
 +  * ''@Required(totalTime = 5000)'' : Requires that the sum of all execution times is not more than 5000 milliseconds (5 seconds)
 +  * ''@Required(percentile90 = 3000)'' : Requires that 90% of all executions do not take longer than 3000 milliseconds
 +  * ''@Required(percentile95 = 5000)'' : Requires that 95% of all executions do not take longer than 5000 milliseconds
 +  * ''@Required(percentile99 = 10000)'' : Requires that 99% of all executions do not take longer than 10000 milliseconds
 +  * ''@Required(percentiles = "66:200,96:500")'' : Requires that 66% of all executions do not take longer than 200 milliseconds and 96% of all executions do not take longer than 500 milliseconds 
  
 ===== 임시 작동 중단 ===== ===== 임시 작동 중단 =====
줄 56: 줄 68:
 mvn test -DargLine="-Dcontiperf.active=false" mvn test -DargLine="-Dcontiperf.active=false"
 </code> </code>
 +
 +===== Bug =====
 +<code>
 +java.lang.NoSuchFieldException: fNext
 +</code>
 +JUnit 최신 버전과 안 맞아서 생기는 오류. JUnit 버전을 다운그레이드(4.11 이하) 할 것.
  
java/junit/contiperf.1448537246.txt.gz · 마지막으로 수정됨: 2015/11/26 19:57 저자 kwon37xi