Forum Discussion
Heisenberg_1452
Mar 04, 2014Historic F5 Account
Another performance question
All,
Another performance question: internal data groups vs. an array within the iRule. It seems that the array would be faster. VERY small data set. I understand management of the data set it...
Kevin_Stewart
Employee
Mar 05, 2014If you're curious about exact performance numbers, you can test it yourself using the timing command:
iRules Optimization 101 - 05 - Evaluating iRule Performance
Array test:
when RULE_INIT {
array set static::uris {
foo bar
test blah
this that
ricky lucy
fred ethel
}
}
when HTTP_REQUEST timing on {
log local0. $static::uris([URI::query [HTTP::uri] test])
}
Data group test:
ltm data-group internal test-dg-2 {
records {
foo {
data bar
}
fred {
data ethel
}
ricky {
data lucy
}
test {
data blah
}
this {
data that
}
}
type string
}
when HTTP_REQUEST timing on {
log local0. [class match -value [URI::query [HTTP::uri] test] equals test-dg-2]
}
Displaying statistics:
tmsh show /ltm rule my-test-rule
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects