2019-08-12 04:35:53 -04:00
|
|
|
package(default_visibility = ["//visibility:private"])
|
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ng_benchmark", "ng_rollup_bundle", "ts_library")
|
2019-08-12 04:35:53 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "perf_lib",
|
|
|
|
srcs = glob(
|
|
|
|
["**/*.ts"],
|
|
|
|
),
|
|
|
|
deps = [
|
|
|
|
"//packages/core",
|
2019-11-22 23:40:29 -05:00
|
|
|
"//packages/core/src/util",
|
2019-10-24 23:28:11 -04:00
|
|
|
"@npm//@types/jasmine",
|
2019-09-06 10:26:42 -04:00
|
|
|
"@npm//@types/node",
|
2019-08-12 04:35:53 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-10-24 23:28:11 -04:00
|
|
|
jasmine_node_test(
|
|
|
|
name = "perf",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-10-22 23:18:48 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "class_binding_lib",
|
2019-10-22 23:18:48 -04:00
|
|
|
entry_point = ":class_binding/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "class_binding",
|
|
|
|
bundle = ":class_binding_lib",
|
|
|
|
)
|
|
|
|
|
2019-11-13 10:14:56 -05:00
|
|
|
ng_rollup_bundle(
|
|
|
|
name = "directive_inputs_lib",
|
|
|
|
entry_point = ":directive_inputs/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ng_benchmark(
|
|
|
|
name = "directive_inputs",
|
|
|
|
bundle = ":directive_inputs_lib",
|
|
|
|
)
|
|
|
|
|
2019-10-10 10:00:25 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "directive_instantiate_lib",
|
2019-10-10 10:00:25 -04:00
|
|
|
entry_point = ":directive_instantiate/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "directive_instantiate",
|
|
|
|
bundle = ":directive_instantiate_lib",
|
|
|
|
)
|
|
|
|
|
2019-08-27 08:44:16 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "element_text_create_lib",
|
2019-08-27 08:44:16 -04:00
|
|
|
entry_point = ":element_text_create/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "element_text_create",
|
|
|
|
bundle = ":element_text_create_lib",
|
|
|
|
)
|
|
|
|
|
2019-08-12 04:35:53 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "interpolation_lib",
|
2019-08-12 06:31:15 -04:00
|
|
|
entry_point = ":interpolation/index.ts",
|
2019-08-12 04:35:53 -04:00
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
2019-08-12 06:31:15 -04:00
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "interpolation",
|
|
|
|
bundle = ":interpolation_lib",
|
|
|
|
)
|
|
|
|
|
2019-09-05 07:42:51 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "listeners_lib",
|
2019-09-05 07:42:51 -04:00
|
|
|
entry_point = ":listeners/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "listeners",
|
|
|
|
bundle = ":listeners_lib",
|
|
|
|
)
|
|
|
|
|
2019-08-12 06:31:15 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "noop_change_detection_lib",
|
2019-08-12 06:31:15 -04:00
|
|
|
entry_point = ":noop_change_detection/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
2019-08-12 06:47:26 -04:00
|
|
|
)
|
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "noop_change_detection",
|
|
|
|
bundle = ":noop_change_detection_lib",
|
|
|
|
)
|
|
|
|
|
2019-10-31 11:22:16 -04:00
|
|
|
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",
|
|
|
|
)
|
|
|
|
|
2019-08-12 06:47:26 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "property_binding_lib",
|
2019-08-12 06:47:26 -04:00
|
|
|
entry_point = ":property_binding/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
2019-08-12 08:41:52 -04:00
|
|
|
)
|
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "property_binding",
|
|
|
|
bundle = ":property_binding_lib",
|
|
|
|
)
|
|
|
|
|
2019-09-10 06:10:03 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "property_binding_update_lib",
|
2019-09-10 06:10:03 -04:00
|
|
|
entry_point = ":property_binding_update/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "property_binding_update",
|
|
|
|
bundle = ":property_binding_update_lib",
|
|
|
|
)
|
|
|
|
|
2019-08-12 08:41:52 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "style_binding_lib",
|
2019-08-12 08:41:52 -04:00
|
|
|
entry_point = ":style_binding/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
2019-08-29 12:26:50 -04:00
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "style_binding",
|
|
|
|
bundle = ":style_binding_lib",
|
|
|
|
)
|
|
|
|
|
2019-08-29 12:26:50 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "style_and_class_bindings_lib",
|
2019-08-29 12:26:50 -04:00
|
|
|
entry_point = ":style_and_class_bindings/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
2019-08-29 12:47:47 -04:00
|
|
|
|
2019-10-24 20:40:17 -04:00
|
|
|
ng_benchmark(
|
|
|
|
name = "style_and_class_bindings",
|
|
|
|
bundle = ":style_and_class_bindings_lib",
|
|
|
|
)
|
|
|
|
|
2019-08-29 12:47:47 -04:00
|
|
|
ng_rollup_bundle(
|
2019-10-24 20:40:17 -04:00
|
|
|
name = "map_based_style_and_class_bindings_lib",
|
2019-08-29 12:47:47 -04:00
|
|
|
entry_point = ":map_based_style_and_class_bindings/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
2019-10-24 20:40:17 -04:00
|
|
|
|
|
|
|
ng_benchmark(
|
|
|
|
name = "map_based_style_and_class_bindings",
|
|
|
|
bundle = ":map_based_style_and_class_bindings_lib",
|
|
|
|
)
|
2019-11-05 15:14:03 -05:00
|
|
|
|
|
|
|
ng_rollup_bundle(
|
|
|
|
name = "duplicate_style_and_class_bindings_lib",
|
|
|
|
entry_point = ":duplicate_style_and_class_bindings/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ng_benchmark(
|
|
|
|
name = "duplicate_style_and_class_bindings",
|
|
|
|
bundle = ":duplicate_style_and_class_bindings_lib",
|
|
|
|
)
|
2019-11-05 17:54:12 -05:00
|
|
|
|
|
|
|
ng_rollup_bundle(
|
|
|
|
name = "duplicate_map_based_style_and_class_bindings_lib",
|
|
|
|
entry_point = ":duplicate_map_based_style_and_class_bindings/index.ts",
|
|
|
|
deps = [
|
|
|
|
":perf_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ng_benchmark(
|
|
|
|
name = "duplicate_map_based_style_and_class_bindings",
|
|
|
|
bundle = ":duplicate_map_based_style_and_class_bindings_lib",
|
|
|
|
)
|