(List<BenchmarkModule> benchList, MonitorInfo monitorInfo)
| 779 | } |
| 780 | |
| 781 | private static Results runWorkload(List<BenchmarkModule> benchList, MonitorInfo monitorInfo) |
| 782 | throws IOException { |
| 783 | List<Worker<?>> workers = new ArrayList<>(); |
| 784 | List<WorkloadConfiguration> workConfs = new ArrayList<>(); |
| 785 | for (BenchmarkModule bench : benchList) { |
| 786 | LOG.info("Creating {} virtual terminals...", bench.getWorkloadConfiguration().getTerminals()); |
| 787 | workers.addAll(bench.makeWorkers()); |
| 788 | |
| 789 | int num_phases = bench.getWorkloadConfiguration().getNumberOfPhases(); |
| 790 | LOG.info( |
| 791 | String.format( |
| 792 | "Launching the %s Benchmark with %s Phase%s...", |
| 793 | bench.getBenchmarkName().toUpperCase(), num_phases, (num_phases > 1 ? "s" : ""))); |
| 794 | workConfs.add(bench.getWorkloadConfiguration()); |
| 795 | } |
| 796 | Results r = ThreadBench.runRateLimitedBenchmark(workers, workConfs, monitorInfo); |
| 797 | LOG.info(SINGLE_LINE); |
| 798 | LOG.info("Rate limited reqs/s: {}", r); |
| 799 | return r; |
| 800 | } |
| 801 | |
| 802 | private static void printUsage(Options options) { |
| 803 | HelpFormatter hlpfrmt = new HelpFormatter(); |
no test coverage detected