world-class benchmark 全球高标准
The Benchmark class presented in Part 2 requires special configuration to enable it.
第2部分中提供的Benchmark类要求通过一个特殊配置来启用它。
Another approach (which the Benchmark class USES) is simply to execute the task continuously for a predetermined, reasonably long time.
另一种方法是在一个预先确定的长度合理的时间段内连续执行任务(benchmark类就使用这种方法)。
The framework is easy to use for most benchmarking needs: just package the target code into some type of task object (either a Callable or Runnable) and then make a single call to the benchmark class.
这个框架很容易满足大多数基准测试需求:只要把目标代码打包成特定类型的任务对象(Callable或Runnable),然后调用benchmark类。
应用推荐