當前位置: 首頁>>代碼示例>>Python>>正文


Python analysis.ComparisonResult類代碼示例

本文整理匯總了Python中lnt.server.reporting.analysis.ComparisonResult的典型用法代碼示例。如果您正苦於以下問題:Python ComparisonResult類的具體用法?Python ComparisonResult怎麽用?Python ComparisonResult使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ComparisonResult類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_really_faster

    def test_really_faster(self):
        """Test getting a simple improvement."""

        faster = ComparisonResult(
            min, False, False, [5., 6.], [10., 10., 10.], None, None)
        self.assertEquals(faster.get_value_status(), IMPROVED)
        self.assertTrue(faster.is_result_interesting())
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:7,代碼來源:analysis.py

示例2: test_big_no_regression_flat_line_multi

 def test_big_no_regression_flat_line_multi(self):
     """Same data, but bigger 10 + 5% variation, multisample current."""
     flat = ComparisonResult(
         min, False, False, [10.0606, 10.4169, 10.1859],
         BIG_NUMBERS_FLAT[0:10], None, None)
     ret = flat.get_value_status()
     self.assertEquals(ret, UNCHANGED_PASS)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:7,代碼來源:analysis.py

示例3: test_comp

    def test_comp(self):
        """Test a real example."""
        curr_samples = [0.0887, 0.0919, 0.0903]
        prev = [0.0858]
        uninteresting = ComparisonResult(min, False, False, curr_samples, prev)

        self.assertFalse(uninteresting.is_result_interesting())
        self.assertEquals(uninteresting.get_test_status(), UNCHANGED_PASS)
        self.assertEquals(uninteresting.get_value_status(), UNCHANGED_PASS)
開發者ID:BillSeurer,項目名稱:lnt,代碼行數:9,代碼來源:analysis.py

示例4: test_noise_improvement

 def test_noise_improvement(self):
     """An improvement with 5% noise."""
     flat = ComparisonResult(min, False, False, [IMP_NOISE[10]],
                             IMP_NOISE[0:9], None, None)
     self.assertEquals(flat.get_value_status(), IMPROVED)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:5,代碼來源:analysis.py

示例5: test_bimodal

 def test_bimodal(self):
     """A bimodal line, with no regressions."""
     bimodal = ComparisonResult(min, False, False, [BIMODAL[10]],
                                BIMODAL[0:9], None, None)
     self.assertEquals(bimodal.get_value_status(), UNCHANGED_PASS)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:5,代碼來源:analysis.py

示例6: test_noisy_regression_5

 def test_noisy_regression_5(self):
     """A regression in 5% noise."""
     flat = ComparisonResult(min, False, False, [12.2821], REGRESS_5[0:9],
                             None, None)
     self.assertEquals(flat.get_value_status(), REGRESSED)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:5,代碼來源:analysis.py

示例7: test_noisy_regression_5_multi

 def test_noisy_regression_5_multi(self):
     """A regression in 5% noise, more current samples."""
     flat = ComparisonResult(min, False, False, [12.2821, 12.2141, 12.3077],
                             MS_5_REG[0:9], None, None)
     ret = flat.get_value_status()
     self.assertEquals(ret, REGRESSED)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:6,代碼來源:analysis.py

示例8: test_bimodal_regression

 def test_bimodal_regression(self):
     """A regression in a bimodal line."""
     bimodal = ComparisonResult(min, False, False, [BM_REGRESSION[12]],
                                BM_REGRESSION[0:11], None, None)
     self.assertEquals(bimodal.get_value_status(), REGRESSED)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:5,代碼來源:analysis.py

示例9: test_noise_bimodal_regression

 def test_noise_bimodal_regression(self):
     bimodal = ComparisonResult(
         min, False, False, [BM_REGS_NOISE[12]], BM_REGS_NOISE[0:11])
     self.assertEquals(bimodal.get_value_status(), REGRESSED)
開發者ID:BillSeurer,項目名稱:lnt,代碼行數:4,代碼來源:analysis.py

示例10: test_no_regression_flat_line_noise

 def test_no_regression_flat_line_noise(self):
     """Now 4% noise."""
     flat = ComparisonResult(
         min, False, False, [1.020], FLAT_NOISE[0:10], None, None)
     ret = flat.get_value_status()
     self.assertEquals(ret, UNCHANGED_PASS)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:6,代碼來源:analysis.py

示例11: test_noise_bimodal_alternating

 def test_noise_bimodal_alternating(self):
     """Bimodal alternating with 5% noise."""
     bimodal = ComparisonResult(min, False, False, [BM_AL_NOISE[10]],
                                BM_AL_NOISE[0:9], None, None)
     self.assertEquals(bimodal.get_value_status(), UNCHANGED_PASS)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:5,代碼來源:analysis.py

示例12: test_noticeable_regression

 def test_noticeable_regression(self):
     """Test a big looking jump."""
     regressed = ComparisonResult(
         min, False, False, [10.0, 10.1], [5.0, 5.1, 4.9, 5.0], None, None)
     self.assertEquals(regressed.get_value_status(), REGRESSED)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:5,代碼來源:analysis.py

示例13: test_no_regression_flat_line

 def test_no_regression_flat_line(self):
     """This is a flat line, it should have no changes."""
     flat = ComparisonResult(
         min, False, False, [1.0], FLAT_LINE[0:10], None, None)
     self.assertEquals(flat.get_value_status(), UNCHANGED_PASS)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:5,代碼來源:analysis.py

示例14: test_keep_on_failing_status

 def test_keep_on_failing_status(self):
     """Test getting a repeated fail."""
     improved = ComparisonResult(min, True, True, None, None, None, None)
     self.assertEquals(improved.get_test_status(), UNCHANGED_FAIL)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:4,代碼來源:analysis.py

示例15: test_regressed_status

 def test_regressed_status(self):
     """Test getting a test status improvement."""
     improved = ComparisonResult(min, True, False, None, [10.], None, None)
     self.assertEquals(improved.get_test_status(), REGRESSED)
開發者ID:couchbaselabs,項目名稱:cbnt,代碼行數:4,代碼來源:analysis.py


注:本文中的lnt.server.reporting.analysis.ComparisonResult類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。