Quick-http: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:QuickHttp.png]]
== OVERHAUL NEEDED ==
switch it all over to the newer SWS https server model - LOTS of new goodness to share!
Overview and getting started docs are in the [https://github.com/moodboom/quick-http/blob/master/README.md README], visible on [https://github.com/moodboom/quick-http github].
Overview and getting started docs are in the [https://github.com/moodboom/quick-http/blob/master/README.md README], visible on [https://github.com/moodboom/quick-http github].


This will be for additional project notes that are worthy of sharing.
This will be for additional project notes that are worthy of sharing.


=== Performance ===
[[Quick-http Performance]]
 


I used ab for load testing on localhost using my older i5 processor with 16GB RAM.  No kernel or hardware tuning.


# test with a small page, getting 50k pages/sec
ab -c 1000 -k -r -t 10 http://localhost:8080/v1/stock/KATE/history.html
# test serving larger page on localhost, all from memory; getting 2GB/sec data throughput
ab -c 1000 -k -r -t 10 http://localhost:8080/


[[quick-httpPerformance] Full output]
== THREADING DATA-CHANGE NOTES TO REMEMBER ==
  CONTAINER CHANGES: you MUST use APIRequestCache - try to bundle them to minimize maintenance
  NO CONTAINER CHANGES: if we are writing fairly static data, change it and SET A FLAG to save it in the save loop!
  ARE STRING OPERATIONS THREAD-SAFE?  I would guess NOT!!  Shit.

Latest revision as of 17:55, 19 February 2017

QuickHttp.png

OVERHAUL NEEDED

switch it all over to the newer SWS https server model - LOTS of new goodness to share!



Overview and getting started docs are in the README, visible on github.

This will be for additional project notes that are worthy of sharing.

Quick-http Performance



THREADING DATA-CHANGE NOTES TO REMEMBER

 CONTAINER CHANGES: you MUST use APIRequestCache - try to bundle them to minimize maintenance
 NO CONTAINER CHANGES: if we are writing fairly static data, change it and SET A FLAG to save it in the save loop!
 ARE STRING OPERATIONS THREAD-SAFE?  I would guess NOT!!  Shit.