|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1740263 ] Efficiency loss in 7.16.2
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 20 Jun 2007 14:36:36 -0700
Bugs item #1740263, was opened at 2007-06-20 12:32
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
Previous version that worked OK:
Current version showing signs of inefficiency:
Config file contents:
Using 7.15.5 it took 4 seconds to dispatch 235 HTTP requests to a local HTTP server, using 0.54 seconds of CPU time.
7.16.2 took 30 seconds and 18.8 seconds of CPU time with the same list of URLs.
I found this as I use cURL to dispatch large lists of URLs to a local HTTP filtering proxy, and noticed that using 7.16.2 the request speed gets progressively slower.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
I can confirm it and repeat it with the current CVS...
I wrote up two perl scripts for this. The first one (stamdiff.pl) is good
#!/usr/bin/perl
while(<STDIN>) {
printf "REL: %.3f %s\n", $now-$prev, $rest;
$prev = $now;
And the other for running a test with 500 URLs:
#!/usr/bin/perl
$a = sprintf "localhost " x 500;
system("curl --trace-time --trace-ascii dump $a");
Then, after having run the script we can see the increasing delta-times
./stampdiff.pl < dump | grep Re-using
Using your dumps as input also shows that a fine relative time should be
----------------------------------------------------------------------
Comment By: Adam Piggott (proactivesvcs)
Message:
File Added: tracelogs.zip
----------------------------------------------------------------------
Comment By: Adam Piggott (proactivesvcs)
Message:
Taking times from each quarter-way though the log files it's evident the
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
30 seconds sounds excessive indeed. Did you try -v or --trace-ascii
I've not seen anyone else report this and I don't know of anything in
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info