Forum Discussion
iRules and performance
It mostly depends on the iRule. iRules do get compiled (into byte code), and can run at wire speed, but it really depends on what you're doing. If for example, you're processing a heavy regex filter on URI patterns, or building a Fibonacci sequence to insert into an HTTP header, that's probably going to eat some major CPU cycles. The best way to tell is simply to test your iRules. You can insert a timing command into event declarations and look at overall CPU hit across some arbitrary load.
All of that said, you may also want to consider another aspect of iRules - flexibility. iRules present an amount of flexibility that can in some cases make or break some set of requirements. iRules can in some cases fix an application problem faster and with less code than the app owners/developers can. And iRules can sometimes solve problems that simply cannot be solved any other way, or by any other vendor in the space. And for all of that, you may want to overlook the few extra CPU cycles introduced.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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