Lines Matching refs:url
135 def transfer_single(self, url: str, count: int):
145 r = curl.http_download(urls=[url], alpn_proto=self.protocol,
164 def transfer_serial(self, url: str, count: int):
169 url = f'{url}?[0-{count - 1}]'
174 r = curl.http_download(urls=[url], alpn_proto=self.protocol,
193 def transfer_parallel(self, url: str, count: int):
199 url = f'{url}?[0-{count - 1}]'
204 r = curl.http_download(urls=[url], alpn_proto=self.protocol,
228 def download_url(self, label: str, url: str, count: int):
231 'single': self.transfer_single(url=url, count=10),
234 props['serial'] = self.transfer_serial(url=url, count=count)
235 props['parallel'] = self.transfer_parallel(url=url, count=count)
244 url = f'https://{self.env.domain1}:{self.server_port}/{fname}'
245 scores[label] = self.download_url(label=label, url=url, count=count)
261 def upload_single(self, url: str, fpath: str, count: int):
271 r = curl.http_put(urls=[url], fdata=fpath, alpn_proto=self.protocol,
289 def upload_serial(self, url: str, fpath: str, count: int):
294 url = f'{url}?id=[0-{count - 1}]'
299 r = curl.http_put(urls=[url], fdata=fpath, alpn_proto=self.protocol,
317 def upload_parallel(self, url: str, fpath: str, count: int):
323 url = f'{url}?id=[0-{count - 1}]'
328 r = curl.http_put(urls=[url], fdata=fpath, alpn_proto=self.protocol,
350 def upload_url(self, label: str, url: str, fpath: str, count: int):
353 'single': self.upload_single(url=url, fpath=fpath, count=10),
356 props['serial'] = self.upload_serial(url=url, fpath=fpath, count=count)
357 props['parallel'] = self.upload_parallel(url=url, fpath=fpath, count=count)
363 url = f'https://{self.env.domain2}:{self.server_port}/curltest/put'
372 scores[label] = self.upload_url(label=label, url=url, fpath=fpath,
376 def do_requests(self, url: str, count: int, max_parallel: int = 1):
381 url = f'{url}?[0-{count - 1}]'
393 r = curl.http_download(urls=[url], alpn_proto=self.protocol, no_save=True,
415 def requests_url(self, url: str, count: int):
420 props[str(m)] = self.do_requests(url=url, count=count, max_parallel=m)
425 url = f'https://{self.env.domain1}:{self.server_port}/reqs10.data'
428 '10KB': self.requests_url(url=url, count=req_count),