simplify: - use same html file for dart and JS - build benchmarks automatically when doing `gulp build` - centralize configuration modularize: - move all build tasks into separate node.js modules under `tools/build`. changes: - the `build` folder is now the `dist` folder Closes #284
20 lines
760 B
JavaScript
20 lines
760 B
JavaScript
import * as instantiate_benchmark from './instantiate_benchmark';
|
|
import * as instantiate_directive_benchmark from './instantiate_directive_benchmark';
|
|
import * as instantiate_benchmark_codegen from './instantiate_benchmark_codegen';
|
|
|
|
import {benchmark, benchmarkStep} from 'benchpress/benchpress';
|
|
|
|
export function main() {
|
|
benchmark(`ElementInjector.instantiate + instantiateDirectives`, function() {
|
|
benchmarkStep('run', instantiate_benchmark.run);
|
|
});
|
|
|
|
benchmark(`ElementInjector.instantiateDirectives`, function() {
|
|
benchmarkStep('run', instantiate_directive_benchmark.run);
|
|
});
|
|
|
|
benchmark(`ElementInjector.instantiate + instantiateDirectives (codegen)`, function() {
|
|
benchmarkStep('run', instantiate_benchmark_codegen.run);
|
|
});
|
|
}
|