William
Sun Jan 30 21:37:55 CST 2005
Also don't measure the first time as you don't want to include assembly load
time (xml, xmlserializer, etc) in your test or avg time. The next ones will
be much faster.
--
William Stacey, MVP
http://mvp.support.microsoft.com
"B S Wootton" <ben@nospam.com> wrote in message
news:#bJo2I0BFHA.2180@TK2MSFTNGP10.phx.gbl...
> Of course it's very dependant on the parameters you are passing. If these
> are complex types (e.g. datasets) then serialisation will be slower.
>
> Ben
>
>
> "Steve Drake" <Steve@_NOSPAM_.Drakey.co.uk> wrote in message
> news:u8j$jVjBFHA.4072@tk2msftngp13.phx.gbl...
> > serialization is quite fast, except runtime serialization on objects
like
> > datasets.
> >
> > When request is made, it goes through (i may be wrong with some of these
> > steps but you will get the picture) HTTP as a POST, IIS passes this to
> > ASP.NET, ASP.NET runs your CODE, your CODE returns data, the DATA is
> > serialized as sent to the requestor via HTTP the requestor desterilizes
> the
> > OBJECT.
> >
> > if you want to test serialization on its own, you could do some tests,
> > also..... web service in general scale better, eg one request may seam
> slow
> > but when you start adding load its starts to perform very well compared
to
> > other remote methods.
> >
> > but..... you should not use SOAP on the same server? why would you do
> this?
> >
> > Steve
> >
> >
> > "mterzich" <mterzich@discussions.microsoft.com> wrote in message
> > news:0AA869D8-6C70-463E-A31F-CFB7D55FBAB8@microsoft.com...
> > > If your saying the wire shouldn't be much of an issue, then the
> > > serialization/deserialization must be the poorest written code ever
> since
> > it
> > > adds between 1/4 and 1/2 second to the operation to transmit and
receive
> > a
> > > 4KB to 8KB data set. To me a poorly wtitten
> serialization/deserialization
> > > operation shouldn't take more than 5 ms on a 3.0 giga hertz P4
machine.
> It
> > > still sounds like it is the wire since I'm still in testing on my
> Windows
> > > 2000 Pro which is on a cable modem with 3.0Mb/128Kb external speed. At
> the
> > > 128Kb upload speed (about 12KB), that would explain the extra 1/4 to
1/2
> > > second.
> > >
> > > "ranjan.listserv@gmail.com" wrote:
> > >
> > > > On Fri, 28 Jan 2005 21:59:01 -0800, mterzich wrote:
> > > >
> > > > > Since I am using localhost in the url, I would think that the
> > performance
> > > > > shouldn't be greatly affected by line speed or is the transfer
speed
> > limited
> > > > > by the line speed even though it is internal? Any ideas why there
> > would be
> > > > > such a great difference in performance between the direct API call
> and
> > the
> > > > > http call?
> > > >
> > > > Serialization + wire(normally not noticable for a localhost address)
+
> > > > Deserialization
> > > > --
> > > >
> > > >
> > > >
http://dotnetjunkies.com/weblog/dotnut
> > > >
> >
> >
>
>