deno/cli
Matt Mastracci 3fd4b882a4
perf(cli): faster standalone executable determination (#22717)
This was showing up on the flamegraph.

```
14:54 $ hyperfine -S none --warmup 25 '/tmp/deno run /tmp/empty.js' 'target/release/deno run /tmp/empty.js'
Benchmark 1: /tmp/deno run /tmp/empty.js
  Time (mean ± σ):      17.2 ms ±   4.7 ms    [User: 11.2 ms, System: 4.0 ms]
  Range (min … max):    15.1 ms …  72.9 ms    172 runs
 
  Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.
 
Benchmark 2: target/release/deno run /tmp/empty.js
  Time (mean ± σ):      16.7 ms ±   1.1 ms    [User: 11.1 ms, System: 4.0 ms]
  Range (min … max):    15.0 ms …  20.1 ms    189 runs
 
Summary
  'target/release/deno run /tmp/empty.js' ran
    1.03 ± 0.29 times faster than '/tmp/deno run /tmp/empty.js'
✔ ~/Documents/github/deno/deno [faster_extract|…5⚑ 23] 
```
2024-03-05 15:14:49 -07:00
..
args refactor: move deno json functionality to args module (#22710) 2024-03-05 15:45:44 -05:00
bench chore: move test_util/std to tests/util/std (#22402) 2024-02-13 09:22:49 -07:00
cache perf(jsr): fast check cache and lazy fast check graph (#22485) 2024-02-20 21:29:57 +00:00
js perf(cli): reduce overhead in test registration (#22552) 2024-02-27 20:30:17 -07:00
lsp chore: upgrade deno_core (#22699) 2024-03-05 01:17:39 +00:00
napi chore: forward v1.41.1 release commit to main (#22643) 2024-02-29 20:56:08 -05:00
npm feat(lockfile): track JSR and npm dependencies in config file (#22004) 2024-01-22 22:31:12 +01:00
ops perf(cli): reduce overhead in test registration (#22552) 2024-02-27 20:30:17 -07:00
schemas fix(lsp): add schema for JSR related config options (#22497) 2024-02-20 13:49:24 +00:00
standalone perf(cli): faster standalone executable determination (#22717) 2024-03-05 15:14:49 -07:00
tools refactor: move deno json functionality to args module (#22710) 2024-03-05 15:45:44 -05:00
tsc chore: upgrade deno_core (#22699) 2024-03-05 01:17:39 +00:00
util feat(publish): support sloppy imports and bare node built-ins (#22588) 2024-02-27 15:13:16 +00:00
auth_tokens.rs fix(cli): Add IP address support to DENO_AUTH_TOKEN (#22297) 2024-02-06 19:45:40 +01:00
build.rs chore: upgrade deno_core (#22699) 2024-03-05 01:17:39 +00:00
Cargo.toml chore: forward v1.41.1 release commit to main (#22643) 2024-02-29 20:56:08 -05:00
cdp.rs refactor(tools/repl): reorganize code (#21810) 2024-01-05 16:14:58 +01:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_std.rs chore: forward v1.41.1 release commit to main (#22643) 2024-02-29 20:56:08 -05:00
emit.rs refactor: load bytes in deno_graph (#22212) 2024-02-01 03:15:22 +00:00
entitlements.plist chore: start codesigning mac release builds (#21303) 2023-11-23 15:30:26 -07:00
errors.rs fix: upgrade to deno_ast 0.33 (#22341) 2024-02-09 01:40:26 +00:00
factory.rs refactor: move deno json functionality to args module (#22710) 2024-03-05 15:45:44 -05:00
file_fetcher.rs feat(unstable/pm): support version contraints in 'deno add' (#22646) 2024-03-01 21:34:13 +00:00
graph_util.rs chore: fix typos (#22677) 2024-03-04 14:28:57 +00:00
http_util.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
integration_tests_runner.rs chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00
js.rs chore: upgrade deno_core (#22699) 2024-03-05 01:17:39 +00:00
jsr.rs feat(lsp): include registry url in jsr import hover text (#22676) 2024-03-04 15:48:23 +00:00
main.rs perf(cli): faster standalone executable determination (#22717) 2024-03-05 15:14:49 -07:00
mainrt.rs perf(cli): faster standalone executable determination (#22717) 2024-03-05 15:14:49 -07:00
module_loader.rs fix(jsr): do not allow importing a non-JSR url via unanalyzable dynamic import from JSR (#22623) 2024-02-28 16:30:45 -05:00
node.rs fix: upgrade to deno_ast 0.33 (#22341) 2024-02-09 01:40:26 +00:00
README.md docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs fix(unstable): sloppy imports should resolve .d.ts files during types resolution (#22602) 2024-02-27 18:30:21 +00:00
version.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
worker.rs chore: upgrade deno_core (#22699) 2024-03-05 01:17:39 +00:00

Deno CLI Crate

crates

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.