当前位置: 首页>>代码示例>>Python>>正文


Python Benchmark.__init__方法代码示例

本文整理汇总了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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:9,代码来源:html5myalbum.py

示例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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:9,代码来源:sunspider.py

示例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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:9,代码来源:dromaeo.py

示例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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:9,代码来源:v8_benchmark_suite.py

示例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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:9,代码来源:basicstyles.py

示例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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:9,代码来源:cyor.py

示例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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:10,代码来源:videocpu.py

示例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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:10,代码来源:crazycube.py

示例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()
开发者ID:JWUST,项目名称:benchmark,代码行数:10,代码来源:bench_mixed.py

示例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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:10,代码来源:guimark3.py

示例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)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:10,代码来源:aquarium.py

示例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)
开发者ID:hyrise,项目名称:benchmark,代码行数:15,代码来源:bench_tpcc.py

示例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)
开发者ID:JWUST,项目名称:benchmark,代码行数:16,代码来源:bench_tpcc.py

示例14: __init__

# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
 def __init__(self):
     Benchmark.__init__(self)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:4,代码来源:skewscale.py

示例15: __init__

# 需要导入模块: from benchmark import Benchmark [as 别名]
# 或者: from benchmark.Benchmark import __init__ [as 别名]
 def __init__(self, driver, logf):
     Benchmark.__init__(self, driver, logf)
开发者ID:Ryan--Yang,项目名称:WebMark,代码行数:4,代码来源:guimark3_bitmap_cache.py


注:本文中的benchmark.Benchmark.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。