1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/runtime/js
Marcos Casagrande 0832ba1deb
perf(runtime/spawn): collect output using op_read_all (#16596)
**This patch**
```
benchmark      time (avg)             (min … max)       p75       p99      p995
------------------------------------------------- -----------------------------
echo deno   23.99 ms/iter   (22.51 ms … 33.61 ms)  23.97 ms  33.61 ms  33.61 ms
cat 16kb    24.27 ms/iter    (22.5 ms … 35.21 ms)   24.2 ms  35.21 ms  35.21 ms
cat 1mb     25.88 ms/iter   (25.04 ms … 30.28 ms)  26.12 ms  30.28 ms  30.28 ms
cat 15mb    38.41 ms/iter       (35.7 ms … 50 ms)  38.31 ms     50 ms     50 ms
```

**main**
```
benchmark      time (avg)             (min … max)       p75       p99      p995
------------------------------------------------- -----------------------------
echo deno   35.66 ms/iter   (34.53 ms … 41.84 ms)  35.79 ms  41.84 ms  41.84 ms
cat 16kb    35.99 ms/iter   (34.52 ms … 44.94 ms)  36.05 ms  44.94 ms  44.94 ms
cat 1mb     38.68 ms/iter   (36.67 ms … 50.44 ms)  37.95 ms  50.44 ms  50.44 ms
cat 15mb     48.4 ms/iter   (46.19 ms … 58.41 ms)  49.16 ms  58.41 ms  58.41 ms
```
2022-11-15 14:06:52 +01:00
..
01_build.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_errors.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_version.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_web_util.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
06_util.js refactor: cleanup assert() & AssertionError definitions (#13859) 2022-03-19 13:57:37 +01:00
10_permissions.js experiment(ext/web): Don't expose event classes during the bootstrap phase (#16213) 2022-10-24 16:14:17 +02:00
11_workers.js experiment(ext/web): Don't expose event classes during the bootstrap phase (#16213) 2022-10-24 16:14:17 +02:00
12_io.js refactor(runtime/io): use primordials (#15906) 2022-09-15 13:35:41 +05:30
13_buffer.js refactor: cleanup assert() & AssertionError definitions (#13859) 2022-03-19 13:57:37 +01:00
30_fs.js perf: fs optimizations - part 1 (#15873) 2022-09-22 14:39:25 +05:30
30_os.js chore(unstable): rename Deno.getUid() and Deno.getGid() (#16432) 2022-10-26 16:37:48 -04:00
40_diagnostics.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
40_files.js feat(core): add Deno.core.writeAll(rid, chunk) (#16228) 2022-10-10 10:28:35 +02:00
40_fs_events.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_http.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_process.js feat(runtime): make kill signal optional (#16299) 2022-10-26 19:53:16 +02:00
40_read_file.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_signals.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_spawn.js perf(runtime/spawn): collect output using op_read_all (#16596) 2022-11-15 14:06:52 +01:00
40_testing.js feat: Stabilize Deno.bench() and 'deno bench' subcommand (#16485) 2022-11-11 00:22:14 +01:00
40_tty.js feat: Stabilize Deno.consoleSize() API (#15933) 2022-10-26 00:23:21 +02:00
40_write_file.js perf(runtime): flatten arguments for write_file ops (#15776) 2022-09-05 17:20:48 +05:30
41_prompt.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
90_deno_ns.js feat(unstable): "Deno.Command()" API (#16516) 2022-11-13 14:00:24 -05:00
99_main.js feat: don't require --unstable flag for npm programs (#16520) 2022-11-10 22:03:28 +01:00
README.md feat: add --location=<href> and globalThis.location (#7369) 2021-01-07 19:06:08 +01:00

Runtime JavaScript Code

This directory contains Deno runtime code written in plain JavaScript.

Each file is a plain, old script, not ES modules. The reason is that snapshotting ES modules is much harder, especially if one needs to manipulate global scope (like in case of Deno).

Each file is prefixed with a number, telling in which order scripts should be loaded into V8 isolate. This is temporary solution and we're striving not to require specific order (though it's not 100% obvious if that's feasible).

Deno Web APIs

This directory facilities Web APIs that are available in Deno.

Please note, that some implementations might not be completely aligned with specification.

Some Web APIs are using ops under the hood, eg. console, performance.

Implemented Web APIs