Esempio n. 1
0
 def pre_benchmark_run(self) -> None:
     """
     For benchmarking purpose, downloading a file from the internet is too much throughput limited. We fallback to
     a big file created on our disk
     """
     path = create_big_file(1024 * 15)
     self.cmd = self.cmd.rsplit(" ", 1)[0] + " file://{}".format(path)
Esempio n. 2
0
 def pre_benchmark_run(self) -> None:
     """
     For benchmarking purpose, downloading a file from the internet is too much throughput limited. We fallback to
     a big file created on our disk
     """
     path = create_big_file(1024*15)
     self.cmd = self.cmd.rsplit(" ", 1)[0] + " file://{}".format(path)
Esempio n. 3
0
 def pre_benchmark_run(self) -> None:
     """
     For benchmarking purpose, we need a much bigger file for this. Let's create one and replace it in the command
     """
     path = create_big_file(2048)
     self.cmd = self.cmd.replace(self.file, path)