diff options
author | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-06 12:56:17 +0000 |
---|---|---|
committer | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-06 12:56:17 +0000 |
commit | 98b1450596aea8404b218579899b2cbce47296d0 (patch) | |
tree | f225939aecd65759828747880ec517b445258766 /chrome/test/perf | |
parent | d03a66d178f94685bb783b92240e8f7daf650c31 (diff) | |
download | chromium_src-98b1450596aea8404b218579899b2cbce47296d0.zip chromium_src-98b1450596aea8404b218579899b2cbce47296d0.tar.gz chromium_src-98b1450596aea8404b218579899b2cbce47296d0.tar.bz2 |
Run startup only with compositing.
The regression when using threaded compositing is about 10% (50ms) for
the longer tests, and 20% (15ms) for the shorter tests. The tests will
be re-baselined to absorb this.
BUG=178497
Review URL: https://chromiumcodereview.appspot.com/14942002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/perf')
-rw-r--r-- | chrome/test/perf/startup_test.cc | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/chrome/test/perf/startup_test.cc b/chrome/test/perf/startup_test.cc index 6eb01e2..55bee61 100644 --- a/chrome/test/perf/startup_test.cc +++ b/chrome/test/perf/startup_test.cc @@ -72,20 +72,6 @@ class StartupTest : public UIPerfTest { collect_profiling_stats_ = true; } - // Set the command line arguments to enable or disable FCM. - // http://crbug.com/178497 - void SetUpWithCompositingEnabledOnMac() { -#if defined(OS_MACOSX) - launch_arguments_.AppendSwitch(switches::kForceCompositingMode); -#endif - } - - void SetUpWithCompositingDisabledOnMac() { -#if defined(OS_MACOSX) - launch_arguments_.AppendSwitch(switches::kDisableForceCompositingMode); -#endif - } - // Load a complex html file on startup represented by |which_tab|. void SetUpWithComplexFileURL(unsigned int which_tab) { const char* const kTestPageCyclerDomains[] = { @@ -318,19 +304,10 @@ class StartupTest : public UIPerfTest { }; TEST_F(StartupTest, PerfWarm) { - SetUpWithCompositingDisabledOnMac(); RunStartupTest("warm", "t", WARM, IMPORTANT, UITestBase::DEFAULT_THEME, 0, 0); } -#if defined(OS_MACOSX) -TEST_F(StartupTest, PerfWarmFCM) { - SetUpWithCompositingEnabledOnMac(); - RunStartupTest("warm", "t_fcm", WARM, IMPORTANT, - UITestBase::DEFAULT_THEME, 0, 0); -} -#endif - TEST_F(StartupTest, PerfReferenceWarm) { UseReferenceBuild(); RunStartupTest("warm", "t_ref", WARM, IMPORTANT, @@ -347,19 +324,10 @@ TEST_F(StartupTest, PerfReferenceWarm) { #endif TEST_F(StartupTest, MAYBE_PerfCold) { - SetUpWithCompositingDisabledOnMac(); RunStartupTest("cold", "t", COLD, NOT_IMPORTANT, UITestBase::DEFAULT_THEME, 0, 0); } -#if defined(OS_MACOSX) -TEST_F(StartupTest, PerfColdFCM) { - SetUpWithCompositingEnabledOnMac(); - RunStartupTest("cold", "t_fcm", COLD, NOT_IMPORTANT, - UITestBase::DEFAULT_THEME, 0, 0); -} -#endif - void StartupTest::RunPerfTestWithManyTabs(const char* graph, const char* trace, int tab_count, int nth_timed_tab, bool restore_session) { @@ -404,34 +372,18 @@ void StartupTest::RunPerfTestWithManyTabs(const char* graph, const char* trace, #endif TEST_F(StartupTest, MAYBE_PerfFewTabs) { - SetUpWithCompositingDisabledOnMac(); RunPerfTestWithManyTabs("few_tabs", "cmdline", 5, 2, false); } -#if defined(OS_MACOSX) -TEST_F(StartupTest, PerfFewTabsFCM) { - SetUpWithCompositingEnabledOnMac(); - RunPerfTestWithManyTabs("few_tabs", "cmdline_fcm", 5, 2, false); -} -#endif - TEST_F(StartupTest, PerfFewTabsReference) { UseReferenceBuild(); RunPerfTestWithManyTabs("few_tabs", "cmdline-ref", 5, 2, false); } TEST_F(StartupTest, PerfRestoreFewTabs) { - SetUpWithCompositingDisabledOnMac(); RunPerfTestWithManyTabs("few_tabs", "restore", 5, 2, true); } -#if defined(OS_MACOSX) -TEST_F(StartupTest, PerfRestoreFewTabsFCM) { - SetUpWithCompositingEnabledOnMac(); - RunPerfTestWithManyTabs("few_tabs", "restore_fcm", 5, 2, true); -} -#endif - TEST_F(StartupTest, PerfRestoreFewTabsReference) { UseReferenceBuild(); RunPerfTestWithManyTabs("few_tabs", "restore-ref", 5, 2, true); @@ -489,41 +441,19 @@ TEST_F(StartupTest, PerfRestoreSeveralTabsReference) { } TEST_F(StartupTest, PerfExtensionEmpty) { - SetUpWithCompositingDisabledOnMac(); SetUpWithFileURL(); SetUpWithExtensionsProfile("empty"); RunStartupTest("warm", "extension_empty", WARM, NOT_IMPORTANT, UITestBase::DEFAULT_THEME, 1, 0); } -#if defined(OS_MACOSX) -TEST_F(StartupTest, PerfExtensionEmptyFCM) { - SetUpWithCompositingEnabledOnMac(); - SetUpWithFileURL(); - SetUpWithExtensionsProfile("empty"); - RunStartupTest("warm", "extension_empty_fcm", WARM, NOT_IMPORTANT, - UITestBase::DEFAULT_THEME, 1, 0); -} -#endif - TEST_F(StartupTest, PerfExtensionContentScript1) { - SetUpWithCompositingDisabledOnMac(); SetUpWithFileURL(); SetUpWithExtensionsProfile("content_scripts1"); RunStartupTest("warm", "extension_content_scripts1", WARM, NOT_IMPORTANT, UITestBase::DEFAULT_THEME, 1, 0); } -#if defined(OS_MACOSX) -TEST_F(StartupTest, PerfExtensionContentScript1FCM) { - SetUpWithCompositingEnabledOnMac(); - SetUpWithFileURL(); - SetUpWithExtensionsProfile("content_scripts1"); - RunStartupTest("warm", "extension_content_scripts1_fcm", WARM, NOT_IMPORTANT, - UITestBase::DEFAULT_THEME, 1, 0); -} -#endif - TEST_F(StartupTest, MAYBE_PerfExtensionContentScript50) { SetUpWithFileURL(); SetUpWithExtensionsProfile("content_scripts50"); @@ -537,21 +467,10 @@ TEST_F(StartupTest, MAYBE_PerfComplexTheme) { } TEST_F(StartupTest, ProfilingScript1) { - SetUpWithCompositingDisabledOnMac(); SetUpWithFileURL(); SetUpWithProfiling(); RunStartupTest("warm", "profiling_scripts1", WARM, NOT_IMPORTANT, UITestBase::DEFAULT_THEME, 1, 0); } -#if defined(OS_MACOSX) -TEST_F(StartupTest, ProfilingScript1FCM) { - SetUpWithCompositingEnabledOnMac(); - SetUpWithFileURL(); - SetUpWithProfiling(); - RunStartupTest("warm", "profiling_scripts1_fcm", WARM, NOT_IMPORTANT, - UITestBase::DEFAULT_THEME, 1, 0); -} -#endif - } // namespace |