Re: check expression proposal.
Status: Alpha
Brought to you by:
coroberti
|
From: Robert I. <cor...@gm...> - 2007-07-04 14:05:40
|
>Yep, but what is wrong with one of the allready exists embeddable
>Languages?!
LUA would be the only appropriate solution, due to its very low memory
footprint during runtime (remember that we have lots of users running
at the same time.) Perl and python would be disqualified for this
reason (don't know about neko)
somehow Robert did not like the idea for the following reasons;
- we tried to come up with a somewhat simpler (and more limited
solution), something less than scripting language; however the thing
still creeps back ;-)
- with scripting language we have to redo the whole state machine
of curl-loader
lets say we use lua; we would need one script that is in control
of the main loop (option #1)
lets say the scripting language calls down to a C function that
gets the next URL, now we have
deal with asynchronous IO situation - which leads us to need of
switching stacks, coprocedures
Problems:
- well it does redo the whole concept of configuration; etc.
etc. Its not the nicest thing in terms of having to deal with two sets
of configurations (one for scripts / one without script)
- stack switching incurs memory overhead (see * 10k users is
quite a lot, but LUA)
(option #2) the alternative would be to have N scripts for each
URL and we invoke script number N upon download of url number N; now
they would all have their own script context, so no shared counters
for you. I think this solution is somewhat impractical.
- possible optimization is not possible; with scripting language in
control we have to remember each incoming HTTP header, just in case
that the script will check presence/content of this HTTP header in the
future; with my proposal you see what headers are accessed, so no need
to remember them all; if no request body is requested then we don't
need to store request body at all !
On 7/4/07, Aleksandar Lazic <al-...@no...> wrote:
> On Mit 04.07.2007 11:12, Robert Iakobashvili wrote:
> >On 7/4/07, Michael Moser < mos...@gm...> wrote:
> >> Proposal for limited scripting facility in curl-loader
> >
> >Great!
>
> Yep, but what is wrong with one of the allready exists embeddable
> Languages?!
>
> lua
> neko
> perl
> python
> .
> .
> .
>
> BR
>
> Aleks
>
--
Sincerely,
Robert Iakobashvili,
coroberti %x40 gmail %x2e com
...........................................................
http://curl-loader.sourceforge.net
A web testing and traffic generation tool.
|