Lines Matching refs:count

124     def _check_downloads(self, r: ExecResult, count: int):
128 if r.exit_code != 0 or len(r.stats) != count:
135 def transfer_single(self, url: str, count: int):
136 sample_size = count
137 count = 1
148 err = self._check_downloads(r, count)
156 'count': count,
164 def transfer_serial(self, url: str, count: int):
177 err = self._check_downloads(r, count)
185 'count': count,
193 def transfer_parallel(self, url: str, count: int):
198 max_parallel = self._download_parallel if self._download_parallel > 0 else count
212 err = self._check_downloads(r, count)
220 'count': count,
228 def download_url(self, label: str, url: str, count: int):
231 'single': self.transfer_single(url=url, count=10),
233 if count > 1:
234 props['serial'] = self.transfer_serial(url=url, count=count)
235 props['parallel'] = self.transfer_parallel(url=url, count=count)
239 def downloads(self, count: int, fsizes: List[int]) -> Dict[str, Any]:
245 scores[label] = self.download_url(label=label, url=url, count=count)
248 def _check_uploads(self, r: ExecResult, count: int):
252 if r.exit_code != 0 or len(r.stats) != count:
261 def upload_single(self, url: str, fpath: str, count: int):
262 sample_size = count
263 count = 1
273 err = self._check_uploads(r, count)
281 'count': count,
289 def upload_serial(self, url: str, fpath: str, count: int):
301 err = self._check_uploads(r, count)
309 'count': count,
317 def upload_parallel(self, url: str, fpath: str, count: int):
322 max_parallel = count
334 err = self._check_uploads(r, count)
342 'count': count,
350 def upload_url(self, label: str, url: str, fpath: str, count: int):
353 'single': self.upload_single(url=url, fpath=fpath, count=10),
355 if count > 1:
356 props['serial'] = self.upload_serial(url=url, fpath=fpath, count=count)
357 props['parallel'] = self.upload_parallel(url=url, fpath=fpath, count=count)
361 def uploads(self, count: int, fsizes: List[int]) -> Dict[str, Any]:
373 count=count)
376 def do_requests(self, url: str, count: int, max_parallel: int = 1):
399 samples.append(count / r.duration.total_seconds())
408 'count': count,
415 def requests_url(self, url: str, count: int):
420 props[str(m)] = self.do_requests(url=url, count=count, max_parallel=m)
428 '10KB': self.requests_url(url=url, count=req_count),
478 score['downloads'] = self.downloads(count=download_count,
481 score['uploads'] = self.uploads(count=upload_count,
632 count = score['requests']['count']