Measure the time of concurrent executions of the provided runnable instance - the first error or runtime exceptions during execution is populated to the caller. The provided runnable is executed taskCount iterationCount times.
(final Runnable runnable, final int threadCount, final int taskCount, final int iterationCount)
| 74 | * times. |
| 75 | */ |
| 76 | public static long measureConcurrentTime(final Runnable runnable, final int threadCount, final int taskCount, final int iterationCount) throws InterruptedException { |
| 77 | final long duration = _measureConcurrentTime(runnable, threadCount, taskCount, iterationCount); |
| 78 | cleanUp(); |
| 79 | return duration; |
| 80 | } |
| 81 | |
| 82 | |
| 83 | static long _measureConcurrentTime(final Runnable runnable, final int threadCount, final int taskCount, final int iterationCount) throws InterruptedException { |
no test coverage detected