1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/tests/specs/compile/no_code_cache/__test__.jsonc
David Sherret dd4570ed85
perf(compile): code cache (#26528)
Adds a lazily created code cache to `deno compile` by default.

The code cache is created on first run to a single file in the temp
directory and is only written once. After it's been written, the code
cache becomes read only on subsequent runs. Only the modules loaded
during startup are cached (dynamic imports are not code cached).

The code cache can be disabled by compiling with `--no-code-cache`.
2024-11-18 20:09:28 +00:00

22 lines
537 B
Text

{
"tempDir": true,
"steps": [{
"if": "unix",
"args": "compile --output no_code_cache --no-code-cache --log-level=debug main.ts",
"output": "[WILDCARD]"
}, {
"if": "unix",
"commandName": "./no_code_cache",
"args": [],
"output": "main.out"
}, {
"if": "windows",
"args": "compile --output no_code_cache.exe --no-code-cache --log-level=debug main.ts",
"output": "[WILDCARD]"
}, {
"if": "windows",
"commandName": "./no_code_cache.exe",
"args": [],
"output": "main.out"
}]
}