Commit graph

13 commits

Author SHA1 Message Date
Joakim Frostegård
597a2a83d1 aquatic http protocol: add quickcheck test for urlencode/decode 20 bytes 2020-07-21 00:36:34 +02:00
Joakim Frostegård
909f0edce9 aquatic http protocol: move urlencode fns to utils module, clean up 2020-07-21 00:20:10 +02:00
Joakim Frostegård
8fea96bcd2 aquatic http protocol: request parsing: remove hashmap for performance
request-from-bytes:

time:   [720.22 ns 723.34 ns 726.73 ns]
change: [-53.265% -52.884% -52.477%] (p = 0.00 < 0.01)

Performance has improved.
2020-07-21 00:11:53 +02:00
Joakim Frostegård
dae83a1835 aquatic http protocol: ScrapeRequest::to_bytes(): use urlencode_20_bytes 2020-07-20 22:35:08 +02:00
Joakim Frostegård
b7d5a12046 aquatic http protocol: optimize request parsing
request-from-bytes:

time:   [1.5288 us 1.5362 us 1.5441 us]
change: [-38.029% -37.466% -36.890%] (p = 0.00 < 0.01)
Performance has improved.
2020-07-20 22:13:42 +02:00
Joakim Frostegård
114b8007e1 aquatic http procotol: rewite Request::from_bytes, test it 2020-07-20 21:13:48 +02:00
Joakim Frostegård
ea4b560faa aquatic_http_protocol: add benchmark for request from bytes 2020-07-20 20:27:42 +02:00
Joakim Frostegård
95e25710dc aquatic_http: move request parsing into protocol crate 2020-07-20 20:13:56 +02:00
Joakim Frostegård
2521c89109 aquatic http protocol: Response::from_bytes: set to unimplemented!() 2020-07-20 18:32:07 +02:00
Joakim Frostegård
45940a05a9 http load test and protocol: cut down on allocations a bit 2020-07-20 17:23:40 +02:00
Joakim Frostegård
da3b2bcd8c WIP: cleanup aquatic_http_load_test and aquatic_http_protocol 2020-07-20 14:50:19 +02:00
Joakim Frostegård
d1e9d24773 WIP: work on http load test (now partly working) and http protocol 2020-07-20 14:30:36 +02:00
Joakim Frostegård
4ac2012a2a aquatic_http: move protocol module to new crate aquatic_http_protocol 2020-07-19 21:59:31 +02:00