@@ -161,8 +161,7 @@ def prepare_browser(self, task):
161
161
# DevTools-based CPU throttling for desktop and emulated mobile tests
162
162
# This throttling should only be applied for lighthouse test runs where
163
163
# a custom config path is not specified
164
- if not self .options .android and not self .is_webkit and 'throttle_cpu' in self .job and \
165
- (not task ['running_lighthouse' ] or not self .job ['lighthouse_config' ]):
164
+ if not self .options .android and not self .is_webkit and 'throttle_cpu' in self .job :
166
165
logging .debug ('DevTools CPU Throttle target: %0.3fx' , self .job ['throttle_cpu' ])
167
166
if self .job ['throttle_cpu' ] > 1 :
168
167
self .devtools .send_command ("Emulation.setCPUThrottlingRate" ,
@@ -787,15 +786,7 @@ def run_lighthouse_test(self, task):
787
786
except Exception :
788
787
logging .exception ('Error adding custom config for lighthouse test' )
789
788
else :
790
- if not self .options .android and 'throttle_cpu' in self .job and self .job ['throttle_cpu' ] > 1 :
791
- throttle_amount = min (4.0 , self .job ['throttle_cpu' ])
792
- command .extend (['--throttling-method' , 'devtools' ,
793
- '--throttling.requestLatencyMs' , '0' ,
794
- '--throttling.downloadThroughputKbps' , '0' ,
795
- '--throttling.uploadThroughputKbps' , '0' ,
796
- '--throttling.cpuSlowdownMultiplier' , '{:.3f}' .format (throttle_amount )])
797
- else :
798
- command .extend (['--throttling-method' , 'provided' ])
789
+ command .extend (['--throttling-method' , 'provided' ])
799
790
if self .job ['keep_lighthouse_trace' ]:
800
791
command .append ('--save-assets' )
801
792
if not self .job ['keep_lighthouse_screenshots' ]:
0 commit comments