janko.mivsek at eranova.si
Wed Oct 27 10:43:05 CEST 2010
Let me start this discussion in another thread:
In 6.1 for benchmarking and profiling there is AidaProfiling in
Aida-Tests, just that it is finished for VW and not for Squeak yet. But
principles are the same, here is the profile method for VW:
| site req resp |
site := AIDASite new initialize.
req := self sampleRequest. "/admin.html?view=login&id=123456"
resp := site answerTo: req.
profile: [100 timesRepeat: [site answerTo: req]].
^resp "to check if it is actually as expected"
As you see the request receiving is simulated and repeated many times to
get a good profile. To keep the same session an additional query
parameter is added to the Url: id=123456.
Hope this helps
Smalltalk Web Application Server
More information about the Aida