File tree 8 files changed +20379
-11571
lines changed
8 files changed +20379
-11571
lines changed Original file line number Diff line number Diff line change 14
14
# `com_github_bazelbuild_buildtools` in the `/WORKSPACE` file.
15
15
var_1 : &docker_image angular/ngcontainer:0.3.3
16
16
var_2 : &cache_key angular_devkit-{{ checksum "yarn.lock" }}-0.3.3-2
17
+ var_3 : &benchmark_aio_cache_key angular_devkit-benchmark-aio{{ checksum "benchmark/aio/package-lock.json" }}-0.3.3-2
17
18
18
19
# Settings common to each job
19
20
anchor_1 : &defaults
@@ -30,6 +31,8 @@ anchor_3: &root_package_lock_key
30
31
key : *cache_key
31
32
anchor_4 : &attach_options
32
33
at : .
34
+ anchor_5 : &benchmark_aio_package_lock_key
35
+ key : *benchmark_aio_cache_key
33
36
34
37
# Job definitions
35
38
version : 2
93
96
- attach_workspace : *attach_options
94
97
- run : npm run admin -- build
95
98
99
+ benchmark :
100
+ << : *defaults
101
+ steps :
102
+ - attach_workspace : *attach_options
103
+ - restore_cache : *benchmark_aio_package_lock_key
104
+ - run : npm run admin -- build
105
+ - run : npm run benchmark
106
+ - save_cache :
107
+ << : *benchmark_aio_package_lock_key
108
+ paths :
109
+ - benchmark/aio/node_modules
110
+
96
111
build-bazel :
97
112
<< : *defaults
98
113
resource_class : large
@@ -155,6 +170,9 @@ workflows:
155
170
- e2e-cli :
156
171
requires :
157
172
- build
173
+ - benchmark :
174
+ requires :
175
+ - build
158
176
- snapshot_publish :
159
177
requires :
160
178
- test
Original file line number Diff line number Diff line change @@ -47,3 +47,5 @@ Thumbs.db
47
47
48
48
# copied dependencies
49
49
# src/assets/js/lunr*
50
+
51
+ benchmark.log
Original file line number Diff line number Diff line change
1
+ # Benchmark notes for AIO
2
+
3
+ ## Snapshot info
4
+ Repository: https://github.com/angular/angular (inside the ` aio ` folder)
5
+ Commit: 268cf7989 docs: release notes for the v6.1.5 release
6
+
7
+ ## Running the benchmark
8
+
9
+ ```
10
+ npm install
11
+ npm run benchmark
12
+ ```
13
+
14
+ ## Modifications
15
+ - Added devDependency ` "@angular-devkit/benchmark": "file:../../dist/@angular-devkit_benchmark.tgz", `
16
+ - Added devDependency ` "@angular-devkit/build-angular": "file:../../dist/@angular-devkit_build-angular.tgz", `
17
+ - Removed devDependency ` "@angular-devkit/build-angular": "0.6.7", `
18
+ - Removed npm script ` "preinstall": "node ../tools/yarn/check-yarn.js", `
19
+ - Added npm script ` "benchmark": "benchmark --output-file=benchmark.log -- ng build --configuration=stable", `
20
+ - Added artifacts from ` yarn setup ` to git (` /src/generated/ ` and ` src/assets/js ` )
21
+ - Unignored artifacts from ` yarn setup ` in gitignore
22
+ - Ignore ` benchmark.log ` in gitignore
23
+
24
+ ## Notes
25
+ This benchmark does not run the ` setup ` script because it has prebuilt its artifacts (
26
+ ` /src/generated/ ` and ` src/assets/js ` ).
27
+
28
+ The original repository uses ` yarn ` instead of ` npm ` , but adding local file paths to ` package.json `
29
+ seems to make yarn hang so we used ` npm ` instead.
You can’t perform that action at this time.
0 commit comments