code
stringlengths
66
870k
docstring
stringlengths
19
26.7k
func_name
stringlengths
1
138
language
stringclasses
1 value
repo
stringlengths
7
68
path
stringlengths
5
324
url
stringlengths
46
389
license
stringclasses
7 values
def Run(spec: benchmark_spec.BenchmarkSpec) -> List[sample.Sample]: """Measure the stop and start times for the VMs. Args: spec: The benchmark specification. Returns: An empty list (all samples will be added later). """ samples = [] samples.extend(_MeasureStop(spec.vms)) samples.extend(_MeasureS...
Measure the stop and start times for the VMs. Args: spec: The benchmark specification. Returns: An empty list (all samples will be added later).
Run
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/vm_stop_start_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/vm_stop_start_benchmark.py
Apache-2.0
def Prepare(bm_spec: benchmark_spec.BenchmarkSpec) -> None: """Install and set up XGBoost on the target vm. Args: bm_spec: The benchmark specification """ vm = bm_spec.vms[0] if _USE_GPU.value: vm.Install('cuda_toolkit') vm.RemoteCommand('git clone https://github.com/ray-project/xgboost_ray.git') ...
Install and set up XGBoost on the target vm. Args: bm_spec: The benchmark specification
Prepare
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/xgboost_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/xgboost_benchmark.py
Apache-2.0
def Run(bm_spec: benchmark_spec.BenchmarkSpec) -> List[sample.Sample]: """Run XGBoost on the cluster. Args: bm_spec: The benchmark specification Returns: A list of sample.Sample objects. """ vm = bm_spec.vms[0] cmd = [ FLAGS.xgboost_env, 'python3', 'xgboost_ray/xgboost_ray/tests/...
Run XGBoost on the cluster. Args: bm_spec: The benchmark specification Returns: A list of sample.Sample objects.
Run
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/xgboost_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/xgboost_benchmark.py
Apache-2.0
def GetConfig(user_config: Dict[Any, Any]) -> Dict[Any, Any]: """Merge BENCHMARK_CONFIG with user_config to create benchmark_spec. Args: user_config: user-define configs (through FLAGS.benchmark_config_file or FLAGS.config_override). Returns: merged configs """ config = configs.LoadConfig(BENC...
Merge BENCHMARK_CONFIG with user_config to create benchmark_spec. Args: user_config: user-define configs (through FLAGS.benchmark_config_file or FLAGS.config_override). Returns: merged configs
GetConfig
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/combo_benchmarks/fio_netperf_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/combo_benchmarks/fio_netperf_benchmark.py
Apache-2.0
def Prepare(benchmark_spec: bm_spec.BenchmarkSpec) -> None: """Prepare both benchmarks on the target vm. Args: benchmark_spec: The benchmark specification. """ min_test_length = min( FLAGS.netperf_test_length * len(FLAGS.netperf_num_streams), FLAGS.fio_runtime * len(FLAGS.fio_generate_scenarios...
Prepare both benchmarks on the target vm. Args: benchmark_spec: The benchmark specification.
Prepare
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/combo_benchmarks/fio_netperf_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/combo_benchmarks/fio_netperf_benchmark.py
Apache-2.0
def Run(benchmark_spec: bm_spec.BenchmarkSpec) -> List[sample.Sample]: """Runs both benchmarks in parallel. Args: benchmark_spec: The benchmark specification. Returns: A list of sample.Sample objects with the performance results. Raises: RunError: A run-stage error raised by an individual benchma...
Runs both benchmarks in parallel. Args: benchmark_spec: The benchmark specification. Returns: A list of sample.Sample objects with the performance results. Raises: RunError: A run-stage error raised by an individual benchmark.
Run
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/combo_benchmarks/fio_netperf_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/combo_benchmarks/fio_netperf_benchmark.py
Apache-2.0
def FillDevice(vm, disk, fill_size, exec_path): """Fill the given disk on the given vm up to fill_size. Args: vm: a linux_virtual_machine.BaseLinuxMixin object. disk: a disk.BaseDisk attached to the given vm. fill_size: amount of device to fill, in fio format. exec_path: string path to the fio exec...
Fill the given disk on the given vm up to fill_size. Args: vm: a linux_virtual_machine.BaseLinuxMixin object. disk: a disk.BaseDisk attached to the given vm. fill_size: amount of device to fill, in fio format. exec_path: string path to the fio executable
FillDevice
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def GetScenarioFromScenarioString(scenario_string): """Extract rwkind,blocksize,size from scenario string.""" # look for legacy entries in the scenario map first result = ( SCENARIOS.get(scenario_string, None) if fio_flags.FIO_USE_DEFAULT_SCENARIOS.value else None ) if result: # return a...
Extract rwkind,blocksize,size from scenario string.
GetScenarioFromScenarioString
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def GenerateJobFileString( filename: str, scenario_strings: list[str], io_depths: list[int] | None, num_jobs: list[int] | None, working_set_size: int | None, block_size: Any, runtime: int, ramptime: int, direct: bool, parameters: list[str], raw_files: list[str], require_m...
Make a string with our fio job file. Args: filename: the file or disk we pre-filled, if any. scenario_strings: list of strings with names in SCENARIOS. io_depths: iterable of integers. The IO queue depths to test. num_jobs: iterable of integers. The number of fio processes to test. working_set_si...
GenerateJobFileString
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def ProcessedJobFileString(fio_jobfile_contents, remove_filename): """Modify the fio job if requested. Args: fio_jobfile_contents: the contents of a fio job file. remove_filename: bool. If true, remove the filename parameter from the job file. Returns: The job file as a string, possibly withou...
Modify the fio job if requested. Args: fio_jobfile_contents: the contents of a fio job file. remove_filename: bool. If true, remove the filename parameter from the job file. Returns: The job file as a string, possibly without filename parameters.
ProcessedJobFileString
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def GetOrGenerateJobFileString( job_file_path, scenario_strings, against_device, disks, io_depths, num_jobs, working_set_size, block_size, runtime, ramptime, direct, parameters, job_file_contents, require_merge, ): """Get the contents of the fio job file we're w...
Get the contents of the fio job file we're working with. This will either read the user's job file, if given, or generate a new one. Args: job_file_path: string or None. The path to the user's job file, if provided. scenario_strings: list of strings or None. The workload scenarios to generate. ...
GetOrGenerateJobFileString
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def WarnOnBadFlags(): """Warn the user if they pass bad flag combinations.""" if fio_flags.FIO_JOBFILE.value: ignored_flags = { '--' + flag_name for flag_name in fio_flags.FLAGS_IGNORED_FOR_CUSTOM_JOBFILE if FLAGS[flag_name].present } if ignored_flags: logging.warning( ...
Warn the user if they pass bad flag combinations.
WarnOnBadFlags
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def Prepare(benchmark_spec): """Prepare VM's in benchmark_spec to run FIO. Args: benchmark_spec: The benchmarks specification. """ exec_path = fio.GetFioExec() vms = benchmark_spec.vms background_tasks.RunThreaded(lambda vm: PrepareWithExec(vm, exec_path), vms)
Prepare VM's in benchmark_spec to run FIO. Args: benchmark_spec: The benchmarks specification.
Prepare
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def PrepareWithExec(vm, exec_path): """Prepare the virtual machine to run FIO. This includes installing fio, bc, and libaio1 and pre-filling the attached disk. We also make sure the job file is always located at the same path on the local machine. Args: vm: The virtual machine to prepare the be...
Prepare the virtual machine to run FIO. This includes installing fio, bc, and libaio1 and pre-filling the attached disk. We also make sure the job file is always located at the same path on the local machine. Args: vm: The virtual machine to prepare the benchmark on. exec_path: string path to...
PrepareWithExec
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def RunFioOnVMs(vms): """Spawn fio on vm(s) and gather results. Args: vms: A list of VMs to run FIO on. Returns: A list of sample.Sample objects. """ fio_exe = fio.GetFioExec() default_job_file_contents = GetFileAsString(data.ResourcePath('fio.job')) samples = [] path = REMOTE_JOB_FILE_PATH ...
Spawn fio on vm(s) and gather results. Args: vms: A list of VMs to run FIO on. Returns: A list of sample.Sample objects.
RunFioOnVMs
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def RunWithExec( vm, exec_path, remote_job_file_path, job_file_contents, fio_generate_scenarios=None, ): """Spawn fio and gather the results. Used by Windows FIO as well. Args: vm: vm to run the benchmark on. exec_path: string path to the fio executable. remote_job_file_path: path, ...
Spawn fio and gather the results. Used by Windows FIO as well. Args: vm: vm to run the benchmark on. exec_path: string path to the fio executable. remote_job_file_path: path, on the vm, to the location of the job file. job_file_contents: string contents of the fio job file. fio_generate_scenarios...
RunWithExec
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_benchmark.py
Apache-2.0
def Run(spec: benchmark_spec.BenchmarkSpec) -> list[sample.Sample]: """Runs FIO benchmark with latency SLA.""" vm = spec.vms[0] iodepth = 50 numjobs = 2 * vm.num_cpus ValidateDefaultIODepthAndNumjobs( vm, iodepth, numjobs ) benchmark_params = { 'latency_target': fio_flags.FIO_LATENCY_TARGET.va...
Runs FIO benchmark with latency SLA.
Run
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_latency_sla_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_latency_sla_benchmark.py
Apache-2.0
def ValidateDefaultIODepthAndNumjobs(vm, iodepth, numjobs): """Run FIO benchmark to make sure iodepth and numjobs are enough for to max IOPS under latency SLA.""" benchmark_params = { 'iodepth': iodepth, 'numjobs': numjobs, 'runtime': 10 } job_file_str = utils.GenerateJobFile( vm.scratch...
Run FIO benchmark to make sure iodepth and numjobs are enough for to max IOPS under latency SLA.
ValidateDefaultIODepthAndNumjobs
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_latency_sla_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_latency_sla_benchmark.py
Apache-2.0
def GetFioParameters(self, scenario_string, benchmark_params): """Parses the scenario string and returns the fio parameters. Args: scenario_string: The scenario string to parse. benchmark_params: Parameters set by the benchmark. Returns: A tuple containing the rwkind, blocksize, workings...
Parses the scenario string and returns the fio parameters. Args: scenario_string: The scenario string to parse. benchmark_params: Parameters set by the benchmark. Returns: A tuple containing the rwkind, blocksize, workingset, and extra parameters.
GetFioParameters
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_scenario_parser.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_scenario_parser.py
Apache-2.0
def GetScenarioFromScenarioStringAndParams( self, scenario_string, benchmark_params ): """Generate Scenario from scenario string and benchmark parameters.""" fio_parameters = self.GetFioParameters(scenario_string, benchmark_params) # required fields of JOB_FILE_TEMPLATE result = { 'rwkin...
Generate Scenario from scenario string and benchmark parameters.
GetScenarioFromScenarioStringAndParams
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/fio_scenario_parser.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/fio_scenario_parser.py
Apache-2.0
def ParseJobFile(job_file, merge=False): """Parse fio job file as dictionaries of sample metadata. Args: job_file: The contents of fio job file. merge: whether the job files need to be merged later. Returns: A dictionary of dictionaries of sample metadata, using test name as keys, dictionari...
Parse fio job file as dictionaries of sample metadata. Args: job_file: The contents of fio job file. merge: whether the job files need to be merged later. Returns: A dictionary of dictionaries of sample metadata, using test name as keys, dictionaries of sample metadata as value.
ParseJobFile
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/result_parser.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/result_parser.py
Apache-2.0
def ParseResults( job_file, fio_json_result, base_metadata=None, skip_latency_individual_stats=False, require_merge=False, ): """Parse fio json output into samples. Args: job_file: The contents of the fio job file. fio_json_result: Fio results in json format. base_metadata: Extra me...
Parse fio json output into samples. Args: job_file: The contents of the fio job file. fio_json_result: Fio results in json format. base_metadata: Extra metadata to annotate the samples with. skip_latency_individual_stats: Bool. If true, skips pulling latency stats that are not aggregate. re...
ParseResults
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/result_parser.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/result_parser.py
Apache-2.0
def GenerateJobFile( disks, scenarios_list, benchmark_params=None, job_file='fio-parent.job', ): """Generates a fio job file based on the provided disks and flags. Args: disks: A list of disk objects. scenarios_list: A list of scenario strings. benchmark_params: A dict for fio test spec...
Generates a fio job file based on the provided disks and flags. Args: disks: A list of disk objects. scenarios_list: A list of scenario strings. benchmark_params: A dict for fio test specific parameters. job_file: The name of the job file. Returns: A string containing the contents of the fio j...
GenerateJobFile
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/utils.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/utils.py
Apache-2.0
def Prefill(vm, exec_path): """Prefills the target device or file on the given VM.""" if len(vm.scratch_disks) > 1 and not AgainstDevice(): raise errors.Setup.InvalidSetupError( f'Target mode {fio_flags.FIO_TARGET_MODE.value} tests against 1 file, ' 'but multiple scratch disks are configured.' ...
Prefills the target device or file on the given VM.
Prefill
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/utils.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/utils.py
Apache-2.0
def MountDisk(vm): """Mounts Disks for fio. Args: vm: a linux_virtual_machine.BaseLinuxMixin object. """ # We only need to format and mount if the target mode is against # file with fill because 1) if we're running against the device, we # don't want it mounted and 2) if we're running against a file ...
Mounts Disks for fio. Args: vm: a linux_virtual_machine.BaseLinuxMixin object.
MountDisk
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/utils.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/utils.py
Apache-2.0
def RunTest(vm, exec_path, job_file_string): """Runs the fio test on the VM using the provided executable path. Args: vm: a linux_virtual_machine.BaseLinuxMixin object. exec_path: string path to the fio executable. job_file_string: string content of the fio job file. Returns: A list of sample.Sa...
Runs the fio test on the VM using the provided executable path. Args: vm: a linux_virtual_machine.BaseLinuxMixin object. exec_path: string path to the fio executable. job_file_string: string content of the fio job file. Returns: A list of sample.Sample objects.
RunTest
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/fio/utils.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/fio/utils.py
Apache-2.0
def Prepare(bm_spec: benchmark_spec.BenchmarkSpec): """Provision container, because it's not handled by provision stage.""" cluster = bm_spec.container_cluster assert cluster container = bm_spec.container_specs[SPEC_NAME] logging.info('Deploying container with image %s', container.image) cluster.DeployConta...
Provision container, because it's not handled by provision stage.
Prepare
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_container_cluster_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_container_cluster_benchmark.py
Apache-2.0
def _BenchmarkClusterResize( cluster: container_service.KubernetesCluster, ) -> List[sample.Sample]: """Time resizing the cluster. Rather than manually creating a pod like when provisioned, deploy a daemonset before the resize and read from logs how how long it takes the daemonset to add the pod. Args: ...
Time resizing the cluster. Rather than manually creating a pod like when provisioned, deploy a daemonset before the resize and read from logs how how long it takes the daemonset to add the pod. Args: cluster: The cluster to test resizing. Returns: The samples timing the cluster resize.
_BenchmarkClusterResize
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_container_cluster_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_container_cluster_benchmark.py
Apache-2.0
def _GetKeyScalingEventTimes( cluster: container_service.KubernetesCluster, new_node: str, new_pod: str ) -> dict[str, float]: """Extract the time of each known milestone.""" events = cluster.GetEvents() node_events = list( event for event in events if event.resource.kind == 'Node' and event...
Extract the time of each known milestone.
_GetKeyScalingEventTimes
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_container_cluster_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_container_cluster_benchmark.py
Apache-2.0
def DetachDisks(vm: linux_virtual_machine.BaseLinuxVirtualMachine): """Detaches all the disks from the virtual machine. Args: vm: Virtual Machine details Returns: time to detach all the disks from the virtual machine. """ vm_detach_disk_strategy = disk_strategies.DetachDiskStrategy(vm) detach_star...
Detaches all the disks from the virtual machine. Args: vm: Virtual Machine details Returns: time to detach all the disks from the virtual machine.
DetachDisks
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_disk_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_disk_benchmark.py
Apache-2.0
def _CreateJobsAndWait( cluster: container_service.KubernetesCluster, batch_name: str, jobs: int ) -> None: """Creates jobs and waits for all pods to be running.""" logging.info( "Creating batch '%s' of %d jobs, each job running in a separate node in a" " separate node pools", batch_name, ...
Creates jobs and waits for all pods to be running.
_CreateJobsAndWait
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
Apache-2.0
def _AssertNodes( cluster: container_service.KubernetesCluster, initial_nodes: int, added_nodes: int, ) -> None: """Asserts expected number of nodes in the cluster.""" nodes = len(cluster.GetNodeNames()) if nodes < added_nodes: raise ValueError( "Cluster has %d nodes, but expected >=%d)" %...
Asserts expected number of nodes in the cluster.
_AssertNodes
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
Apache-2.0
def _AssertNodePools( cluster: container_service.KubernetesCluster, intital_node_pools: int, added_node_pools: int, ) -> None: """Asserts expected number of node pools in the cluster.""" node_pools = len(cluster.GetNodePoolNames()) if node_pools < added_node_pools: raise ValueError( "Clust...
Asserts expected number of node pools in the cluster.
_AssertNodePools
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
Apache-2.0
def _CreateNodePools( cluster: container_service.KubernetesCluster, batch_name: str, node_pools_to_add: int, ) -> List[sample.Sample]: """Creates node pools and measures the time it takes to provision them.""" nodes_before = len(cluster.GetNodeNames()) nodes_pools_before = len(cluster.GetNodePoolNames...
Creates node pools and measures the time it takes to provision them.
_CreateNodePools
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
Apache-2.0
def Run(benchmark_spec: bm_spec.BenchmarkSpec) -> List[sample.Sample]: """Runs the node pools provisioning benchmark.""" cluster = benchmark_spec.container_cluster samples = [] start = time.monotonic() if INIT_BATCH_SIZE.value > 0: samples += _CreateNodePools(cluster, INIT_BATCH_NAME, INIT_BATCH_SIZE.valu...
Runs the node pools provisioning benchmark.
Run
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/provisioning_benchmarks/provision_node_pools_benchmark.py
Apache-2.0
def _Install(vm): """Installs the act on the VM.""" vm.Install('build_tools') vm.Install('openssl') vm.RemoteCommand('git clone {} {}'.format(GIT_REPO, ACT_DIR)) vm.RemoteCommand( 'cd {} && git checkout {} && make'.format(ACT_DIR, ACT_COMMIT) )
Installs the act on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/act.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/act.py
Apache-2.0
def RunActPrep(vm): """Runs actprep binary to initialize the drive.""" def _RunActPrep(device): vm.RobustRemoteCommand( 'cd {} && sudo ./target/bin/act_prep {}'.format( ACT_DIR, device.GetDevicePath() ) ) assert ( len(vm.scratch_disks) > FLAGS.act_reserved_partitions ...
Runs actprep binary to initialize the drive.
RunActPrep
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/act.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/act.py
Apache-2.0
def PrepActConfig(vm, load, index=None): """Prepare act config file at remote VM.""" if index is None: disk_lst = vm.scratch_disks # Treat first few partitions as reserved. disk_lst = disk_lst[FLAGS.act_reserved_partitions :] config_file = 'actconfig_{}.txt'.format(load) else: disk_lst = [vm.s...
Prepare act config file at remote VM.
PrepActConfig
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/act.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/act.py
Apache-2.0
def RunAct(vm, load, index=None): """Runs act binary with provided config.""" if index is None: config = 'actconfig_{}.txt'.format(load) output = 'output_{}'.format(load) act_config_metadata = {'device_index': 'all'} else: config = 'actconfig_{}_{}.txt'.format(index, load) output = 'output_{}_...
Runs act binary with provided config.
RunAct
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/act.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/act.py
Apache-2.0
def ParseRunAct(out): """Parse act output. Raw output format: reads %>(ms) slice 1 2 4 rate ----- ------ ------ ------ ---------- 1 0.00 0.00 0.00 6000.0 2 0.00 0.00 0.00 6000.0 3 0.01 0.00 0.00 6000.0 ----- ...
Parse act output. Raw output format: reads %>(ms) slice 1 2 4 rate ----- ------ ------ ------ ---------- 1 0.00 0.00 0.00 6000.0 2 0.00 0.00 0.00 6000.0 3 0.01 0.00 0.00 6000.0 ----- ------ ------ ------ ------...
ParseRunAct
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/act.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/act.py
Apache-2.0
def IsRunComplete(samples): """Decides if the run is able to complete (regardless of latency).""" for s in samples: if s.metric == 'Failed:NotEnoughSample': return False if 'ERROR' in s.metadata: return False return True
Decides if the run is able to complete (regardless of latency).
IsRunComplete
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/act.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/act.py
Apache-2.0
def _Install(vm): """Installs the aerospike client on the VM.""" if FLAGS.os_type not in AEROSPIKE_TOOL_VERSION_NAME_FOR_OS: raise ValueError( f'Unsupported OS type: {FLAGS.os_type}. Supported OS types are: ' + ', '.join(AEROSPIKE_TOOL_VERSION_NAME_FOR_OS.keys()) ) path = PATH_FORMATTER % ...
Installs the aerospike client on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def ParseAsbenchStdout(output): """Parse output produced by asbench. Output format: port: 3000 user: (null) services-alternate: false ... 2022-07-26 21:27:59.941 INFO Add node BB97300800A0142 10.128.0.115:3000 2022-07-26 21:27:59.943 INFO Start 128 transaction th...
Parse output produced by asbench. Output format: port: 3000 user: (null) services-alternate: false ... 2022-07-26 21:27:59.941 INFO Add node BB97300800A0142 10.128.0.115:3000 2022-07-26 21:27:59.943 INFO Start 128 transaction threads Stage 1: default config (spec...
ParseAsbenchStdout
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def _ParseHdrLines( lines: str, line_idx: int, samples: List[sample.Sample], metadata: dict[str, float], namespace: str, op: str, ): """Parse a hdr line generated by asbench.""" # Each line formatted as: # hdr: operation datetime time_window (or seconds-running in the newer version # ), ...
Parse a hdr line generated by asbench.
_ParseHdrLines
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def _ParseMetadata(line: str): """Parse metadata from a hdr line generated by asbench. Args: line: the line to parse. Returns: A dictionary of metadata, or empty if parsing fails. """ # Each line formatted as: # hdr: operation datetime time_window (or seconds-running in the newer version # ), #r...
Parse metadata from a hdr line generated by asbench. Args: line: the line to parse. Returns: A dictionary of metadata, or empty if parsing fails.
_ParseMetadata
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def AggregateAsbenchSamples(raw_samples): """Aggregate samples across client VMs. Args: raw_samples: List of sample.Sample object. Each sample produced by a different vm for a particular window. Returns: A list of sample.Sample objects. """ aggregated_samples = {} for s in raw_samples: #...
Aggregate samples across client VMs. Args: raw_samples: List of sample.Sample object. Each sample produced by a different vm for a particular window. Returns: A list of sample.Sample objects.
AggregateAsbenchSamples
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def ParseHistogramLine(line: str) -> HistogramLine: """Parse a single histogram line generated by asbench.""" # A sample line # write_hist 2023-03-22T23:33:13Z, 1.0001s, 1040, 0:330, 100:262, 500:9 values = line.split() op = values[0].split('_')[0] time = ParseDate(values[1][:-1]) duration = float(values[...
Parse a single histogram line generated by asbench.
ParseHistogramLine
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def ParseHistogramFile( output: str, histograms: collections.OrderedDict[Any, Any], timestamps: dict[int, datetime.date], ) -> None: """Parse a single histogram file generated by asbench. Args: output: String. Output from histogram file. histograms: Dict. A dictionary of histograms parsed. ...
Parse a single histogram file generated by asbench. Args: output: String. Output from histogram file. histograms: Dict. A dictionary of histograms parsed. timestamps: Dict, A dictionary to keep track of the timestamps.
ParseHistogramFile
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def ParseAsbenchHistogramTimeSeries(output: str) -> List[HistogramLine]: """Generate Percentile Time Series from histogram output. Args: output: Output from histogram file. Returns: List of histogram. """ result_lines = _ExtractResultLines(output.splitlines()) histogram_time_series = [] for line ...
Generate Percentile Time Series from histogram output. Args: output: Output from histogram file. Returns: List of histogram.
ParseAsbenchHistogramTimeSeries
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def GenerateDetailHistogramSamples( histograms: collections.OrderedDict[Any, Any], start_datetime: datetime.datetime, ) -> List[sample.Sample]: """Generate Histogram samples based on histograms.""" samples = [] for window, op in histograms: metric = f'{op}_histogram' samples.append( sample...
Generate Histogram samples based on histograms.
GenerateDetailHistogramSamples
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def GetMaxLatencyGivenBucket(bucket: int) -> int: """Get the maximum latency of a given bucket.""" # https://docs.aerospike.com/tools/asbench if bucket < 4000: return bucket + 100 elif bucket < 64000: return bucket + 1000 else: return bucket + 4000
Get the maximum latency of a given bucket.
GetMaxLatencyGivenBucket
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def CalculatePercentileFromHistogram( histogram: collections.OrderedDict[Any, Any], percentile: float ) -> int: """Get the latency from a histogram on a given percentile.""" total_count = sum(histogram.values()) index_given_percentile = int(percentile * total_count / 100.0 + 0.5) latency_buckets = sorted(hi...
Get the latency from a histogram on a given percentile.
CalculatePercentileFromHistogram
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def GeneratePercentileTimeSeriesSamples( histograms: collections.OrderedDict[Any, Any], percentiles: List[str], timestamps: dict[int, datetime.datetime], ) -> List[sample.Sample]: """Generate Percentile Time Series samples based on histograms.""" percentile_results = collections.defaultdict(list) time...
Generate Percentile Time Series samples based on histograms.
GeneratePercentileTimeSeriesSamples
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def ParseAsbenchHistogram(result_files: List[str]) -> List[sample.Sample]: """Parse histogram files generated by asbench. Args: result_files: List of filenames. Each file contains a periodic latency histogram from a client vm. Returns: A list of sample.Sample object. Each representing a latency hi...
Parse histogram files generated by asbench. Args: result_files: List of filenames. Each file contains a periodic latency histogram from a client vm. Returns: A list of sample.Sample object. Each representing a latency histogram.
ParseAsbenchHistogram
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def CreateTimeSeriesSample(samples: List[sample.Sample]) -> List[sample.Sample]: """Create time series samples from a list of per time window sample. Args: samples: A list of sample.Sample. Each sample represent throughput, latency collected in that time window. Returns: A list of time series samp...
Create time series samples from a list of per time window sample. Args: samples: A list of sample.Sample. Each sample represent throughput, latency collected in that time window. Returns: A list of time series samples, where each sample encodes a list of values for the entire run.
CreateTimeSeriesSample
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_client.py
Apache-2.0
def _InstallFromPackage(vm): """Installs the aerospike_server package on the VM.""" if FLAGS.aerospike_instances != 1: raise NotImplementedError( 'Only support one instance of aerospike on enterprise' ) if FLAGS.os_type not in AEROSPIKE_VERSION_NAME_FOR_OS: raise ValueError( f'Unsuppor...
Installs the aerospike_server package on the VM.
_InstallFromPackage
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_server.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_server.py
Apache-2.0
def _Install(vm): """Installs the Aerospike server on the VM.""" vm.Install('build_tools') vm.Install('lua5_1') vm.Install('openssl') vm.Install('wget') if _AEROSPIKE_EDITION.value == AerospikeEdition.COMNUNITY: _InstallFromGit(vm) else: _InstallFromPackage(vm)
Installs the Aerospike server on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_server.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_server.py
Apache-2.0
def _WaitForServerUp(server, idx=None): """Block until the Aerospike server is up and responsive. Will timeout after 5 minutes, and raise an exception. Before the timeout expires any exceptions are caught and the status check is retried. We check the status of the server by connecting to Aerospike's out of ...
Block until the Aerospike server is up and responsive. Will timeout after 5 minutes, and raise an exception. Before the timeout expires any exceptions are caught and the status check is retried. We check the status of the server by connecting to Aerospike's out of band telnet management port and issue a 'stat...
_WaitForServerUp
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_server.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_server.py
Apache-2.0
def IsServerUp(server, idx=None): """Check if the Aerospike server is up and responsive. Args: server: VirtualMachine Aerospike has been installed on. idx: aerospike process index. Returns: A bool indicating whether the server is up. """ idx = idx or 0 address = server.internal_ip port = f'{...
Check if the Aerospike server is up and responsive. Args: server: VirtualMachine Aerospike has been installed on. idx: aerospike process index. Returns: A bool indicating whether the server is up.
IsServerUp
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_server.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_server.py
Apache-2.0
def WipeDisk(server, devices): """Wipe the disk on the server.""" for scratch_disk in server.scratch_disks: if scratch_disk.mount_point: server.RemoteCommand( f'sudo umount {scratch_disk.mount_point}', ignore_failure=True ) # https://docs.aerospike.com/server/operations/plan/ssd/ssd_ini...
Wipe the disk on the server.
WipeDisk
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_server.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_server.py
Apache-2.0
def BuildAndStartCommunityAerospike(server, idx): """Build and start commmunity version of aerospike.""" server.RemoteCommand(f'cd {_GetAerospikeDir(idx)} && make init') # Persist the nohup command past the ssh session # "sh -c 'cd /wherever; nohup ./whatever > /dev/null 2>&1 &'" log_file = f'~/aerospike-{ser...
Build and start commmunity version of aerospike.
BuildAndStartCommunityAerospike
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_server.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_server.py
Apache-2.0
def ConfigureAndStart(server, seed_node_ips=None): """Prepare the Aerospike server on a VM. Args: server: VirtualMachine to install and start Aerospike on. seed_node_ips: internal IP addresses of seed nodes in the cluster. Leave unspecified for a single-node deployment. """ server.Install('aerosp...
Prepare the Aerospike server on a VM. Args: server: VirtualMachine to install and start Aerospike on. seed_node_ips: internal IP addresses of seed nodes in the cluster. Leave unspecified for a single-node deployment.
ConfigureAndStart
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_server.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_server.py
Apache-2.0
def EnableStrongConsistency(vm, namespaces): """Enable the strong consistency feature for the given namespaces. Args: vm: the vm instance where the Aerospike server is running. namespaces: the Aerospike namespace to enable strong consistency. """ # Grant necessary permissions vm.RemoteCommand( ...
Enable the strong consistency feature for the given namespaces. Args: vm: the vm instance where the Aerospike server is running. namespaces: the Aerospike namespace to enable strong consistency.
EnableStrongConsistency
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aerospike_server.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aerospike_server.py
Apache-2.0
def _Install(vm): """Installs the AMD BLIS package on the VM.""" vm.Install('build_tools') vm.Install('fortran') vm.RemoteCommand('git clone {} {}'.format(GIT_REPO, AMDBLIS_DIR)) vm.RemoteCommand('cd {} && git checkout {}'.format(AMDBLIS_DIR, GIT_TAG)) vm.RemoteCommand( 'cd {} && ./configure --enable-...
Installs the AMD BLIS package on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/amdblis.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/amdblis.py
Apache-2.0
def AptInstall(vm: virtual_machine.BaseVirtualMachine) -> None: """Install AMD GPU driver on the vm. Args: vm: The virtual machine to install AMD driver on. """ vm.RemoteCommand('sudo dpkg --add-architecture i386') tmp_dir = vm.scratch_disks[0].mount_point vm.DownloadPreprovisionedData(tmp_dir, 'amdgpu...
Install AMD GPU driver on the vm. Args: vm: The virtual machine to install AMD driver on.
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/amdgpu_driver.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/amdgpu_driver.py
Apache-2.0
def _Install(vm): """Installs the Ant package on the VM.""" vm.Install('wget') vm.InstallPreprovisionedPackageData( PACKAGE_NAME, PREPROVISIONED_DATA.keys(), linux_packages.INSTALL_DIR ) vm.RemoteCommand( 'cd {0} && tar -zxf apache-ant-1.9.6-bin.tar.gz && ' 'ln -s {0}/apache-ant-1.9.6/ {1}'...
Installs the Ant package on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/ant.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/ant.py
Apache-2.0
def Install(vm): """Installs the awscli package on the VM.""" # Check if AWS is already installed. if vm.TryRemoteCommand('aws --version'): return vm.Install('pip') vm.RemoteCommand( 'sudo pip3 install awscli ' # awscli depends on a specific PyYAML version, and the AWS Ubuntu AMI # ships...
Installs the awscli package on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/awscli.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/awscli.py
Apache-2.0
def GetCredentials(profile: str): """Gets the credentials from the AWS CLI config. Prefer --aws_ec2_instance_profile when using EC2 VMs. Args: profile: name of the profile to get the credentials from. Returns: A string, string tuple of access_key and secret_access_key """ key_id = util.GetConfigV...
Gets the credentials from the AWS CLI config. Prefer --aws_ec2_instance_profile when using EC2 VMs. Args: profile: name of the profile to get the credentials from. Returns: A string, string tuple of access_key and secret_access_key
GetCredentials
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aws_credentials.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aws_credentials.py
Apache-2.0
def Install(vm): """Deprecated means of copying local credentials into a VM.""" # This should never be called, but in case a fork calls # Install('aws_credentsials into a VM.'). raise NotImplementedError('Do not install AWS local credentials. Use ' '--aws_ec2_instance_profile instead...
Deprecated means of copying local credentials into a VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/aws_credentials.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/aws_credentials.py
Apache-2.0
def ZypperInstall(vm): """Installs the azure-cli package on the VM for SUSE systems. Args: vm: Virtual Machine to install on. """ # Work-around to remove conflicting python packages. See # https://github.com/Azure/azure-cli/issues/13209 vm.RemoteCommand( 'sudo zypper install -y --oldpackage azure...
Installs the azure-cli package on the VM for SUSE systems. Args: vm: Virtual Machine to install on.
ZypperInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/azure_cli.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/azure_cli.py
Apache-2.0
def _PipInstall(vm): """Installs azure-cli via pip on the VM. Args: vm: Virtual Machine to install on. """ vm.Install('pip') # azure-cli updated requirements.txt dependency, but not setupu.py: # https://github.com/Azure/azure-cli/pull/26671 vm.RemoteCommand('sudo pip3 install --upgrade azure-cli pyOp...
Installs azure-cli via pip on the VM. Args: vm: Virtual Machine to install on.
_PipInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/azure_cli.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/azure_cli.py
Apache-2.0
def AptInstall(vm): """Installs the azure-cli package on the VM for Debian systems. Args: vm: Virtual Machine to install on. """ if vm.is_aarch64 or vm.OS_TYPE not in SUPPORTED_APT_DISTROS: _PipInstall(vm) return vm.InstallPackages('curl') vm.RemoteCommand(f'curl -sL {_DEB_SCRIPT_URL} | sudo b...
Installs the azure-cli package on the VM for Debian systems. Args: vm: Virtual Machine to install on.
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/azure_cli.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/azure_cli.py
Apache-2.0
def YumInstall(vm): """Installs the azure-cli package on the VM for RedHat systems. Args: vm: Virtual Machine to install on. """ _CreateFile(vm, _YUM_REPO, _YUM_REPO_FILE) vm.RemoteCommand('sudo rpm --import {key}'.format(key=_YUM_REPO_KEY)) vm.InstallPackages('azure-cli')
Installs the azure-cli package on the VM for RedHat systems. Args: vm: Virtual Machine to install on.
YumInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/azure_cli.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/azure_cli.py
Apache-2.0
def _CreateFile(vm, content, file_path): """Creates the repository file on the remote server. Args: vm: Remote virtual machine. content: Text to put into the file. file_path: Path to text output file. """ vm.RemoteCommand( 'echo "{content}" | sudo tee {file_path}'.format( content=co...
Creates the repository file on the remote server. Args: vm: Remote virtual machine. content: Text to put into the file. file_path: Path to text output file.
_CreateFile
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/azure_cli.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/azure_cli.py
Apache-2.0
def Install(vm): """Copies Azure credentials to the VM.""" # Validate local azure-cli uses MSAL stdout, _, _ = vm_util.IssueCommand( ['az', 'version', '--query', '"azure-cli"'] ) az_version = version.Version(stdout.strip('"\n')) if az_version < version.Version(_REQUIRED_MSAL_CLI_VERSION): raise er...
Copies Azure credentials to the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/azure_credentials.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/azure_credentials.py
Apache-2.0
def Install(vm): """Installs the azure-cli package on the VM.""" vm.Install('pip') if FLAGS.azure_lib_version: version_string = '==' + FLAGS.azure_lib_version else: version_string = '' vm.RemoteCommand('sudo pip3 install azure%s' % version_string)
Installs the azure-cli package on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/azure_sdk.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/azure_sdk.py
Apache-2.0
def _Configure(vm): """Configure and build blaze library. See https://bitbucket.org/blaze-lib/blaze/wiki/Configuration%20Files for more details. """ vm.RenderTemplate( data.ResourcePath(CONFIG_TEMPLATE), os.path.join(BLAZE_DIR, CONFIG), { 'compiler': 'g++-5', 'compile_fl...
Configure and build blaze library. See https://bitbucket.org/blaze-lib/blaze/wiki/Configuration%20Files for more details.
_Configure
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/blaze.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/blaze.py
Apache-2.0
def _Install(vm): """Installs the blaze package on the VM.""" vm.RemoteCommand( 'cd {tmp_dir}; wget {tar_url}; tar xzvf {tar}'.format( tmp_dir=vm_util.VM_TMP_DIR, tar_url=BLAZE_TAR_URL, tar=BLAZE_TAR ) ) vm.RemoteCommand( 'sudo cp -r {blaze_dir}/blaze /usr/local/include'.format( ...
Installs the blaze package on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/blaze.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/blaze.py
Apache-2.0
def _SimplfyLibName(name): """Simply library name parsed from output. Args: name: string. Name parsed from blazemark output. Returns: A simplified name defined in LIBS. """ for lib in LIBS: if lib in name: return lib return name
Simply library name parsed from output. Args: name: string. Name parsed from blazemark output. Returns: A simplified name defined in LIBS.
_SimplfyLibName
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/blazemark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/blazemark.py
Apache-2.0
def _ParseResult(out, test): """Parse blazemark results. Sample output: https://bitbucket.org/blaze-lib/blaze/wiki/Blazemark#!command-line-parameters Dense Vector/Dense Vector Addition: C-like implementation [MFlop/s]: 100 1115.44 10000000 206.317 Classic operator overloading [MFlop/...
Parse blazemark results. Sample output: https://bitbucket.org/blaze-lib/blaze/wiki/Blazemark#!command-line-parameters Dense Vector/Dense Vector Addition: C-like implementation [MFlop/s]: 100 1115.44 10000000 206.317 Classic operator overloading [MFlop/s]: 100 415.703 ...
_ParseResult
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/blazemark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/blazemark.py
Apache-2.0
def RunTest(vm, test): """Run blazemark test on vm. Args: vm: VirtualMachine. The VM to run blazemark. test: string. The test name to run. Returns: A list of samples. Each sample if a 4-tuple of (benchmark_name, value, unit, metadata). """ out, _ = vm.RemoteCommand( 'cd %s; export BLAZ...
Run blazemark test on vm. Args: vm: VirtualMachine. The VM to run blazemark. test: string. The test name to run. Returns: A list of samples. Each sample if a 4-tuple of (benchmark_name, value, unit, metadata).
RunTest
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/blazemark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/blazemark.py
Apache-2.0
def _Configure(vm): """Configure and build blazemark on vm.""" vm.RenderTemplate( data.ResourcePath(CONFIG_TEMPLATE), os.path.join(BLAZEMARK_DIR, CONFIG), { 'compiler': '"g++-5"', 'compiler_flags': ( '"-Wall -Wextra -Werror -Wshadow -Woverloaded-virtual -ansi -O3 ...
Configure and build blazemark on vm.
_Configure
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/blazemark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/blazemark.py
Apache-2.0
def Install(vm): """Installs the boto package on the VM.""" vm.Install('pip') vm.RemoteCommand('sudo pip3 install boto3')
Installs the boto package on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/boto3.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/boto3.py
Apache-2.0
def YumInstall(vm): """Installs build tools on the VM.""" vm.InstallPackageGroup('Development Tools') # Recent RPM-based Linux distros split libnsl out of libc. This breaks many # compilations so install it explicitly. if vm.HasPackage('libnsl'): vm.InstallPackages('libnsl') if FLAGS.gcc_version: Re...
Installs build tools on the VM.
YumInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/build_tools.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/build_tools.py
Apache-2.0
def BuildGccFromSource(vm, gcc_version): """Install a specific version of gcc by compiling from source. Args: vm: VirtualMachine object. gcc_version: string. GCC version. Taken from: https://gist.github.com/nchaigne/ad06bc867f911a3c0d32939f1e930a11 """ if gcc_version == '9' or gcc_version == '9.2': ...
Install a specific version of gcc by compiling from source. Args: vm: VirtualMachine object. gcc_version: string. GCC version. Taken from: https://gist.github.com/nchaigne/ad06bc867f911a3c0d32939f1e930a11
BuildGccFromSource
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/build_tools.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/build_tools.py
Apache-2.0
def GetVersion(vm, pkg): """Get version of package using -dumpversion.""" out, _ = vm.RemoteCommand( '{pkg} -dumpfullversion'.format(pkg=pkg), ignore_failure=True ) return out.rstrip()
Get version of package using -dumpversion.
GetVersion
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/build_tools.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/build_tools.py
Apache-2.0
def GetVersionInfo(vm, pkg): """Get compiler version info for package using --version.""" out, _ = vm.RemoteCommand( '{pkg} --version'.format(pkg=pkg), ignore_failure=True ) # return first line of pkg --version return out.splitlines()[0] if out else None
Get compiler version info for package using --version.
GetVersionInfo
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/build_tools.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/build_tools.py
Apache-2.0
def Reinstall(vm, version: str): """Install specific version of gcc. Args: vm: VirtualMachine object. version: string. GCC version. """ if 'ubuntu' not in vm.OS_TYPE or FLAGS.force_build_gcc_from_source: BuildGccFromSource(vm, version) logging.info('GCC info: %s', GetVersion(vm, 'gcc')) ret...
Install specific version of gcc. Args: vm: VirtualMachine object. version: string. GCC version.
Reinstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/build_tools.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/build_tools.py
Apache-2.0
def _Install(vm): """Installs Cassandra as a debian package. Args: vm: VirtualMachine. The VM to install Cassandra on. """ vm.Install('openjdk') vm.Install('curl') vm.RemoteCommand( 'curl -o /opt/pkb/cassandra.tar.gz' ' https://archive.apache.org/dist/cassandra/4.1.5/apache-cassandra-4.1.5-...
Installs Cassandra as a debian package. Args: vm: VirtualMachine. The VM to install Cassandra on.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra.py
Apache-2.0
def JujuInstall(vm, vm_group_name): """Installs the Cassandra charm on the VM.""" vm.JujuDeploy('cs:trusty/cassandra', vm_group_name) # The charm defaults to Cassandra 2.2.x, which has deprecated # cassandra-cli. Specify the sources to downgrade to Cassandra 2.1.x # to match the cassandra benchmark(s) expect...
Installs the Cassandra charm on the VM.
JujuInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra.py
Apache-2.0
def Configure(vm, seed_vms): """Configure Cassandra on 'vm'. Args: vm: VirtualMachine. The VM to configure. seed_vms: List of VirtualMachine. The seed virtual machine(s). """ context = { 'ip_address': vm.internal_ip, 'data_path': posixpath.join(vm.GetScratchDir(), 'cassandra'), 'seeds...
Configure Cassandra on 'vm'. Args: vm: VirtualMachine. The VM to configure. seed_vms: List of VirtualMachine. The seed virtual machine(s).
Configure
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra.py
Apache-2.0
def IsRunning(vm): """Returns a boolean indicating whether Cassandra is running on 'vm'.""" try: _, stderr = vm.RemoteCommand(f'{GetNodetoolPath()} status') if stderr: return False return True except errors.VirtualMachine.RemoteCommandError as ex: logging.warning('Exception: %s', ex) ret...
Returns a boolean indicating whether Cassandra is running on 'vm'.
IsRunning
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra.py
Apache-2.0
def GetPendingTaskCountFromCompactionStats(cassandra_vms): """Parses the compaction stats for the given VMs and returns the pending task count. Args: cassandra_vms: List of VirtualMachine. The Cassandra VMs to get compaction stats from. Returns: List of int. The pending task count for each VM. "...
Parses the compaction stats for the given VMs and returns the pending task count. Args: cassandra_vms: List of VirtualMachine. The Cassandra VMs to get compaction stats from. Returns: List of int. The pending task count for each VM.
GetPendingTaskCountFromCompactionStats
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra.py
Apache-2.0
def CleanNode(vm): """Remove Cassandra data from 'vm'. Args: vm: VirtualMachine. VM to clean. """ data_path = posixpath.join(vm.GetScratchDir(), 'cassandra') vm.RemoteCommand('rm -rf {}'.format(data_path))
Remove Cassandra data from 'vm'. Args: vm: VirtualMachine. VM to clean.
CleanNode
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra.py
Apache-2.0
def _StartCassandraIfNotRunning(vm): """Starts Cassandra on 'vm' if not currently running.""" if not IsRunning(vm): logging.info('Retrying starting cassandra on %s', vm) Start(vm)
Starts Cassandra on 'vm' if not currently running.
_StartCassandraIfNotRunning
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra.py
Apache-2.0
def GetNumberOfNodesUp(vm): """Gets the number of VMs which are up in a Cassandra cluster. Args: vm: VirtualMachine. The VM to use to check the cluster status. Returns: int. The number of VMs which are up in a Cassandra cluster. """ vms_up = vm.RemoteCommand(f'{GetNodetoolPath()} status | grep -c "^...
Gets the number of VMs which are up in a Cassandra cluster. Args: vm: VirtualMachine. The VM to use to check the cluster status. Returns: int. The number of VMs which are up in a Cassandra cluster.
GetNumberOfNodesUp
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra.py
Apache-2.0
def StartCluster(seed_vm, vms): """Starts a Cassandra cluster. Starts a Cassandra cluster, first starting 'seed_vm', then remaining VMs in 'vms'. Args: seed_vm: VirtualMachine. Machine which will function as the sole seed. It will be started before all other VMs. vms: list of VirtualMachines. VM...
Starts a Cassandra cluster. Starts a Cassandra cluster, first starting 'seed_vm', then remaining VMs in 'vms'. Args: seed_vm: VirtualMachine. Machine which will function as the sole seed. It will be started before all other VMs. vms: list of VirtualMachines. VMs *other than* seed_vm which should b...
StartCluster
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra.py
Apache-2.0
def JujuInstall(vm, vm_group_name): """Installs the cassandra-stress charm on the VM.""" vm.JujuDeploy('cs:~marcoceppi/trusty/cassandra-stress', vm_group_name) # The assumption is that cassandra-stress will always be installed # alongside cassandra vm.JujuRelate('cassandra', 'cassandra-stress') # Wait for...
Installs the cassandra-stress charm on the VM.
JujuInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cassandra_stress.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cassandra_stress.py
Apache-2.0
def AptInstall(vm): """Install the chromium_compile package on the VM using aptitude. Args: vm: VM to install chromium_compile on. """ scratch_dir = vm.GetScratchDir() local_working_directory = os.path.join(scratch_dir, WORKING_DIRECTORY_NAME) depot_tools_path = os.path.join(local_working_directory, 'd...
Install the chromium_compile package on the VM using aptitude. Args: vm: VM to install chromium_compile on.
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/chromium_compile.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/chromium_compile.py
Apache-2.0
def _InstallViaPreprovisionedData(vm, scratch_dir='.'): """Returns whether Chromium_compile was installed via preprovisioned data.""" # if the tarball is not in preprovisioned data return False if TARBALL not in PREPROVISIONED_DATA: return False if not vm.ShouldDownloadPreprovisionedData('chromium_compile'...
Returns whether Chromium_compile was installed via preprovisioned data.
_InstallViaPreprovisionedData
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/chromium_compile.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/chromium_compile.py
Apache-2.0