Optimizing Your Scripts

Optimizing your script(s) based on revision and early pre-tests can help ensure that you're running an effective performance test.

Here are steps you should take:
  1. Use JSR233 + Groovy + compilation key instead of BSF
  2. Disable your script listeners. Especially the ones mentioned below as they consume a lot of memory:
    1. Graph results
    2. Comparison assertion visualizer
    3. View results in tree
    4. View results in table
  3. Run in a non-graphical user interface (GUI) mode
  4. Optimize your Java configuration to meet your needs
  5. Use CSV as your output format
  6. Use the regular extractor rather than XPath
  7. Minimize the usage of assertions
  8. Minimize the usage of post-processor elements
  9. In the egular expression extractor, minimize the data that has to be extracted
  10. Generate reports after test is completed
  11. When you have a higher number of users, use multiple machines
  12. Try to increase JMeter's heap memory