feat(benchmarks): add detectChanges test for ng2 tree benchmark

This commit is contained in:
Tobias Bosch
2016-12-28 15:26:49 -08:00
committed by Igor Minar
parent c5c53f3666
commit 50e5cb15dd
5 changed files with 44 additions and 3 deletions

View File

@ -35,9 +35,12 @@ export function runBenchmark(config: {
microMetrics?: {[key: string]: string},
work?: () => void,
prepare?: () => void,
setup?: () => void
}): Promise<any> {
openBrowser(config);
if (config.setup) {
config.setup();
}
const description: {[key: string]: any} = {'bundles': cmdArgs.bundles};
config.params.forEach((param) => { description[param.name] = param.value; });
return runner.sample({