HTTPS vs HTTP memory usage

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
0 Likes
1 Solution
Anonymous
Not applicable
Here is some additional http/https info about stack usage with/without printf usage.

ThreadX-NetX_Duo

http without prints uses: 2103 bytes

https without prints uses: 4375 bytes

https with prints uses: 5519 bytes

FreeRTOS-LwIP

http without prints uses: 2088 bytes

https without prints uses: 4056 bytes

https with prints uses: 5200 bytes

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable
Using the https_client application with FreeRTOS-LwIP, see the following results:

  1. Using HTTP+TLS and printf required 5200 bytes of stack space
  2. Using HTTP+TLS without printf() required 4056 bytes of stack space
  3. Using HTTP only required 2088 bytes of stack space

The cost of adding TLS to a HTTP connection of a simple application is an extra 1968 of stack space and temporarily 5428 bytes of heap space.
0 Likes
Anonymous
Not applicable
Here is some additional http/https info about stack usage with/without printf usage.

ThreadX-NetX_Duo

http without prints uses: 2103 bytes

https without prints uses: 4375 bytes

https with prints uses: 5519 bytes

FreeRTOS-LwIP

http without prints uses: 2088 bytes

https without prints uses: 4056 bytes

https with prints uses: 5200 bytes
0 Likes