angular-cn/packages/core/test/render3/perf/BUILD.bazel

179 lines
3.2 KiB
Python

package(default_visibility = ["//visibility:private"])
load("//tools:defaults.bzl", "jasmine_node_test", "ng_benchmark", "ng_rollup_bundle", "ts_library")
ts_library(
name = "perf_lib",
srcs = glob(
["**/*.ts"],
),
deps = [
"//packages/core",
"@npm//@types/jasmine",
"@npm//@types/node",
],
)
jasmine_node_test(
name = "perf",
deps = [
":perf_lib",
],
)
ng_rollup_bundle(
name = "class_binding_lib",
entry_point = ":class_binding/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "class_binding",
bundle = ":class_binding_lib",
)
ng_rollup_bundle(
name = "directive_instantiate_lib",
entry_point = ":directive_instantiate/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "directive_instantiate",
bundle = ":directive_instantiate_lib",
)
ng_rollup_bundle(
name = "element_text_create_lib",
entry_point = ":element_text_create/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "element_text_create",
bundle = ":element_text_create_lib",
)
ng_rollup_bundle(
name = "interpolation_lib",
entry_point = ":interpolation/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "interpolation",
bundle = ":interpolation_lib",
)
ng_rollup_bundle(
name = "listeners_lib",
entry_point = ":listeners/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "listeners",
bundle = ":listeners_lib",
)
ng_rollup_bundle(
name = "noop_change_detection_lib",
entry_point = ":noop_change_detection/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "noop_change_detection",
bundle = ":noop_change_detection_lib",
)
ng_rollup_bundle(
name = "ng_template_lib",
entry_point = ":ng_template/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "ng_template",
bundle = ":ng_template_lib",
)
ng_rollup_bundle(
name = "property_binding_lib",
entry_point = ":property_binding/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "property_binding",
bundle = ":property_binding_lib",
)
ng_rollup_bundle(
name = "property_binding_update_lib",
entry_point = ":property_binding_update/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "property_binding_update",
bundle = ":property_binding_update_lib",
)
ng_rollup_bundle(
name = "style_binding_lib",
entry_point = ":style_binding/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "style_binding",
bundle = ":style_binding_lib",
)
ng_rollup_bundle(
name = "style_and_class_bindings_lib",
entry_point = ":style_and_class_bindings/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "style_and_class_bindings",
bundle = ":style_and_class_bindings_lib",
)
ng_rollup_bundle(
name = "map_based_style_and_class_bindings_lib",
entry_point = ":map_based_style_and_class_bindings/index.ts",
deps = [
":perf_lib",
],
)
ng_benchmark(
name = "map_based_style_and_class_bindings",
bundle = ":map_based_style_and_class_bindings_lib",
)