benchmarks: add ng2_ftl and ng2_switch_ftl benchmarks (#11963)

These benchmarks take the output of AoT
and manually tweaks it to explore possible
future changes to the compiler to produce
this output directly.
This commit is contained in:
Tobias Bosch
2016-09-30 09:09:31 -07:00
committed by Chuck Jazdzewski
parent 42b4b6d21b
commit df1822fc2a
22 changed files with 1824 additions and 10 deletions

View File

@ -34,7 +34,9 @@ export function openBrowser(config: {
browser.ignoreSynchronization = true;
}
var params = config.params || [];
params = params.concat([{name: 'bundles', value: cmdArgs.bundles}]);
if (!params.some((param) => param.name === 'bundles')) {
params = params.concat([{name: 'bundles', value: cmdArgs.bundles}]);
}
var urlParams: string[] = [];
params.forEach((param) => { urlParams.push(param.name + '=' + param.value); });