angular-docs-cn/modules/benchmarks
Paul Gschwendtner 7115e7c427 build: remove outdated polymer tree benchmark (#28568)
The "tree/polymer_leaves" benchmark has no benchmark tests, nor do we install
Polymer anywhere. Polymer was previously installed through `bower`, but since
we removed bower, there is no easy way to run this benchmark with Polymer.

Considering that there are no benchmark tests, nor we have an easy way to
install/vendor Polymer, we should just remove this benchmark app.

This is also based on the assumption that we want to remove the
Polymer benchmarks anyway: see: 8a05199fb9

PR Close #28568
2019-02-08 13:37:36 -08:00
..
e2e_test build: run tree benchmark tests with bazel (#28568) 2019-02-08 13:37:36 -08:00
src build: remove outdated polymer tree benchmark (#28568) 2019-02-08 13:37:36 -08:00
BUILD.bazel build: serve benchmark tree examples with bazel (#28568) 2019-02-08 13:37:36 -08:00
README.md build: remove "build.sh" script (#27937) 2019-01-07 15:35:09 -08:00
benchmark_test.bzl build: run tree benchmark tests with bazel (#28568) 2019-02-08 13:37:36 -08:00
favicon.ico refactor(benchmarks): make tree benchmark work again 2016-08-29 12:42:57 -07:00
start-server.js build: run tree benchmark tests with bazel (#28568) 2019-02-08 13:37:36 -08:00
tsconfig-build.json build: serve benchmark tree examples with bazel (#28568) 2019-02-08 13:37:36 -08:00

README.md

How to run the benchmarks locally

Run in the browser

# Build the Angular packages.
yarn tsc -p packages/

# Build the e2e tests which are part of the "modules/"
./modules/build.sh

# Start server that serves all benchmark e2e apps.
yarn gulp serve

Now you can open benchmark e2e apps using their appropriate URLs. For example:

http://localhost:8000/all/benchmarks/src/tree/ng2/index.html

Run e2e tests

export NODE_PATH=(pwd)/dist/all:$(pwd)/dist/tools $ ./node_modules/.bin/protractor protractor-e2e.conf.js --specs=dist/all/benchmarks/e2e_test/tree_spec.js

Options for protractor with protractor-e2e.conf.js:

  • --bundles=true: use prebuilt bundles
  • --ng-help: show all available options

Run benchmarks tests

export NODE_PATH=(pwd)/dist/all:$(pwd)/dist/tools $ ./node_modules/.bin/protractor protractor-perf.conf.js --specs=dist/all/benchmarks/e2e_test/tree_perf.js

Options for protractor with protractor-perf.conf.js:

  • --bundles=true: use prebuilt bundles
  • --ng-help: show all available options

Compile *_aot.ts files

These files are compiled as part of the compiler_cli integration tests. See @angular/compile_cli/integrationtest/tsconfig.json