Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Edited Feature: http_listener - improve perf when listener is receiving requests with data payloads [137]

$
0
0
Testcase: client sends PUT request to the listener, each request has a data payload.
Measure the round trip time, time taken to send the request, read the data at the listener end and receiving success status code from the listener.
Casablanca performance is 1.5 times slower than HTTP.SYS
However, When the request is received at the casablanca listener side, if we do not extract the data, but instead just wait for the data to arrive (request.content_ready().wait()), casablanca performance is comparable with the other libraries. Look at the results in the last column below.
But from customer s standpoint, our measurement should include the time it takes to present the data to the customers.

Request tests Casablanca HTTP.SYS .NET Libevent Node.JS Casablanca without extract (just wait for the data, request.content_ready().wait() but do not read the data)
Request1KBPayload 10.832 6.1799 7.5234 4.9512 7.8202 8.2033
Request32KBPayload 15.154 7.7719 10.87 6.8237 9.2306 12.241
Request100KBPayload 18.8 11.121 25.344 13.125 11.242 13.445
Request tests Casablanca HTTP.SYS .NET Libevent Node.JS
Request5MBPayload 426.18 289.68 1264.5 269.73 307.3 280.88
Request300MBPayload 5248.9 0 16616 3366.7 3571 3536.2


Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>