本文整理汇总了Python中benchmark.Benchmark.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Benchmark.__init__方法的具体用法?Python Benchmark.__init__怎么用?Python Benchmark.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类benchmark.Benchmark
的用法示例。
在下文中一共展示了Benchmark.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, suite = 'slideshow'):
if self._SUITES.has_key(suite.lower()):
self.suite = suite
else:
raise WebMarkException("Unsupported suite %s, "
"should be one of 'slideshow', 'zoom', 'grayscale', 'fancyshow'." % suite)
Benchmark.__init__(self)
示例2: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, version = '0.9.1'):
if self._VERSIONS.has_key(version):
self.version = version
else:
raise WebMarkException("Unsupported version %s, "
"should be one of '0.9.1', '0.9'." % version)
Benchmark.__init__(self)
示例3: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, suite = 'All JavaScript Tests'):
if self._SUITES.has_key(suite.lower()):
self.suite = suite
else:
raise WebMarkException("Unsupported suite %s, "
"should be one of 'All JavaScript Tests', 'All DOM Tests'." % suite)
Benchmark.__init__(self)
示例4: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, version='v7'):
if version in self._VERSIONS:
self.version = version
else:
raise WebMarkException("Unsupported version %s, "
"should be one of ('v1', 'v2', 'v3', 'v4', 'v5', 'v6', 'v7')" % version)
Benchmark.__init__(self)
示例5: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, suite = 'text'):
if self._SUITES.has_key(suite.lower()):
self.suite = suite
else:
raise WebMarkException("Unsupported suite %s, "
"should be one of 'text', 'list', 'table'." % suite)
Benchmark.__init__(self)
示例6: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, style = 'medium'):
if self._STYLES.has_key(style.lower()):
self.style = style
else:
raise WebMarkException("Unsupported style %s, "
"should be one of 'low', 'medium', 'high'." % style)
Benchmark.__init__(self)
示例7: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, suite = 'fullscreen'):
if suite in self._SUITES:
self.suite = suite
else:
raise WebMarkException("Unsupported suite %s, "
"should be one of 'fullscreen', 'non-fullscreen'." % suite)
Benchmark.__init__(self)
示例8: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, suite = 'transform'):
if suite in self._SUITES:
self.suite = suite
else:
raise WebMarkException("Unsupported suite %s, "
"should be one of 'transform', 'transition', 'animation'." % suite)
Benchmark.__init__(self)
示例9: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, benchmarkGroupId, benchmarkRunId, buildSettings, **kwargs):
Benchmark.__init__(self, benchmarkGroupId, benchmarkRunId, buildSettings, **kwargs)
# self._dirHyriseDB = os.path.join(os.getcwd(), "hyrise")
os.environ["HYRISE_DB_PATH"] = self._dirHyriseDB
self.setUserClass(MixedWLUser)
self._queryDict = self.loadQueryDict()
示例10: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, suite="bitmap"):
if self._SUITES.has_key(suite.lower()):
self.suite = suite
else:
raise WebMarkException(
"Unsupported suite %s, " "should be one of 'bitmap', 'bitmap cache', 'vector'." % suite
)
Benchmark.__init__(self)
示例11: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, fishNumber=50):
if fishNumber in self.fishes:
self.fishNumber = fishNumber
else:
raise WebMarkException("Unsupported fish number %d, "
"should be one of (1, 10, 50, 100, 250, 500, 1000)" % fishNumber)
Benchmark.__init__(self)
示例12: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, benchmarkGroupId, benchmarkRunId, buildSettings, **kwargs):
Benchmark.__init__(self, benchmarkGroupId, benchmarkRunId, buildSettings, **kwargs)
self.scalefactor = kwargs["scalefactor"] if kwargs.has_key("scalefactor") else 1
self.warehouses = kwargs["warehouses"] if kwargs.has_key("warehouses") else 4
self.driverClass = createDriverClass("hyrise")
self.driver = self.driverClass(os.path.join(os.getcwd(), "pytpcc", "tpcc.sql"))
self.scaleParameters = scaleparameters.makeWithScaleFactor(self.warehouses, self.scalefactor)
self.regenerate = False
self.noLoad = kwargs["noLoad"] if kwargs.has_key("noLoad") else False
self.table_dir = kwargs["tabledir"] if kwargs.has_key("tabledir") else None
self.onlyNeworders = kwargs["onlyNeworders"] if kwargs.has_key("onlyNeworders") else False
self.setUserClass(TPCCUser)
示例13: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, benchmarkGroupId, benchmarkRunId, buildSettings, **kwargs):
Benchmark.__init__(self, benchmarkGroupId, benchmarkRunId, buildSettings, **kwargs)
self._dirHyriseDB = os.path.join(os.getcwd(), "hyrise")
os.environ['HYRISE_DB_PATH'] = self._dirHyriseDB
self.scalefactor = kwargs["scalefactor"] if kwargs.has_key("scalefactor") else 1
self.warehouses = kwargs["warehouses"] if kwargs.has_key("warehouses") else 4
self.driverClass = createDriverClass("hyrise")
self.driver = self.driverClass(os.path.join(os.getcwd(), "pytpcc", "tpcc.sql"))
self.scaleParameters = scaleparameters.makeWithScaleFactor(self.warehouses, self.scalefactor)
self.regenerate = False
self.noLoad = kwargs["noLoad"] if kwargs.has_key("noLoad") else False
self.setUserClass(TPCCUser)
示例14: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self):
Benchmark.__init__(self)
示例15: __init__
# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
def __init__(self, driver, logf):
Benchmark.__init__(self, driver, logf)