Commit 8cd8304
Add Python and JavaScript emitters to benchmark testing (#4525)
The benchmark engine was missing the Python and JavaScript emitters, so
their SDK generation performance was not being tracked.
## Changes
- **`packages/benchmark/package.json`** — added
`@azure-tools/typespec-python` and `@typespec/http-client-js` as
workspace dependencies
- **`specs/azure-arm-resource-manager/tspconfig.yaml`** — added Python
and JavaScript emitters
- **`specs/azure-core-dataplane/tspconfig.yaml`** — added Python emitter
with `package-mode: dataplane` and JavaScript emitter
- **`specs/azure-full/tspconfig.yaml`** — added Python emitter with
`package-mode: dataplane` and JavaScript emitter
Example config for the ARM spec:
```yaml
emit:
- "@azure-tools/typespec-autorest"
- "@azure-tools/typespec-python"
- "@typespec/http-client-js"
options:
"@azure-tools/typespec-python":
namespace: "azure.mgmt.contosobenchmark"
```
Emit timing for both emitters will now appear in benchmark comparisons
under `emit/@azure-tools/typespec-python` and
`emit/@typespec/http-client-js`.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>1 parent d0d2d7c commit 8cd8304
6 files changed
Lines changed: 29 additions & 3 deletions
File tree
- packages/benchmark
- specs
- azure-arm-resource-manager
- azure-core-dataplane
- azure-full
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments