-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit c44f016
Implements a benchmarking script (#5536)
**What's the problem this PR addresses?**
Making benchmarks required a little too much setup for me, so I made a
script to make it seamless.
**How did you fix it?**
Running `yarn bench` in the repository will spawn a shell inside a
temporary folder, with everything setup to run a benchmark when calling
`bench-run`. It doesn't handle yet parametrized benchmarks, but should
support comparing performances before/after.
Incidentally, the `yarn set version from sources` command now caches the
result, to avoid rebuilding the same commits.
**Checklist**
<!--- Don't worry if you miss something, chores are automatically
tested. -->
<!--- This checklist exists to help you remember doing the chores when
you submit a PR. -->
<!--- Put an `x` in all the boxes that apply. -->
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
<!-- See
https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released
for more details. -->
<!-- Check with `yarn version check` and fix with `yarn version check
-i` -->
- [x] I have set the packages that need to be released for my changes to
be effective.
<!-- The "Testing chores" workflow validates that your PR follows our
guidelines. -->
<!-- If it doesn't pass, click on it to see details as to what your PR
might be missing. -->
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.1 parent edf82db commit c44f016
File tree
6 files changed
+194
-11
lines changed- .yarn/versions
- packages/plugin-essentials/sources/commands/set/version
- scripts
6 files changed
+194
-11
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | + | ||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
95 | + | ||
96 | + | ||
97 | + | ||
94 | 98 | | |
95 | 99 | | |
Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | - | ||
31 | + | ||
32 | 32 | | |
33 | 33 | | |
34 | - | ||
34 | + | ||
35 | 35 | | |
36 | + | ||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| |||
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
103 | - | ||
108 | + | ||
109 | + | ||
104 | 110 | | |
105 | - | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
106 | 115 | | |
107 | - | ||
108 | 116 | | |
109 | 117 | | |
110 | - | ||
111 | - | ||
112 | - | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
113 | 122 | | |
114 | - | ||
115 | - | ||
123 | + | ||
124 | + | ||
125 | + | ||
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
| |||
167 | 177 | | |
168 | 178 | | |
169 | 179 | | |
170 | - | ||
180 | + | ||
171 | 181 | | |
172 | 182 | | |
173 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + | ||
132 | + | ||
133 | + | ||
134 | + | ||
135 | + | ||
136 | + | ||
137 | + | ||
138 | + | ||
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | ||
143 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7351 | 7351 | | |
7352 | 7352 | | |
7353 | 7353 | | |
7354 | + | ||
7354 | 7355 | | |
7355 | 7356 | | |
7356 | 7357 | | |
| |||
0 commit comments