简体   繁体   English

使用正则表达式在Jmeter中提取多个值

[英]Extracting multiple value in Jmeter using regular expression

在我的脚本中,我正在使用多个(将近10个)正则表达式来提取值,我的问题是,如果有人可以解释我的影响,它将对响应时间产生影响。

Simple answer would be.. it depends on the regexes you are using and the amount of data you are working on. 一个简单的答案是..这取决于您正在使用的正则表达式和正在处理的数据量。

Regex engine parses the input string by attempting all permutations at every character, even backtracking in some cases. 正则表达式引擎通过尝试对每个字符进行所有置换来解析输入字符串,甚至在某些情况下还可以回溯。 This (the number of steps taken to match) is proportional to the size of the string you are using. 这(要匹配的步骤数)与您正在使用的字符串的大小成正比。

So, Yes.. it would affect your regex performance.. but not the response time of itself. 因此,是的..它将影响您的正则表达式性能..但不影响其自身的响应时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM