title: How to programmatically run a jMeter benchmark from code?
body: <p>I want to benchmark some remote API calls via code. I've been using JMH for it so far, but it doesnt quite fit my need as a stress test tool (JMH works well for micro benchmarking, where the snippet being benchmarks rusn really really fast). My remote APIs respond in tens of seconds, so I really need to run the tests with:</p>
  
  <ol>
  <li>Multiple parameterized inputs</li>
  <li>Multiple client threads (controlling the load)</li>
  </ol>
  
  <p>I'm able achieve a lot via manual tests in JMeter UI, but I would like to write some java tests/benchmarks that use JMeter and does the same. Is there a way to do that?</p>