所有基准测试都只使用一个线程;同步的类不涉及线程争用。
Only a single thread is used for all these benchmarks; the synchronized classes are under no thread contention.
这个框架很容易满足大多数基准测试需求:只要把目标代码打包成特定类型的任务对象(Callable或Runnable),然后调用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.
应用推荐