Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Expr Call NameLoad AttributeLoad NameLoad attr keyword CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareNotEq Call AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad If NameLoad body Raise Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Dict Str NameLoad Raise TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Raise decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assert UnaryOpNot NameLoad Assign NameStore NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assert NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Continue Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body If NameLoad body Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Raise Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str Call AttributeLoad Str attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Str If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Str Str TupleLoad Str Str TupleLoad Str NameLoad TupleLoad Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Assign NameStore Call AttributeLoad Str attr keyword Call AttributeLoad Str attr GeneratorExp Call AttributeLoad Str attr NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr TupleLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Str Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list
N/A N/A Runs SPEC CPU2006.

From the SPEC CPU2006 documentation:
"The SPEC CPU 2006 benchmark is SPEC's next-generation, industry-standardized,
CPU-intensive benchmark suite, stressing a system's processor, memory subsystem
and compiler."

SPEC CPU2006 homepage: http://www.spec.org/cpu2006/
 N/A itertools N/A logging N/A os N/A posixpath N/A re N/A tarfile perfkitbenchmarker configs perfkitbenchmarker data perfkitbenchmarker errors perfkitbenchmarker flags perfkitbenchmarker sample perfkitbenchmarker stages N/A FLAGS N/A flags FLAGS N/A N/A N/A flags DEFINE_enum benchmark_subset int N/A int fp all Used by the PKB speccpu2006 benchmark. Specifies a subset of SPEC CPU2006 benchmarks to run. N/A N/A N/A flags DEFINE_string runspec_config linux64-x64-gcc47.cfg Used by the PKB speccpu2006 benchmark. Name of the cfg file to use as the SPEC CPU2006 config file provided to the runspec binary via its --config flag. If the benchmark is run using the cpu2006-1.2.iso file, then the cfg file must be placed in the local PKB data directory and will be copied to the remote machine prior to executing runspec. See README.md for instructions if running with a repackaged cpu2006v1.2.tgz file. N/A N/A N/A flags DEFINE_integer runspec_iterations 3 Used by the PKB speccpu2006 benchmark. The number of benchmark iterations to execute, provided to the runspec binary via its --iterations flag. N/A N/A N/A flags DEFINE_string runspec_define Used by the PKB speccpu2006 benchmark. Optional comma-separated list of SYMBOL[=VALUE] preprocessor macros provided to the runspec binary via repeated --define flags. Example: numa,smt,sse=SSE4.2 N/A N/A N/A flags DEFINE_boolean runspec_enable_32bit False Used by the PKB speccpu2006 benchmark. If set, multilib packages will be installed on the remote machine to enable use of 32-bit SPEC CPU2006 binaries. This may be useful when running on memory-constrained instance types (i.e. less than 2 GiB memory/core), where 64-bit execution may be problematic. N/A N/A N/A flags DEFINE_boolean runspec_keep_partial_results False Used by the PKB speccpu2006 benchmark. If set, the benchmark will report an aggregate score even if some of the SPEC CPU2006 component tests failed with status "NR". Available results will be saved, and PKB samples will be marked with a metadata value of partial=true. If unset, partial failures are treated as errors. N/A BENCHMARK_NAME speccpu2006 N/A BENCHMARK_CONFIG 
