Changes in benchmark/io/http/main.cfa [53e4562:7f389a5c]
- File:
-
- 1 edited
-
benchmark/io/http/main.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/main.cfa
r53e4562 r7f389a5c 24 24 //============================================================================================= 25 25 Options options @= { 26 0, // open_flags; 27 42u, // hash_seed; 28 0, // file_cache_size; 29 false, // file_cache_list; 30 false, // procstats; 31 false, // viewhalts; 32 0 // the_cluster; 26 0, 27 42u, 28 0, 29 false, 30 false, 31 0 33 32 }; 34 33 … … 71 70 {'t', "threads", "Number of worker threads to use", nworkers}, 72 71 {'b', "accept-backlog", "Maximum number of pending accepts", backlog}, 73 {'B', "channel-size", "Maximum number of accepted connection pending", chan_size}, 74 {'S', "seed", "seed to use for hashing", options.hash_seed }, 75 {'C', "cache-size", "Size of the cache to use, if set to small, will uses closes power of 2", options.file_cache_size }, 76 {'l', "list-files", "List the files in the specified path and exit", options.file_cache_list, parse_settrue } 77 72 {'B', "channel-size", "Maximum number of accepted connection pending", chan_size} 78 73 }; 79 74 int opt_cnt = sizeof(opt) / sizeof(cfa_option); 80 75 81 76 char **left; 82 parse_args( argc, argv, opt, opt_cnt, "[OPTIONS]... [PATH]\ncforall http server", left ); 83 if( left[0] != 0p ) { 84 path = left[0]; 85 left++; 86 } 87 if( left[0] != 0p ) { 88 abort("Too many trailing arguments!\n"); 89 } 77 parse_args( argc, argv, opt, opt_cnt, "[OPTIONS] [PATH] -- cforall http server", left ); 90 78 91 79
Note:
See TracChangeset
for help on using the changeset viewer.