예제 #1
0
파일: trigger.py 프로젝트: taolee/bugbase
 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)
예제 #2
0
파일: trigger.py 프로젝트: AmesianX/bugbase
 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)
예제 #3
0
파일: trigger.py 프로젝트: taolee/bugbase
 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)