35533cd60dc37b63681ac63d92d0c60bb38dde48,perfkitbenchmarker/benchmarks/speccpu2006_benchmark.py,,Prepare,#Any#,50
Before Change
vm.InstallPackage("build-essential")
vm.InstallPackage("gfortran")
tar_file_path = os.path.join(DATA_DIR, SPECCPU2006_TAR)
local_tar_file_path = tar_file_path
if not os.path.isfile(local_tar_file_path):
logging.error("Please provide %s under %s directory before"
" running SpecCPU2006 benchmark.", SPECCPU2006_TAR, DATA_DIR)
raise errors.Benchmarks.PrepareException(
"%s not fount." % local_tar_file_path)
vm.tar_file_path = os.path.join(vm.GetScratchDir(), SPECCPU2006_TAR)
vm.spec_dir = os.path.join(vm.GetScratchDir(), SPECCPU2006_DIR)
vm.RemoteCommand("chmod 777 %s" % vm.GetScratchDir())
vm.PushFile(local_tar_file_path, vm.GetScratchDir())
After Change
logging.info("prepare SpecCPU2006 on %s", vm)
vm.InstallPackage("build-essential")
vm.InstallPackage("gfortran")
try:
local_tar_file_path = data.ResourcePath(SPECCPU2006_TAR)
except data.ResourceNotFound as e:
logging.error("Please provide %s under perfkitbenchmarker/data directory "
"before running SpecCPU2006 benchmark.", SPECCPU2006_TAR)
raise errors.Benchmarks.PrepareException(str(e))
vm.tar_file_path = os.path.join(vm.GetScratchDir(), SPECCPU2006_TAR)
vm.spec_dir = os.path.join(vm.GetScratchDir(), SPECCPU2006_DIR)
vm.RemoteCommand("chmod 777 %s" % vm.GetScratchDir())
vm.PushFile(local_tar_file_path, vm.GetScratchDir())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 35533cd60dc37b63681ac63d92d0c60bb38dde48
Time: 2014-12-02
Author: connormccoy@google.com
File Name: perfkitbenchmarker/benchmarks/speccpu2006_benchmark.py
Class Name:
Method Name: Prepare
Project Name: prody/ProDy
Commit Name: c5b11b7668df61c3a5c3f927625430c56413d5fb
Time: 2012-11-14
Author: lordnapi@gmail.com
File Name: lib/prody/utilities/pathtools.py
Class Name:
Method Name: openFile
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 35533cd60dc37b63681ac63d92d0c60bb38dde48
Time: 2014-12-02
Author: connormccoy@google.com
File Name: perfkitbenchmarker/benchmarks/coremark_benchmark.py
Class Name:
Method Name: Prepare