generate CPU load in Java

后端 未结 5 1422
悲哀的现实
悲哀的现实 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 08:02

    Create a very large collection of random objects and then alternate calls to Collections.shuffle() and Collections.sort().

    I used Jakarta Commons Lang to generate random strings for the purposes of shuffling/sorting.

提交回复
热议问题