Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: tools/perf/benchmarks/smoothness.py

Issue 1663053006: perf: Add a power benchmark for pages with heavy ads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unbreak cnn URL. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/benchmarks/power.py ('k') | tools/perf/page_sets/tough_ad_cases.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from benchmarks import silk_flags 7 from benchmarks import silk_flags
8 from measurements import smoothness 8 from measurements import smoothness
9 import page_sets 9 import page_sets
10 import page_sets.key_silk_cases 10 import page_sets.key_silk_cases
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 class SmoothnessToughTextureUploadCases(_Smoothness): 462 class SmoothnessToughTextureUploadCases(_Smoothness):
463 page_set = page_sets.ToughTextureUploadCasesPageSet 463 page_set = page_sets.ToughTextureUploadCasesPageSet
464 464
465 @classmethod 465 @classmethod
466 def Name(cls): 466 def Name(cls):
467 return 'smoothness.tough_texture_upload_cases' 467 return 'smoothness.tough_texture_upload_cases'
468 468
469 469
470 class SmoothnessToughAdCases(_Smoothness): 470 class SmoothnessToughAdCases(_Smoothness):
471 """Measures rendering statistics while displaying advertisements.""" 471 """Measures rendering statistics while displaying advertisements."""
472 page_set = page_sets.ToughAdCasesPageSet 472 page_set = page_sets.SyntheticToughAdCasesPageSet
473 473
474 @classmethod 474 @classmethod
475 def Name(cls): 475 def Name(cls):
476 return 'smoothness.tough_ad_cases' 476 return 'smoothness.tough_ad_cases'
477 477
478 @classmethod 478 @classmethod
479 def ShouldDisable(cls, possible_browser): 479 def ShouldDisable(cls, possible_browser):
480 return cls.IsSvelte(possible_browser) # http://crbug.com/555089 480 return cls.IsSvelte(possible_browser) # http://crbug.com/555089
481 481
482 # http://crbug.com/522619 (mac/win) 482 # http://crbug.com/522619 (mac/win)
(...skipping 17 matching lines...) Expand all
500 # Don't accidentally reload the page while scrolling. 500 # Don't accidentally reload the page while scrolling.
501 options.AppendExtraBrowserArgs('--disable-pull-to-refresh-effect') 501 options.AppendExtraBrowserArgs('--disable-pull-to-refresh-effect')
502 502
503 @classmethod 503 @classmethod
504 def Name(cls): 504 def Name(cls):
505 return 'smoothness.bidirectionally_scrolling_tough_ad_cases' 505 return 'smoothness.bidirectionally_scrolling_tough_ad_cases'
506 506
507 507
508 class SmoothnessToughWebGLAdCases(_Smoothness): 508 class SmoothnessToughWebGLAdCases(_Smoothness):
509 """Measures rendering statistics while scrolling advertisements.""" 509 """Measures rendering statistics while scrolling advertisements."""
510 page_set = page_sets.ToughWebglAdCasesPageSet 510 page_set = page_sets.SyntheticToughWebglAdCasesPageSet
511 511
512 @classmethod 512 @classmethod
513 def Name(cls): 513 def Name(cls):
514 return 'smoothness.tough_webgl_ad_cases' 514 return 'smoothness.tough_webgl_ad_cases'
515 515
516 @classmethod 516 @classmethod
517 def ShouldDisable(cls, possible_browser): 517 def ShouldDisable(cls, possible_browser):
518 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 518 return cls.IsSvelte(possible_browser) # http://crbug.com/574485
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/power.py ('k') | tools/perf/page_sets/tough_ad_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698