Changeset 36cc24a for benchmark/io/http/printer.cfa
- Timestamp:
- Aug 17, 2022, 4:34:10 PM (20 months ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- ff370d8
- Parents:
- 3ce3fb9 (diff), 683cc13 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/printer.cfa
r3ce3fb9 r36cc24a 2 2 #include "options.hfa" 3 3 4 #include <clock.hfa> 4 5 #include <fstream.hfa> 5 6 #include <stats.hfa> … … 22 23 to.maxfd = max( to.maxfd, from.maxfd); 23 24 to.close += from.close; from.close = 0; 25 to.error += from.error; from.error = 0; 24 26 to.calls += from.calls; from.calls = 0; 27 to.eagain += from.eagain; from.eagain = 0; 25 28 to.tries += from.tries; from.tries = 0; 26 29 to.header += from.header; from.header = 0; … … 80 83 uint64_t accp_open = this.stats.accpt.accepts; 81 84 uint64_t accp_clse = this.stats.send.close; 85 uint64_t accp_errs = this.stats.send.error; 82 86 uint64_t accp_live = accp_open - accp_clse; 83 87 88 sout | "-----" | time() | "-----"; 84 89 sout | "----- Acceptor Stats -----"; 85 sout | "accepts : " | eng3(accp_open) |"opened," | eng3(accp_clse) |"closed," | eng3(accp_live) |"live ";90 sout | "accepts : " | eng3(accp_open) |"opened," | eng3(accp_clse) |"closed," | eng3(accp_live) |"live," | eng3(accp_errs) |"errors"; 86 91 sout | "accept : " | eng3(this.stats.accpt.accepts) | "calls," | eng3(this.stats.accpt.eagains) | "eagains," | eng3(this.stats.accpt.creates) | " thrds"; 87 92 sout | nl; … … 89 94 sout | "----- Connection Stats -----"; 90 95 sout | "max fd : " | this.stats.send.maxfd; 91 sout | "sendfile : " | eng3(calls) | "calls," | eng3(tries) | "tries (" | ratio | " try/call) ";96 sout | "sendfile : " | eng3(calls) | "calls," | eng3(tries) | "tries (" | ratio | " try/call)," | eng3(this.stats.send.eagain) | "eagains"; 92 97 sout | " " | eng3(header) | "header," | eng3(splcin) | "splice in," | eng3(splcot) | "splice out"; 93 sout | " - zipf sizes:";94 for(i; zipf_cnts) {95 double written = avgrd[i].calls > 0 ? ((double)avgrd[i].bytes) / avgrd[i].calls : 0;96 sout | " " | zipf_sizes[i] | "bytes," | avgrd[i].calls | "shorts," | written | "written";97 }98 // sout | " - zipf sizes:"; 99 // for(i; zipf_cnts) { 100 // double written = avgrd[i].calls > 0 ? ((double)avgrd[i].bytes) / avgrd[i].calls : 0; 101 // sout | " " | zipf_sizes[i] | "bytes," | avgrd[i].calls | "shorts," | written | "written"; 102 // } 98 103 } 99 104
Note: See TracChangeset
for help on using the changeset viewer.