Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 15 of 15) sorted by relevance

/curl/tests/http/
H A Dtest_06_eyeballs.py52 assert r.stats[0]['http_version'] == '3'
71 assert r.stats[0]['http_version'] == '2'
81 assert r.stats[0]['http_version'] == '1.1'
89 assert r.stats[0]['time_connect'] > 0.0
90 assert r.stats[0]['time_appconnect'] > 0.0
100 assert r.stats[0]['time_connect'] > 0.0 # was tcp connected
101 assert r.stats[0]['time_appconnect'] == 0 # but not SSL verified
111 assert r.stats[0]['time_connect'] == 0 # no one should have listened
112 assert r.stats[0]['time_appconnect'] == 0 # did not happen either
H A Dtest_04_stuttered.py81 t_avg, i_min, t_min, i_max, t_max = self.stats_spread(r.stats[warmups:], 'time_total')
103 t_avg, i_min, t_min, i_max, t_max = self.stats_spread(r.stats[warmups:], 'time_total')
125 t_avg, i_min, t_min, i_max, t_max = self.stats_spread(r.stats[warmups:], 'time_total')
129 def stats_spread(self, stats: List[Dict], key: str) -> Tuple[float, int, float, int, float]:
135 for idx, s in enumerate(stats):
144 return stotals/len(stats), i_min, s_min, i_max, s_max
H A Dtest_05_errors.py65 for idx, s in enumerate(r.stats):
87 assert len(r.stats) == count, f'did not get all stats: {r}'
89 for idx, s in enumerate(r.stats):
108 assert r.stats[0]['http_version'] == '1.1', r.dump_logs()
H A Dtest_03_goaway.py73 for idx, s in enumerate(r.stats):
110 for idx, s in enumerate(r.stats):
141 for idx, s in enumerate(r.stats):
H A Dtest_16_info.py65 for idx, s in enumerate(r.stats):
82 for idx, s in enumerate(r.stats):
102 for idx, s in enumerate(r.stats):
114 for idx, s in enumerate(r.stats):
H A Dtest_12_reuse.py100 for s in r.stats:
122 for s in r.stats:
146 for s in r.stats:
H A Dscorecard.py91 if r.exit_code == 0 and len(r.stats) == 1:
92 c_samples.append(r.stats[0]['time_connect'])
93 hs_samples.append(r.stats[0]['time_appconnect'])
128 if r.exit_code != 0 or len(r.stats) != count:
130 fails = [s for s in r.stats if s['response_code'] != 200]
252 if r.exit_code != 0 or len(r.stats) != count:
254 fails = [s for s in r.stats if s['response_code'] != 200]
277 total_size = sum([s['size_upload'] for s in r.stats])
305 total_size = sum([s['size_upload'] for s in r.stats])
595 stats = size_score[m]["stats"]
[all …]
H A Dtest_01_basic.py100 assert r.stats[0]['time_connect'] > 0, f'{r.stats[0]}'
101 assert r.stats[0]['time_appconnect'] > 0, f'{r.stats[0]}'
118 assert r.stats[0]['size_download'] == 0, f'{r.stats[0]}'
H A Dtest_19_shutdown.py66 assert len(r.tcpdump.stats) != 0, f'Expected TCP RSTs packets: {r.tcpdump.stderr}'
84 assert len(r.tcpdump.stats) == 0, 'Unexpected TCP RSTs packets'
H A Dtest_30_vsftpd.py149 assert len(r.tcpdump.stats) == 0, 'Unexpected TCP RSTs packets'
164 assert len(r.tcpdump.stats) == 0, 'Unexpected TCP RSTs packets'
H A Dtest_07_upload.py408 assert r.stats[0]['http_version'] == '1.1', f'{r}'
625 up_speed = r.stats[0]['speed_upload']
643 up_speed = r.stats[0]['speed_upload']
/curl/tests/unit/
H A Dunit2600.c119 struct ai_family_stats *stats; member
210 ctx->stats = &current_tr->cf6; in cf_test_create()
212 curl_msprintf(ctx->id, "v6-%d", ctx->stats->creations); in cf_test_create()
213 ctx->stats->creations++; in cf_test_create()
218 ctx->stats = &current_tr->cf4; in cf_test_create()
220 curl_msprintf(ctx->id, "v4-%d", ctx->stats->creations); in cf_test_create()
221 ctx->stats->creations++; in cf_test_create()
225 if(ctx->stats->creations == 1) in cf_test_create()
226 ctx->stats->first_created = created_at; in cf_test_create()
227 ctx->stats->last_created = created_at; in cf_test_create()
/curl/tests/http/testenv/
H A Dcurl.py56 stats = [p.stats for p in profiles]
58 vals = [s[key] for s in stats]
76 def stats(self) -> Optional[Dict[str,Any]]: member in RunProfile
121 def stats(self) -> Optional[List[str]]: member in RunTcpDump
132 for line in self.stats
294 def stats(self) -> List: member in ExecResult
299 if len(self.stats):
301 for stat in self.stats:
344 assert len(self.stats) == count, \
394 assert len(self.stats) == count, \
[all …]
/curl/
H A D.gitignore28 /stats/
/curl/docs/
H A DKNOWN_BUGS196 -T stats the path to figure out its size in bytes to use it as Content-Length

Completed in 34 milliseconds