Forum Discussion
HTTP redirect with different URIs
Hi Stanislav,
did some old fashioned "timing on" test, since "time 10000" would chain the commands in a non-realistic fashion and may cause the CPU to cache certain things just too good. You may have seen this before, that the more iteration you launch the faster the code will get.
To avoid this type of caching I tend to execute some rather complex TCL code before each test iteration.
Timing using [string range] in combination with [HTTP::uri]
when HTTP_REQUEST timing on priority 200 {
set temp(result) "http://www.xyz.com/is[string range [HTTP::uri] 6 end]"
}
- Request : 100
- Min Cycles: 9243
- Avg Cycles: 12670
- Max Cycles: 21267
Timing using [string map] in combination with [HTTP::uri]
when HTTP_REQUEST timing on priority 200 {
set temp(result) "http://www.xyz.com[string map {/sites/pmo /is/pmo} [HTTP::uri]]"
}
- Request : 100
- Min Cycles: 14517
- Avg Cycles: 18861
- Max Cycles: 27999
Timing using [string map] in combination with [HTTP::path] and [HTTP::query]
when HTTP_REQUEST timing on priority 200 {
set temp(result) "http://www.xyz.com[string map {/sites/pmo /is/pmo} "[HTTP::path]?[HTTP::query]"]"
}
- Request : 100
- Min Cycles: 16092
- Avg Cycles: 22116
- Max Cycles: 37719
BTW: URI used for all Tests: /sites/pmo/abc/abc/abc/abc?xyz1=1&xyz2=2
Update: Performed a second "timing on" for every snipped and updated the numbers. The reason for that was that i strongly belive that my chrome browser was asking for /favicon.ico on half of the requests... 😉
Cheers, Kai
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