angular-docs-cn/packages/compiler-cli/test/compliance
JoostK b627f7f02e test(compiler-cli): improve test performance using shared source file cache (#38909)
Some compiler tests take a long time to run, even using multiple
executors. A profiling session revealed that most time is spent in
parsing source files, especially the default libraries are expensive to
parse.

The default library files are constant across all tests, so this commit
introduces a shared cache of parsed source files of the default
libraries. This achieves a significant improvement for several targets
on my machine:

//packages/compiler-cli/test/compliance: from 23s to 5s.
//packages/compiler-cli/test/ngtsc: from 115s to 11s.

Note that the number of shards for the compliance tests has been halved,
as the extra shards no longer provide any speedup.

PR Close #38909
2020-09-25 14:28:49 -04:00
..
BUILD.bazel test(compiler-cli): improve test performance using shared source file cache (#38909) 2020-09-25 14:28:49 -04:00
README.md build: migrate references and scripts that set to build with ivy via compile=aot to use config=ivy (#33983) 2019-11-26 16:38:40 -05:00
mock_compile.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
mock_compiler_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
r3_compiler_compliance_spec.ts test(core): enable test in compiler compliance for namespace uri (#38957) 2020-09-24 11:35:43 -04:00
r3_view_compiler_binding_spec.ts fix(compiler-cli): generate `let` statements in ES2015+ mode (#38775) 2020-09-21 12:27:27 -07:00
r3_view_compiler_di_spec.ts fix(compiler-cli): generate `let` statements in ES2015+ mode (#38775) 2020-09-21 12:27:27 -07:00
r3_view_compiler_directives_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
r3_view_compiler_i18n_spec.ts fix(compiler-cli): generate `let` statements in ES2015+ mode (#38775) 2020-09-21 12:27:27 -07:00
r3_view_compiler_input_outputs_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
r3_view_compiler_listener_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
r3_view_compiler_providers_spec.ts build: update to typescript 3.9.5 (#37456) 2020-06-11 12:05:33 -07:00
r3_view_compiler_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
r3_view_compiler_styling_spec.ts refactor(core): rename synthetic host property and listener instructions (#37145) 2020-07-21 09:09:24 -07:00
r3_view_compiler_template_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00

README.md

Tests in this directory should be run with:

yarn bazel test --config=ivy  packages/compiler-cli/test/compliance:compliance