Skip to content
Permalink
Browse files

perf(ivy): run tree benchmark with bundles and ngDevMode off (#32558)

PR Close #32558
  • Loading branch information...
pkozlowski-opensource authored and matsko committed Sep 9, 2019
1 parent 2895edc commit c3a1ef219e5bab920e18232ebdb50cb5ddca5391
Showing with 13 additions and 10 deletions.
  1. +13 −10 modules/benchmarks/src/tree/ng2/BUILD.bazel
@@ -1,4 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")

@@ -22,25 +22,28 @@ ng_module(
],
)

ng_rollup_bundle(
name = "bundle",
entry_point = ":index_aot.ts",
deps = [
":ng2",
"@npm//rxjs",
],
)

ts_devserver(
name = "devserver",
entry_module = "angular/modules/benchmarks/src/tree/ng2/index",
name = "prodserver",
index_html = "index.html",
port = 4200,
scripts = [
"@npm//:node_modules/tslib/tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
":bundle.min_debug.es2015.js",
"@npm//:node_modules/zone.js/dist/zone.js",
"@npm//:node_modules/reflect-metadata/Reflect.js",
],
deps = [":ng2"],
)

benchmark_test(
name = "perf",
server = ":devserver",
server = ":prodserver",
deps = [
"//modules/benchmarks/src/tree:perf_detect_changes_lib",
"//modules/benchmarks/src/tree:perf_lib",

0 comments on commit c3a1ef2

Please sign in to comment.
You can’t perform that action at this time.