Changeset 56c44dc for benchmark/io/http
- Timestamp:
- Aug 28, 2020, 3:34:01 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- ce55a81
- Parents:
- 8e3034d
- Location:
- benchmark/io/http
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/main.cfa
r8e3034d r56c44dc 15 15 #include <thread.hfa> 16 16 17 #include "channel.hfa"18 17 #include "filecache.hfa" 19 18 #include "options.hfa" … … 29 28 // Globals 30 29 //============================================================================================= 31 channel & wait_connect;32 33 30 struct ServerProc { 34 31 processor self; … … 96 93 #endif 97 94 options.clopts.instance = &cl; 98 99 channel chan = { options.clopts.chan_size };100 &wait_connect = &chan;101 95 102 96 int pipe_cnt = options.clopts.nworkers * 2; -
benchmark/io/http/options.cfa
r8e3034d r56c44dc 31 31 1, // nworkers; 32 32 0, // flags; 33 10, // chan_size;34 33 false, // procstats 35 34 false, // viewhalts … … 51 50 {'t', "threads", "Number of worker threads to use", options.clopts.nworkers}, 52 51 {'b', "accept-backlog", "Maximum number of pending accepts", options.socket.backlog}, 53 {'B', "channel-size", "Maximum number of accepted connection pending", options.clopts.chan_size},54 52 {'r', "request_len", "Maximum number of bytes in the http request, requests with more data will be answered with Http Code 414", options.socket.buflen}, 55 53 {'S', "seed", "seed to use for hashing", options.file_cache.hash_seed }, -
benchmark/io/http/options.hfa
r8e3034d r56c44dc 26 26 int nworkers; 27 27 io_context_params params; 28 int chan_size;29 28 bool procstats; 30 29 bool viewhalts; -
benchmark/io/http/worker.hfa
r8e3034d r56c44dc 6 6 #include <sys/socket.h> 7 7 } 8 9 #include "channel.hfa"10 11 extern channel & wait_connect;12 8 13 9 //=============================================================================================
Note: See TracChangeset
for help on using the changeset viewer.