Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8951919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:45:52+00:00 2026-06-15T13:45:52+00:00

I know that in common case HTML shouldn’t be parsed with regex . But

  • 0

I know that in common case HTML shouldn’t be parsed with regex.

But I want to make a performance test for web application. I know for sure how HTML may look like. So I can use regexes to extract some data from page source.

As I do performance test (using Jmeter), I want to take less resources from master machine.

What option will be less resource intensive: XPath, regexes (Jakarta ORO) or Jsoup?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:45:53+00:00Added an answer on June 15, 2026 at 1:45 pm

    As of JMeter 2.8, the answer is Regexp.
    But it depends of course on Regexp expressions you use.
    Regexp implementation in JMeter is rather optimized and the main post processing way for correlation.

    Regarding JSoup, it would need custom coding based on JSR223 post processor for example.

    JMeter 2.9 will introduce a new CSS/JQuery selector based Extractor with 2 possible underlying implementations:

    • JSOUP

    • Jodd Lagarto (CSSelly)

    See :

    • https://issues.apache.org/bugzilla/show_bug.cgi?id=54259

    Its performance will be lower than Regexp as it builds a DOM document, but it eases much syntax in Test Plans that don’t require ultra-optimised Test Plans.

    Finally, regarding XPath, as it builds a DOM Tree:

    • http://www.developer.com/xml/article.php/3397691/Does-StAX-Belong-in-Your-XML-Toolbox.htm

    It has a memory and CPU cost which is higher than regex particularly if you want to extract many elements, an enhancement has been created:

    • https://issues.apache.org/bugzilla/show_bug.cgi?id=53973
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that Java have its own garbage collection, but sometimes I want to
I know that you're not allowed to inherit from case classes but how would
I think I probably know that the most common suggestion will be change the
I know that it's a common convention to pass the length of dynamically allocated
I have a common problem that I never know how to solve with CSS:
Does anyone know if there is a common javascript library to enable scrolling that
I know that Phonegap has an event for back button, but it's only available
I know that this sort of question has been asked here before, but still
I know that this line of code will make the cell text-wrap: $objPHPExcel->getActiveSheet()->getStyle('D1')->getAlignment()->setWrapText(true); 'D1'
I know that snapshot isolation would fix this problem, but I'm wondering if NOLOCK

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.