Visual Studio Code, rebuilt in Rust
Rust
docs(bench): label the memory numbers MiB
rokartur53b172de6783
diff --git a/port/ledger.md b/port/ledger.mdindex b2016ee9e2d..7f88d1d464b 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -758,7 +758,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| gallery/open-vsx | cross-cutting check | M18 | verified | | exthost/src/gallery.rs: query, latest-version resource, version choice, download with signature check; cargo test -p exthost gallery (upstream extensionGalleryService.test.ts sorting and filterLatestExtensionVersionsForTargetPlatform cases, Open VSX resource fixture); `workbench.extensions.installExtension redhat.vscode-yaml` downloads 2.0.0 from open-vsx.org, verifies it and activates without restart, not-found errors as upstream: PORT_GALLERY=1 port/tools/extensions-check || port/settings-import | port feature | M10 | verified | | app/src/settings_import.rs, workbench/settings_import.rs: cargo test -p app settings_import installed_extensions_bring extensions_open_vsx_lacks_are_copied_from_the_source accepting_the_contents_pick_imports_every_part imported_extensions_ask_for_publisher_trust_once installed_extensions_bring_the_themes_the_settings_name an_empty_profile_takes_keybindings_json_with_its_comments reads_the_disabled_extensions on port/fixtures/settings-import; release GUI on the host lane: one import each from VS Code, Cursor and VSCodium fixtures under a scratch HOME. AI, sign-in, telemetry, remote and the editors' own settings and extensions are left out || look/screenshot-diff | cross-cutting check | | verified | | port/tools/pixel-check: CDP reference capture and Metal readback in 3 themes, pixeldiff reference vs itself 0 different; baseline in port/results/pixels.md |-| perf/memory-benchmark | cross-cutting check | | verified | | port/tools/bench, median of 5 on the Studio, the VS Code 1.147.0 checkout open; port/results/benchmark.md: 218 MB in all, extension host 74 MB, VS Code 1.147.0 release 975 MB and 195 MB |+| perf/memory-benchmark | cross-cutting check | | verified | | port/tools/bench, median of 5 on the Studio, the VS Code 1.147.0 checkout open; port/results/benchmark.md: 218 MiB in all, extension host 74 MiB, VS Code 1.147.0 release 975 MiB and 195 MiB |Unmerged paths: port/ledger.md. Read the resolving-merge-conflicts skill and follow it to the end.\ No newline at end of filediff --git a/port/results/benchmark.md b/port/results/benchmark.mdindex c4a599656e8..97bd674738b 100644--- a/port/results/benchmark.md+++ b/port/results/benchmark.md@@ -7,8 +7,8 @@ VSRustium against VS Code 1.147.0, both packaged release builds, opening the VS| Window with the folder | 0.79 s | 0.99 s || Ready (CPU settled) | 2.47 s | 12.10 s || CPU time until ready | 2.52 s | 10.07 s |-| Memory (footprint, all processes) | 218 MB | 975 MB |-| of which the extension host | 74 MB | 195 MB |+| Memory (footprint, all processes) | 218 MiB | 975 MiB |+| of which the extension host | 74 MiB | 195 MiB || Idle CPU, 10 s after ready | 1.9 % of a core | 0.2 % of a core || Quit | 0.14 s | 0.23 s |@@ -27,7 +27,7 @@ Read with care:- VSRustium idles at 1.9% of a core in the 10 s after ready, VS Code at 0.2%: VS Code wins this row. Not investigated.- VSRustium's run 5 (window 2.28 s, ready 8.18 s) and VS Code's quit in run 5 (22.3 s) are outliers that the shared Studio's load may explain; they stay in the samples.-Samples (s, %, MB), in run order:+Samples (s, %, MiB), in run order:| metric | VSRustium | VS Code 1.147.0 ||---|---|---|diff --git a/port/tools/bench b/port/tools/benchindex 41e2c0720e8..113c18c3af1 100755--- a/port/tools/bench+++ b/port/tools/bench@@ -66,7 +66,7 @@ is_extension_host() {ps -E -o command= -p "$1" | rg -q 'bootstrap-exthost|VSCODE_ESM_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess'}-# Prints "<window s> <ready s> <cpu s> <idle %> <memory MB> <extension host MB> <quit s>".+# Prints "<window s> <ready s> <cpu s> <idle %> <memory MiB> <extension host MiB> <quit s>".measure_once() {local command=$1 dir=$2 start pid shown ready cpu before after p kb total=0 exthost=0 pids quit_start quitstart=$(now)@@ -139,7 +139,7 @@ median() {printf '%s\n' "$@" | sort -n | awk '{ v[NR] = $1 } END { m = NR % 2 ? v[(NR + 1) / 2] : (v[NR / 2] + v[NR / 2 + 1]) / 2; print m }'}-metrics=(window_s ready_s cpu_s idle_pct memory_mb exthost_mb quit_s)+metrics=(window_s ready_s cpu_s idle_pct memory_mib exthost_mib quit_s)# macOS ships bash 3.2: no associative arrays, so the samples of app i, metric m sit at index i * 7 + m.samples=()for i in "${!apps[@]}"; do