Bug 55632 - Have a new implementation of htmlParser for embedded resources parsing with better performances

Switch default to Lagarto Parser implementation
Bugzilla Id: 55632

git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1530078 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 15ca0337b1
This commit is contained in:
Philippe Mouawad 2013-10-07 21:40:50 +00:00
parent 9d23fd7eb7
commit aa7e666161
2 changed files with 9 additions and 6 deletions

View File

@ -575,17 +575,20 @@ HTTPResponse.parsers=htmlParser wmlParser
# Define the HTML parser to be used.
# Default parser:
#htmlParser.className=org.apache.jmeter.protocol.http.parser.HtmlParserHTMLParser
# This new parser (since 2.10) should perform better than all others
# see https://issues.apache.org/bugzilla/show_bug.cgi?id=55632
#htmlParser.className=org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
# Other parsers:
# Default parser before 2.10
#htmlParser.className=org.apache.jmeter.protocol.http.parser.HtmlParserHTMLParser
#htmlParser.className=org.apache.jmeter.protocol.http.parser.JTidyHTMLParser
# Note that Regexp extractor may detect references that have been commented out.
# In many cases it will work OK, but you should be aware that it may generate
# additional references.
#htmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
# This new parser (since 2.10) should perform better than all others
# see https://issues.apache.org/bugzilla/show_bug.cgi?id=55632
#htmlParser.className=org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
# This parser is based on JSoup
# This parser is based on JSoup, it should be the most accurate but less performant
# than LagartoBasedHtmlParser
#htmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
htmlParser.types=text/html application/xhtml+xml application/xml text/xml

View File

@ -67,7 +67,7 @@ public abstract class HTMLParser {
public static final String PARSER_CLASSNAME = "htmlParser.className"; // $NON-NLS-1$
public static final String DEFAULT_PARSER =
"org.apache.jmeter.protocol.http.parser.HtmlParserHTMLParser"; // $NON-NLS-1$
"org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser"; // $NON-NLS-1$
/**
* Protected constructor to prevent instantiation except from within