droolsjbpm/drools-planner — pull request #5 by triceo (2012-04-21 15:00:43+00:00)
Title: JBRULES-3393: Multi-threaded Benchmarker in Planner

This pull request introduces multi-threaded benchmarking. What's changed:

- Every problem benchmark, even if there is just one, now runs in its own thread. (This is to keep the code simple. If we wanted the single benchmark to run in the main thread, there would have to be separate code paths for it.)
- Benchmark config allows to configure the number of threads to be used, via "threadsUsed" element. This element accepts values of "X", "+X", "-X", where X > 0, and "AUTO". "X" specifies a number of threads to use, while "-X" means (cpuCount - X), "+X" means (cpuCount + X) and AUTO means (cpuCount - 2).
- Default value of the threadsUsed element is 1, not to change default planner behavior.