generate CPU load in Java

后端 未结 5 1416
悲哀的现实
悲哀的现实 2020-12-31 07:18

I am conducting some throughput testing. My application has to

  1. read from JMS
  2. do some processing
  3. write to JMS

My goal here is t

5条回答
  •  失恋的感觉
    2020-12-31 07:53

    Yet another stuff you can use, maybe :

            long start  = System.currentTimeMillis();
            long count = 0l;
            for(long x=0;x

提交回复
热议问题