2020-07-14 19:24:17 +00:00
|
|
|
{
|
|
|
|
"typescript": {
|
|
|
|
"deno": true
|
|
|
|
},
|
|
|
|
"markdown": {
|
2021-03-10 13:17:24 +00:00
|
|
|
"deno": true
|
|
|
|
},
|
|
|
|
"json": {
|
|
|
|
"deno": true
|
2020-07-14 19:24:17 +00:00
|
|
|
},
|
2022-02-21 17:47:08 +00:00
|
|
|
"exec": {
|
2023-07-31 15:10:10 +00:00
|
|
|
"commands": [{
|
|
|
|
"command": "rustfmt --config imports_granularity=item",
|
|
|
|
"exts": ["rs"]
|
|
|
|
}]
|
2022-02-21 17:47:08 +00:00
|
|
|
},
|
2020-07-14 19:24:17 +00:00
|
|
|
"excludes": [
|
|
|
|
".cargo_home",
|
2020-11-09 19:56:43 +00:00
|
|
|
".git",
|
2022-01-18 11:58:50 +00:00
|
|
|
"cli/bench/testdata/express-router.js",
|
2023-07-31 15:10:10 +00:00
|
|
|
"cli/bench/testdata/npm/",
|
chore(lsp): Add benchmark for performance on a large real-world repo (#23395)
This PR adds a benchmark intended to measure how the LSP handles larger
repos, as well as its performance on a more realistic workload.
The repo being benchmarked is
[deco-cx/apps](https://github.com/deco-cx/apps) which has been vendored
along with its dependencies. It's included as a git submodule as its
fairly large. The LSP requests used in the benchmark are the actual
requests sent by VSCode as I opened, modified, and navigated around a
file (to simulate an actual user interaction).
The main motivation is to have a more realistic benchmark that measures
how we do with a large number of files and dependencies. The
improvements made from 1.42 to 1.42.3 mostly improved performance with
larger repos, so none of our existing benchmarks showed an improvement.
Here are the results for the changes made from 1.42 to 1.42.3 (the new
benchmark is the last one listed):
**1.42.0**
```test
Starting Deno benchmark
-> Start benchmarking lsp
- Simple Startup/Shutdown
(10 runs, mean: 379ms)
- Big Document/Several Edits
(5 runs, mean: 1142ms)
- Find/Replace
(10 runs, mean: 51ms)
- Code Lens
(10 runs, mean: 443ms)
- deco-cx/apps Multiple Edits + Navigation
(5 runs, mean: 25121ms)
<- End benchmarking lsp
```
**1.42.3**
```text
Starting Deno benchmark
-> Start benchmarking lsp
- Simple Startup/Shutdown
(10 runs, mean: 383ms)
- Big Document/Several Edits
(5 runs, mean: 1135ms)
- Find/Replace
(10 runs, mean: 55ms)
- Code Lens
(10 runs, mean: 440ms)
- deco-cx/apps Multiple Edits + Navigation
(5 runs, mean: 11675ms)
<- End benchmarking lsp
```
2024-04-16 19:26:51 +00:00
|
|
|
"cli/bench/testdata/lsp_benchdata/",
|
2023-03-21 21:01:53 +00:00
|
|
|
"cli/tsc/dts/lib.d.ts",
|
|
|
|
"cli/tsc/dts/lib.scripthost.d.ts",
|
|
|
|
"cli/tsc/dts/lib.decorators*.d.ts",
|
|
|
|
"cli/tsc/dts/lib.webworker*.d.ts",
|
|
|
|
"cli/tsc/dts/lib.dom*.d.ts",
|
|
|
|
"cli/tsc/dts/lib.es*.d.ts",
|
|
|
|
"cli/tsc/dts/typescript.d.ts",
|
2024-03-05 20:49:21 +00:00
|
|
|
"tests/node_compat/test",
|
2024-05-07 01:06:01 +00:00
|
|
|
"tests/registry/",
|
chore: move cli/tests/ -> tests/ (#22369)
This looks like a massive PR, but it's only a move from cli/tests ->
tests, and updates of relative paths for files.
This is the first step towards aggregate all of the integration test
files under tests/, which will lead to a set of integration tests that
can run without the CLI binary being built.
While we could leave these tests under `cli`, it would require us to
keep a more complex directory structure for the various test runners. In
addition, we have a lot of complexity to ignore various test files in
the `cli` project itself (cargo publish exclusion rules, autotests =
false, etc).
And finally, the `tests/` folder will eventually house the `test_ffi`,
`test_napi` and other testing code, reducing the size of the root repo
directory.
For easier review, the extremely large and noisy "move" is in the first
commit (with no changes -- just a move), while the remainder of the
changes to actual files is in the second commit.
2024-02-10 20:22:13 +00:00
|
|
|
"tests/testdata/file_extensions/ts_with_js_extension.js",
|
|
|
|
"tests/testdata/fmt/badly_formatted.json",
|
|
|
|
"tests/testdata/fmt/badly_formatted.md",
|
|
|
|
"tests/testdata/fmt/badly_formatted.ipynb",
|
|
|
|
"tests/testdata/byte_order_mark.ts",
|
|
|
|
"tests/testdata/encoding",
|
|
|
|
"tests/testdata/fmt/",
|
|
|
|
"tests/testdata/lint/glob/",
|
|
|
|
"tests/testdata/test/glob/",
|
|
|
|
"tests/testdata/import_attributes/json_with_shebang.json",
|
|
|
|
"tests/testdata/run/error_syntax_empty_trailing_line.mjs",
|
|
|
|
"tests/testdata/run/inline_js_source_map*",
|
|
|
|
"tests/testdata/malformed_config/",
|
|
|
|
"tests/testdata/test/markdown_windows.md",
|
2020-07-22 16:03:46 +00:00
|
|
|
"cli/tsc/*typescript.js",
|
2020-07-16 19:57:19 +00:00
|
|
|
"gh-pages",
|
2020-07-14 19:24:17 +00:00
|
|
|
"target",
|
2024-02-12 20:46:50 +00:00
|
|
|
"tests/ffi/tests/test.js",
|
2024-02-13 16:22:49 +00:00
|
|
|
"tests/util/std",
|
2024-02-16 03:32:28 +00:00
|
|
|
"tests/wpt/suite",
|
2021-01-27 14:06:18 +00:00
|
|
|
"third_party",
|
2024-04-02 22:24:55 +00:00
|
|
|
"tests/node_compat/runner/TODO.md",
|
|
|
|
"tests/node_compat/runner/suite",
|
2024-03-05 00:41:16 +00:00
|
|
|
"tests/wpt/runner/expectation.json",
|
|
|
|
"tests/wpt/runner/manifest.json",
|
2023-05-01 12:37:32 +00:00
|
|
|
"ext/websocket/autobahn/reports"
|
2020-07-14 19:24:17 +00:00
|
|
|
],
|
|
|
|
"plugins": [
|
2024-05-06 01:58:56 +00:00
|
|
|
"https://plugins.dprint.dev/typescript-0.90.5.wasm",
|
2024-02-23 21:11:45 +00:00
|
|
|
"https://plugins.dprint.dev/json-0.19.2.wasm",
|
2024-04-29 18:29:00 +00:00
|
|
|
"https://plugins.dprint.dev/markdown-0.17.0.wasm",
|
2024-02-23 21:11:45 +00:00
|
|
|
"https://plugins.dprint.dev/toml-0.6.1.wasm",
|
2023-11-20 23:38:06 +00:00
|
|
|
"https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7"
|
2020-07-14 19:24:17 +00:00
|
|
|
]
|
|
|
|
}
|