Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By martinayotte
#26836 Hi eldonb46,
I finish my souper, but I won't test that again tonight ... :?
Please, ZIP your sketch as is, I will try that tomorrow.
If the results are good on my side, maybe you have problem with multiple SDKs laying around.
Look at at your ~/.arduino15/packages/esp8266/hardware/esp8266/, do you more folder than the "stable" one 1.6.5-947-g39819f0 ? if so, you should delete older ones.
User avatar
By eldonb46
#26863 OK, attached is the Zip file requested.

The real interesting Speed difference is between Test5 and Test5. These tests are similar your originals except they loop over short strings.

Also, to be consistent, I think the loop count should have been 50 instead of as I have set to 30, my mistake, regardless the performance difference is the important issue.

Eldon - WA0UWH
You do not have the required permissions to view the files attached to this post.
User avatar
By martinayotte
#26864 Still not able to reproduce ... :(

Code: Select alltest5 duration = 37219, FreeHeap = 21424
test6 duration = 37749, FreeHeap = 21232
test1 duration = 5402, FreeHeap = 21040
test2 duration = 3674, FreeHeap = 21040
test3 duration = 4973, FreeHeap = 20848
test4 duration = 7449, FreeHeap = 20848
test5 duration = 35237, FreeHeap = 20656
test6 duration = 36604, FreeHeap = 20464


EDIT: I was using "stable" 1.6.5-947-g39819f0, so, in case there was a bug introduced recently in "staging", I've retried using HEAD of ESP8266WebServer from gitub. Still no able to reproduce ...
User avatar
By eldonb46
#26880
martinayotte wrote:Still not able to reproduce ... :(

EDIT: I was using "stable" 1.6.5-947-g39819f0, so, in case there was a bug introduced recently in "staging", I've retried using HEAD of ESP8266WebServer from gitub. Still no able to reproduce ...


martinayotte, and all,

OK, I think "we" fixed my problem, I was using "stable" "1.6.4-673-g8cd3697" . . . doh!

Both "server.sendContent()" and "server.client().print()" now report similar performance, for both our Tests, and my Experimental Web Server Application.

I will switch my code from "server.client().print()" functions to "server.sendContent()", if and when "sentCount" is implemented for the later.

The moral of the Story for thread followers is:
    - Check for current Revision of the Arduino IDE
    - Check for "stable" Board Manager URLs in the Arduino IDE Preferences
    - Install and Check for the current "~/.arduino/packages/esp8266/hardware/esp8266/<file>", which is installed via IDE Tools -> Board: -> Boards Manager...

martinayotte, Thanks again for the Assistance!

Eldon - WA0UWH