首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > java-performance-tester

java-performance-tester

  • 资源大小:0.00 B
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

# Simple tool for benchmark java classes # Provide a simple API for test and compare java classes performance in multi-thread environment. Generate an html report. ### A simple exemple ### ``` import nf.fr.eraasoft.test.Bench; import nf.fr.eraasoft.test.Job; import junit.framework.TestCase; public class Test extends TestCase { public void test1() throws InterruptedException{ Bench bench = new Bench(); // bench.addJob(new Job() { @Override public void go() { // Here invoke your favorites services System.out.println("Hello"); } // Override toString method for the name of job (use in report) @Override public String toString(){ return "JobA"; } }); // you can add an other job // bench.addJob(jobB); bench.maxthreads(10).maxiteration(100); bench.launch(); } . ``` The exemple above,launch a test series : * Launch the first job in one thread * Generate the report, and make a pause * Laun

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.213442s