speccpu2006:
  description: Runs SPEC CPU2006
  vm_groups:
    default:
      vm_spec: *default_single_core
      disk_spec: *default_500_gb
 N/A _BENCHMARK_SPECIFIC_VM_STATE_ATTR speccpu2006_vm_state N/A _MOUNT_DIR cpu2006_mnt N/A _SPECCPU2006_DIR cpu2006 N/A _SPECCPU2006_ISO cpu2006-1.2.iso N/A _SPECCPU2006_TAR cpu2006v1.2.tgz N/A _TAR_REQUIRED_MEMBERS N/A cpu2006 cpu2006/bin/runspec GetConfig N/A N/A user_config N/A N/A N/A N/A N/A configs LoadConfig BENCHMARK_CONFIG user_config BENCHMARK_NAME N/A CheckPrerequisites N/A N/A N/A N/A N/A Verifies that the required input files are present. N/A N/A N/A N/A _CheckTarFile N/A FLAGS runspec_config examine_members N/A N/A stages PROVISION N/A FLAGS run_stage N/A N/A N/A N/A data ResourceNotFound N/A N/A N/A _CheckIsoAndCfgFile N/A FLAGS runspec_config N/A _CheckTarFile N/A N/A runspec_config examine_members N/A N/A N/A Searches for the tar file and performs preliminary checks on its format.

  Args:
    runspec_config: string. User-specified name of the config file that is
        expected to be in the tar file.
    examine_members: boolean. If True, this function will examine the tar file's
        members to verify that certain required members are present.

  Raises:
    data.ResourcePath: If the tar file cannot be found.
    errors.Benchmarks.PrepareException: If the tar file does not contain a
        required member.
    errors.Config.InvalidValue: If the tar file is found, and runspec_config is
        not a valid file name.
   N/A tar_file_path N/A N/A data ResourcePath _SPECCPU2006_TAR N/A N/A N/A logging info Found tar file at %s. Skipping search for %s. tar_file_path _SPECCPU2006_ISO N/A N/A N/A N/A posixpath basename runspec_config runspec_config N/A N/A N/A N/A N/A errors Config InvalidValue N/A N/A Invalid runspec_config value: {0}{1}When running speccpu2006 with a tar file, runspec_config cannot specify a file in a sub-directory. See README.md for information about running speccpu2006 with a tar file. format runspec_config N/A os linesep N/A N/A examine_members N/A N/A N/A N/A N/A tarfile open tar_file_path r tf N/A N/A members N/A N/A tf getnames N/A cfg_member N/A N/A cpu2006/config/{0} format runspec_config N/A required_members N/A N/A itertools chain _TAR_REQUIRED_MEMBERS N/A cfg_member N/A missing_members N/A N/A N/A set required_members difference members N/A missing_members N/A N/A N/A N/A N/A errors Benchmarks PrepareException N/A N/A The following files were not found within {tar}:{linesep}{members}{linesep}This is an indication that the tar file is formatted incorrectly. See README.md for information about the expected format of the tar file. format linesep N/A os linesep tar tar_file_path members N/A N/A N/A os linesep join N/A sorted missing_members N/A _CheckIsoAndCfgFile N/A N/A runspec_config N/A N/A N/A Searches for the iso file and cfg file.

  Args:
    runspec_config: string. Name of the config file to provide to runspec.

  Raises:
    data.ResourcePath: If one of the required files could not be found.
   N/A N/A N/A N/A N/A data ResourcePath _SPECCPU2006_ISO N/A N/A N/A N/A data ResourceNotFound N/A N/A N/A N/A logging error %(iso)s not found. To run the speccpu2006 benchmark, %(iso)s must be in the perfkitbenchmarker/data directory (or one of the specified data directories if the --data_search_paths flag is used). Visit https://www.spec.org/cpu2006/ to learn more about purchasing %(iso)s. N/A iso _SPECCPU2006_ISO N/A N/A N/A N/A N/A N/A data ResourcePath runspec_config N/A N/A N/A N/A data ResourceNotFound N/A N/A N/A N/A logging error %s not found. To run the speccpu2006 benchmark, the config file specified by the --runspec_config flag must be in the perfkitbenchmarker/data directory (or one of the specified data directories if the --data_search_paths flag is used). Visit https://www.spec.org/cpu2006/docs/runspec.html#about_config to learn more about config files. runspec_config N/A N/A _SpecCpu2006SpecificState N/A object N/A N/A State specific to this benchmark that must be preserved between PKB stages.

  An instance of this class is attached to the VM as an attribute and is
  therefore preserved as part of the pickled BenchmarkSpec between PKB stages.

  Each attribute represents a possible file or directory that may be created on
  the remote machine as part of running the benchmark.

  Attributes:
    cfg_file_path: Optional string. Path of the cfg file on the remote machine.
    iso_file_path: Optional string. Path of the iso file on the remote machine.
    mount_dir: Optional string. Path where the iso file is mounted on the
        remote machine.
    spec_dir: Optional string. Path of a created directory on the remote machine
        where the SPEC files are stored.
    tar_file_path: Optional string. Path of the tar file on the remote machine.
   __init__ N/A N/A self N/A N/A N/A N/A self cfg_file_path None N/A N/A self iso_file_path None N/A N/A self mount_dir None N/A N/A self spec_dir None N/A N/A self tar_file_path None N/A N/A Prepare N/A N/A benchmark_spec N/A N/A N/A Installs SPEC CPU2006 on the target vm.

  Args:
    benchmark_spec: The benchmark specification. Contains all data that is
        required to run the benchmark.
   N/A vm N/A N/A benchmark_spec vms N/A 0 N/A speccpu_vm_state N/A _SpecCpu2006SpecificState N/A N/A setattr vm _BENCHMARK_SPECIFIC_VM_STATE_ATTR speccpu_vm_state N/A N/A N/A vm Install wget N/A N/A N/A vm Install build_tools N/A N/A N/A vm Install fortran N/A N/A FLAGS runspec_enable_32bit N/A N/A N/A N/A vm Install multilib N/A N/A N/A vm Install numactl N/A scratch_dir N/A N/A vm GetScratchDir N/A N/A N/A vm RemoteCommand N/A N/A chmod 777 {0} format scratch_dir N/A N/A speccpu_vm_state spec_dir N/A N/A posixpath join scratch_dir _SPECCPU2006_DIR N/A N/A N/A N/A _PrepareWithTarFile vm speccpu_vm_state N/A N/A N/A N/A data ResourceNotFound N/A N/A N/A _PrepareWithIsoFile vm speccpu_vm_state N/A _PrepareWithTarFile N/A N/A vm speccpu_vm_state N/A N/A N/A Prepares the VM to run using the tar file.

  Args:
    vm: BaseVirtualMachine. Recipient of the tar file.
    speccpu_vm_state: _SpecCpu2006SpecificState. Modified by this function to
        reflect any changes to the VM that may need to be cleaned up.
   N/A scratch_dir N/A N/A vm GetScratchDir N/A local_tar_file_path N/A N/A data ResourcePath _SPECCPU2006_TAR N/A N/A speccpu_vm_state tar_file_path N/A N/A posixpath join scratch_dir _SPECCPU2006_TAR N/A N/A N/A vm PushFile local_tar_file_path scratch_dir N/A N/A N/A vm RemoteCommand N/A N/A cd {dir} && tar xvfz {tar} format dir scratch_dir tar _SPECCPU2006_TAR N/A N/A speccpu_vm_state cfg_file_path N/A N/A posixpath join N/A speccpu_vm_state spec_dir config N/A FLAGS runspec_config N/A _PrepareWithIsoFile N/A N/A vm speccpu_vm_state N/A N/A N/A Prepares the VM to run using the iso file.

  Copies the iso to the VM, mounts it, and extracts the contents. Copies the
  config file to the VM. Runs the SPEC install.sh script on the VM.

  Args:
    vm: BaseVirtualMachine. Recipient of the iso file.
    speccpu_vm_state: _SpecCpu2006SpecificState. Modified by this function to
        reflect any changes to the VM that may need to be cleaned up.
   N/A scratch_dir N/A N/A vm GetScratchDir N/A N/A N/A vm RemoteCommand N/A N/A mkdir {0} format N/A speccpu_vm_state spec_dir N/A local_iso_file_path N/A N/A data ResourcePath _SPECCPU2006_ISO N/A N/A speccpu_vm_state iso_file_path N/A N/A posixpath join scratch_dir _SPECCPU2006_ISO N/A N/A N/A vm PushFile local_iso_file_path scratch_dir N/A N/A speccpu_vm_state mount_dir N/A N/A posixpath join scratch_dir _MOUNT_DIR N/A N/A N/A vm RemoteCommand N/A N/A mkdir {0} format N/A speccpu_vm_state mount_dir N/A N/A N/A vm RemoteCommand N/A N/A sudo mount -t iso9660 -o loop {0} {1} format N/A speccpu_vm_state iso_file_path N/A speccpu_vm_state mount_dir N/A N/A N/A vm RemoteCommand N/A N/A cp -r {0}/* {1} format N/A speccpu_vm_state mount_dir N/A speccpu_vm_state spec_dir N/A N/A N/A vm RemoteCommand N/A N/A chmod -R 777 {0} format N/A speccpu_vm_state spec_dir N/A local_cfg_file_path N/A N/A data ResourcePath N/A FLAGS runspec_config N/A cfg_file_name N/A N/A N/A os path basename local_cfg_file_path N/A N/A speccpu_vm_state cfg_file_path N/A N/A posixpath join N/A speccpu_vm_state spec_dir config cfg_file_name N/A N/A N/A vm PushFile local_cfg_file_path N/A speccpu_vm_state cfg_file_path N/A install_script_path N/A N/A posixpath join N/A speccpu_vm_state spec_dir install.sh N/A N/A N/A vm RobustRemoteCommand N/A N/A yes | {0} format install_script_path N/A _ExtractScore N/A N/A stdout vm keep_partial_results N/A N/A N/A Extracts the SPEC(int|fp) score from stdout.

  Args:
    stdout: stdout from running RemoteCommand.
    vm: The vm instance where SPEC CPU2006 was run.
    keep_partial_results: A boolean indicating whether partial results should
        be extracted in the event that not all benchmarks were successfully
        run. See the "runspec_keep_partial_results" flag for more info.

  Sample input for SPECint:
      ...
      ...
      =============================================
      400.perlbench    9770        417       23.4 *
      401.bzip2        9650        565       17.1 *
      403.gcc          8050        364       22.1 *
      429.mcf          9120        364       25.1 *
      445.gobmk       10490        499       21.0 *
      456.hmmer        9330        491       19.0 *
      458.sjeng       12100        588       20.6 *
      462.libquantum  20720        468       44.2 *
      464.h264ref     22130        700       31.6 *
      471.omnetpp      6250        349       17.9 *
      473.astar        7020        482       14.6 *
      483.xalancbmk    6900        248       27.8 *
       Est. SPECint(R)_base2006              22.7

  Sample input for SPECfp:
      ...
      ...
      =============================================
      410.bwaves      13590        717      19.0  *
      416.gamess      19580        923      21.2  *
      433.milc         9180        480      19.1  *
      434.zeusmp       9100        600      15.2  *
      435.gromacs      7140        605      11.8  *
      436.cactusADM   11950       1289       9.27 *
      437.leslie3d     9400        859      10.9  *
      444.namd         8020        504      15.9  *
      447.dealII      11440        409      28.0  *
      450.soplex       8340        272      30.6  *
      453.povray       5320        231      23.0  *
      454.calculix     8250        993       8.31 *
      459.GemsFDTD    10610        775      13.7  *
      465.tonto        9840        565      17.4  *
      470.lbm         13740        365      37.7  *
      481.wrf         11170        788      14.2  *
      482.sphinx3     19490        668      29.2  *
       Est. SPECfp(R)_base2006              17.5

  Returns:
      A list of sample.Sample objects.
   N/A results N/A N/A re_begin_section N/A N/A re compile ^={1,} N/A re_end_section N/A N/A re compile Est. (SPEC.*_base2006)\s*(\S*) N/A result_section N/A N/A in_result_section False N/A line N/A N/A stdout splitlines N/A N/A in_result_section N/A N/A N/A N/A result_section append line N/A match N/A N/A re search re_begin_section line N/A match N/A N/A N/A in_result_section N/A in_result_section True N/A N/A match N/A N/A re search re_end_section line N/A match N/A N/A in_result_section N/A spec_name N/A str N/A N/A match group 1 N/A N/A N/A spec_score N/A float N/A N/A match group 2 N/A N/A N/A ValueError N/A N/A spec_score None N/A in_result_section False N/A N/A N/A result_section pop N/A metadata N/A num_cpus N/A vm num_cpus N/A N/A N/A metadata update N/A N/A vm GetMachineTypeDict N/A missing_results N/A N/A benchmark result_section N/A N/A N/A NR benchmark N/A N/A N/A N/A logging warning SPEC CPU2006 missing result: %s benchmark N/A N/A N/A missing_results append N/A str N/A N/A N/A benchmark split N/A 0 N/A N/A N/A name _ _ score _ N/A N/A benchmark split N/A N/A N/A results append N/A N/A sample Sample N/A str name N/A float score metadata N/A N/A spec_score None N/A N/A N/A N/A missing_results append spec_name N/A missing_results N/A N/A keep_partial_results N/A N/A N/A metadata N/A partial true N/A N/A metadata N/A missing_results N/A N/A , join missing_results N/A N/A N/A N/A N/A errors Benchmarks RunError N/A speccpu2006: results missing, see log:  N/A N/A , join missing_results N/A N/A spec_score None N/A N/A N/A N/A results append N/A N/A sample Sample spec_name spec_score metadata N/A results N/A _ParseOutput N/A N/A vm spec_dir N/A N/A N/A Retrieves the SPEC CPU2006 output from the VM and parses it.

  Args:
    vm: The vm instance where SPEC CPU2006 was run.
    spec_dir: string. Path of the directory on the remote machine where the SPEC
        files, including binaries and logs, are located.

  Returns:
    A list of samples to be published (in the same format as Run() returns).
   N/A results N/A N/A log_files N/A N/A N/A N/A FLAGS benchmark_subset N/A int all N/A N/A N/A N/A log_files append CINT2006.001.ref.txt N/A N/A N/A FLAGS benchmark_subset N/A fp all N/A N/A N/A N/A log_files append CFP2006.001.ref.txt N/A log log_files N/A N/A N/A stdout _ N/A N/A vm RemoteCommand N/A cat %s/result/%s N/A spec_dir log should_log True N/A N/A N/A results extend N/A _ExtractScore stdout vm N/A FLAGS runspec_keep_partial_results N/A results N/A Run N/A N/A benchmark_spec N/A N/A N/A Runs SPEC CPU2006 on the target vm.

  Args:
    benchmark_spec: The benchmark specification. Contains all data that is
        required to run the benchmark.

  Returns:
    A list of sample.Sample objects.
   N/A vm N/A N/A benchmark_spec vms N/A 0 N/A speccpu_vm_state N/A getattr vm _BENCHMARK_SPECIFIC_VM_STATE_ATTR N/A num_cpus N/A vm num_cpus N/A runspec_flags N/A N/A config N/A N/A posixpath basename N/A speccpu_vm_state cfg_file_path N/A tune base N/A size ref N/A rate num_cpus N/A iterations N/A FLAGS runspec_iterations N/A N/A FLAGS runspec_define N/A N/A runspec_define N/A N/A N/A FLAGS runspec_define split , N/A N/A N/A N/A runspec_flags append N/A define runspec_define N/A runspec_cmd N/A N/A runspec --noreportable {flags} {subset} format flags N/A N/A join N/A N/A N/A --{0}={1} format k v N/A N/A k v runspec_flags subset N/A FLAGS benchmark_subset N/A cmd N/A N/A  &&  join N/A N/A N/A cd {0} format N/A speccpu_vm_state spec_dir . ./shrc ./bin/relocate . ./shrc rm -rf result runspec_cmd N/A N/A N/A vm RobustRemoteCommand cmd N/A N/A N/A logging info SPEC CPU2006 Results: N/A N/A _ParseOutput vm N/A speccpu_vm_state spec_dir N/A Cleanup N/A N/A benchmark_spec N/A N/A N/A Cleans up SPEC CPU2006 from the target vm.

  Args:
    benchmark_spec: The benchmark specification. Contains all data that is
        required to run the benchmark.
   N/A vm N/A N/A benchmark_spec vms N/A 0 N/A speccpu_vm_state N/A getattr vm _BENCHMARK_SPECIFIC_VM_STATE_ATTR None N/A speccpu_vm_state N/A N/A N/A speccpu_vm_state mount_dir N/A N/A N/A N/A N/A N/A vm RemoteCommand N/A N/A sudo umount {0} format N/A speccpu_vm_state mount_dir N/A N/A N/A N/A N/A errors VirtualMachine RemoteCommandError N/A N/A N/A N/A logging exception umount failed. N/A targets N/A N/A join N/A p N/A p N/A N/A N/A speccpu_vm_state __dict__ values p N/A N/A N/A vm RemoteCommand N/A N/A rm -rf {0} format targets N/A