Skip to content

Commit 5c1110f

Browse files
committed
test: add AIO benchmark
1 parent ae446b9 commit 5c1110f

File tree

8 files changed

+20371
-11571
lines changed

8 files changed

+20371
-11571
lines changed

.circleci/config.yml

+10
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ jobs:
9393
- attach_workspace: *attach_options
9494
- run: npm run admin -- build
9595

96+
benchmark:
97+
<<: *defaults
98+
steps:
99+
- attach_workspace: *attach_options
100+
- run: npm run admin -- build
101+
- run: npm run benchmark
102+
96103
build-bazel:
97104
<<: *defaults
98105
resource_class: large
@@ -155,6 +162,9 @@ workflows:
155162
- e2e-cli:
156163
requires:
157164
- build
165+
- benchmark:
166+
requires:
167+
- build
158168
- snapshot_publish:
159169
requires:
160170
- test

benchmark/aio/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ Thumbs.db
4747

4848
# copied dependencies
4949
# src/assets/js/lunr*
50+
51+
benchmark.log

benchmark/aio/BENCHMARK.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.

0 commit comments

Comments
 (0)