Rust vs C#,
measured.
One notes app, built in GPUI and Avalonia. C# cuts clean-build time. Everyday Debug work is much closer.
Median of three empty-output builds per stack. SDKs installed; dependencies restored.
C# cuts full-build waiting.
The working day is closer.
C# makes this clean build about 35× quicker. Cached Debug work is close, and Rust returns the measured quick test and compile error sooner. Total agent time and token cost were not recorded.
Try your own working dayA change in the small CLI entry point is different from a change inside the UI or document model. Those boundaries decide how much code the tools have to revisit.
C# took 2.47 seconds for the measured Release UI edit; Rust took 9.69. Debug UI edits were closer: 2.27 seconds for Rust, 2.49 for C# with servers off, or 1.57 with a warm C# compiler.
UI implementation · Release
One compiled presentation-text change; three runs per stack.
NuGet supplies precompiled framework packages; GPUI/WGPU are built from source. The clean-build result compares the complete stacks as distributed. It is not an isolated compiler-speed test.
Quick checks are a separate workflow.
Rust’s cached UI cargo check took 0.679 seconds. It produces metadata, not a runnable executable. The selected core edit-and-test command took 0.481 seconds in Rust and 2.087 in C# with servers off. These are useful feedback paths, with different jobs.
Every compiler timing, CPU cost & memory sample
| Command / edit boundary | Rust · seconds | C# · seconds |
|---|---|---|
| Download dependencies · empty cache | 58.581 runs · 58.58–58.58 | 5.8871 runs · 5.887–5.887 |
| Clean Release build | 237.0653 runs · 231.047–248.402 | 6.7763 runs · 6.677–6.798 |
| Release · unchanged | 0.2615 runs · 0.254–0.384 | 0.9145 runs · 0.863–0.926 |
| Release · CLI entry edit | 1.1325 runs · 0.997–1.228 | 2.4475 runs · 2.349–2.648 |
| Release · core edit | 22.2155 runs · 21.637–23.161 | 2.0025 runs · 1.952–2.013 |
| Dependency restore warm | Not measured | 0.732 runs · 0.72–0.741 |
| Debug restore | Not measured | 0.7271 runs · 0.727–0.727 |
| Clean Debug build | 72.2931 runs · 72.293–72.293 | 6.7571 runs · 6.757–6.757 |
| Debug · unchanged | 0.245 runs · 0.233–0.26 | 0.9065 runs · 0.88–0.943 |
| Debug · CLI entry edit | 1.2615 runs · 1.234–1.395 | 2.4425 runs · 2.379–2.583 |
| Debug · core edit | 2.5355 runs · 2.487–2.561 | 1.9165 runs · 1.898–1.959 |
| Test restore | Not measured | 1.181 runs · 1.18–1.18 |
| Test first compile and run | 4.8491 runs · 4.849–4.849 | 1.9891 runs · 1.989–1.989 |
| Core edit + focused test | 0.4815 runs · 0.463–0.485 | 2.0875 runs · 2.021–2.13 |
| Release ui setup | 0.2521 runs · 0.252–0.252 | 1.0251 runs · 1.025–1.025 |
| Release · UI edit | 9.693 runs · 9.276–10.749 | 2.4713 runs · 2.436–2.514 |
| Debug ui setup | 2.7231 runs · 2.723–2.723 | 0.9331 runs · 0.933–0.933 |
| Debug · UI edit | 2.2683 runs · 2.219–2.298 | 2.4923 runs · 2.431–2.534 |
| Feedback setup build | 2.1431 runs · 2.143–2.143 | 2.7541 runs · 2.754–2.754 |
| Intentional compiler error · return | 0.3155 runs · 0.31–0.346 | 2.1255 runs · 2.09–2.178 |
| Rust check-only · initial setup | 40.0241 runs · 40.024–40.024 | Not measured |
| Rust check-only · CLI edit | 0.3135 runs · 0.301–0.326 | Not measured |
| Rust check-only · UI edit | 0.6793 runs · 0.671–0.694 | Not measured |
| Roslyn server warmup | Not measured | 2.4621 runs · 2.462–2.462 |
| Warm C# compiler · unchanged | Not measured | 0.8845 runs · 0.873–0.908 |
| Warm C# compiler · CLI edit | Not measured | 2.0015 runs · 1.774–2.948 |
| Warm C# compiler · core edit | Not measured | 1.225 runs · 1.165–1.288 |
| Warm C# compiler · UI edit | Not measured | 1.5723 runs · 1.543–1.65 |
| Clean build | CPU work · s | Peak process RSS · MiB | Sampled tree PSS · MiB | Sampled tree RSS · MiB |
|---|---|---|---|---|
| Release · Rust | 945.2 | 1,230.9 | 2,568.9 | 2,825.2 |
| Release · C# | 9.7 | 302.5 | 496.3 | 794.8 |
| Debug · Rust | 286.8 | 1,886.4 | 2,115.7 | 2,634.4 |
| Debug · C# | 9.6 | 304.5 | 503.7 | 811.1 |
CPU work adds user and system time for each command before taking the median. Sampled whole-tree peaks are lower bounds; RSS can count shared pages more than once. The warm Roslyn process reached about 607 MiB RSS, separate from the app’s memory. Its CPU deltas are in the raw data.
The first Rust Release build used a denser memory sampler. Excluding it changes the clean median from 237.065 to 239.724 seconds. Every sample and the sampler’s own CPU work remain in the evidence.
A clean build is an occasional event. The usual loop is edit, check, test and look again. Change the mix below to see how much compiler waiting it adds up to.
For this assumed day
Build wait only. Agent implementation time was not measured.
The counts are your assumptions. The timings are measured medians. Warm-compiler profiles exclude server setup; a clean build uses the server-off baseline. Do not count an edit as both a full rebuild and a core-only test unless you actually run both.
With no clean build, 40 UI edits, 10 core rebuilds and 10 unchanged builds, the warm C# profile saves about 34.5 seconds. With both compiler servers off, the same Debug mix favors Rust by 9.4 seconds.
These are the real published applications, opening the same copied notes. Startup ends when the requested note’s pixels match a known image. Switching includes a fresh CLI client, instance messaging and that same image check.
First note pixels
Note switch · median
Observed clean close
Three fresh-process launches per stack; 100 transitions in one process per stack.
The small-library Rust run had a 1,813.7 ms p95 image-match tail, mostly in early transitions. A later diagnostic did not reproduce it. Delayed content and a transient reference mismatch could not be distinguished; its cause remains unresolved.
Fresh processes, warm OS/font/GPU caches, and a private nested X11/XWayland display. These are observed note pixels, not physical display timestamps. Close measures a server key notification to observed exit, with nominal 5 ms polling; it does not include a dirty-draft save.
All startup, switch & close observations
| Library / transition | Stack | First pixels · ms | Switch median · ms | Switch p95 · ms | Close · ms |
|---|---|---|---|---|---|
| 2-note library | Rust | 174.15 runs · 167–295.7 | 81.1 | 1,813.7 † | Not recorded |
| 2-note library | C# | 799.25 runs · 773.8–816.3 | 87.4 | 112.2 | Not recorded |
| 10,000-note library | Rust | 258.43 runs · 246.8–309.5 | 78 | 88.6 | 32 |
| 10,000-note library | C# | 1,098.53 runs · 1,092.3–1,137.4 | 90.6 | 101.6 | 47 |
| Large / ordinary note | Rust | 857.13 runs · 843.7–858.3 | 119.5 | 135.1 | 125 |
| Large / ordinary note | C# | 1,139.43 runs · 1,134.9–1,178.9 | 105.7 | 156.2 | 48 |
† The small-library Rust tail was not reproduced in one later ten-switch diagnostic. All 28 measured/calibration app instances closed normally. The passive close-key observer was added after the small case, so its close cells are unrecorded. Roughly five seconds of Cua command setup are excluded from the reported close observations.
There are 22 measured fresh-process launches and 600 transitions in total. Calibration launches are excluded. Each transition distribution comes from one process per stack; its 100 samples are not independent process trials. The large case alternates an ordinary and a large note.
Short-lived commands favor Rust.
| One-shot command | Rust · ms | C# · ms |
|---|---|---|
| Save a capture | 20.72 | 96.38 |
| Read its receipt | 6.52 | 36.47 |
The same capture text is committed exactly once and its receipt is verified. No GUI opens during these commands.
Rust uses less process memory in the smaller libraries. After the large-note workload, both processes sit around 260 MiB of PSS. The C# app has smaller driver-reported graphics buffers.
PSS apportions shared process pages. Graphics-buffer figures include shared allocations of their own. Adding the two would create a misleading total.
2-note library
10,000-note library
Large / ordinary note
One snapshot after a 20-second idle interval per scenario. Idle CPU was Rust/C# 0.60%/0.35% for two notes, 1.55%/0.35% for 10,000 notes, and 3.75%/0.30% after large-note switching. Percentages are of one logical core; they do not measure battery life.
Process memory, CPU, threads & graphics buffers
| Scenario | Stack | RSS · MiB | PSS · MiB | Private · MiB | Threads | Open files | Idle CPU |
|---|---|---|---|---|---|---|---|
| 2-note library | Rust | 135.8 | 66.2 | 62.3 | 40 | 52 | 0.6% |
| 2-note library | C# | 222.9 | 152 | 140.5 | 22 | 153 | 0.35% |
| 10,000-note library | Rust | 200.3 | 130.9 | 127 | 40 | 51 | 1.55% |
| 10,000-note library | C# | 260.9 | 190 | 178.6 | 22 | 153 | 0.35% |
| Large / ordinary note | Rust | 329.2 | 259.7 | 255.8 | 40 | 51 | 3.75% |
| Large / ordinary note | C# | 331.1 | 260.3 | 248.9 | 22 | 153 | 0.3% |
| Scenario | Stack | DRM clients | Largest client · MiB | Resident · MiB | Shared · MiB |
|---|---|---|---|---|---|
| 2-note library | Rust | 4 | 112.1 | 112.1 | 18 |
| 2-note library | C# | 1 | 53.6 | 53.6 | 6 |
| 10,000-note library | Rust | 4 | 112.1 | 112.1 | 18 |
| 10,000-note library | C# | 1 | 53.7 | 53.7 | 6 |
| Large / ordinary note | Rust | 4 | 112.1 | 112.1 | 18 |
| Large / ordinary note | C# | 1 | 53.6 | 53.6 | 6 |
MiB = 1,048,576 bytes. PSS/private memory come from Linux smaps_rollup. GPU values show the largest resident-GTT DRM client per app, on Intel xe. Client IDs are deduplicated; shared buffers still prevent a single whole-system memory total. Virtual address reservation is not RAM use. DRM field definitions.
Rust is quicker in most parsing, search, backup and export operations in this study. C# is dramatically quicker in the large-note model’s edit path. That path uses indexed leaves and leaf history; the Rust version retains whole-document state.
Both perform 100 large-note edits. Rust retains 9 undo entries before its memory limit; C# retains 100. The final edited text matches exactly. These model timings exclude input delivery, layout, paint and saving.
39 operations · three process trials per stack
| Operation | Rust · ms | C# · ms | Lower median |
|---|---|---|---|
Select a leaf & insert text15 paragraphsSamples & scopeModel operation only: input, layout, paint and save callbacks are excluded. The Rust and C# history implementations differ. Three fresh processes per stack. Calls per process: Rust [1000, 1000, 1000]; C# [1000, 1000, 1000]. Process median ranges: Rust 0.0129–0.0155 ms; C# 0.017–0.021 ms. typical_select_leaf_and_insert | 0.0138 | 0.0204 | Rust · 1.48× |
Select a leaf & insert text3,000 paragraphs + tablesSamples & scopeModel operation only: input, layout, paint and save callbacks are excluded. The Rust and C# history implementations differ. Three fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 5.4875–5.7156 ms; C# 0.0144–0.023 ms. large_select_leaf_and_insert | 5.5191 | 0.0151 | C# · 366.72× |
Parse & validate3,000 paragraphs + tablesSamples & scopeThree fresh processes per stack. Calls per process: Rust [30, 30, 30]; C# [30, 30, 30]. Process median ranges: Rust 2.5027–3.0969 ms; C# 19.188–22.157 ms. large_parse_validate | 2.6825 | 19.3267 | Rust · 7.2× |
Search a word prefix200 resultsSamples & scopeThree fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 28.4154–29.3319 ms; C# 39.3829–44.267 ms. fts_prefix_200 | 28.8436 | 39.7054 | Rust · 1.38× |
Save a noteDurable commitSamples & scopeThree fresh processes per stack. Calls per process: Rust [50, 50, 50]; C# [50, 50, 50]. Process median ranges: Rust 1.0738–1.2615 ms; C# 1.3575–1.4047 ms. durable_save_typical | 1.1096 | 1.359 | Rust · 1.22× |
Import an attachment32 MiBSamples & scopeThree fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 92.5317–95.6675 ms; C# 64.6085–71.9816 ms. attachment_import_32m | 95.6481 | 71.0466 | C# · 1.35× |
Back up a closed library10,050 notes + 32 MiBSamples & scopeFollows each production closed-library CLI setup: C# opens and validates LibraryStore before Backup; Rust backup acquires closed-library ownership directly. Three fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 164.5093–203.2993 ms; C# 456.2302–502.9686 ms. closed_library_backup_10050_plus_32m | 165.5488 | 462.6368 | Rust · 2.79× |
Publish an A4 PDF15 paragraphsSamples & scopeDistinct renderers/font metrics; compare extracted marker coverage and page counts. Five operations include first font/cache initialization; no PDF warmup. Rust explicitly fsyncs before publication; C# closes and renames without explicit fsync, so durability endpoints differ. Three fresh processes per stack. Calls per process: Rust [5, 5, 5]; C# [5, 5, 5]. Process median ranges: Rust 25.5909–40.4269 ms; C# 45.8347–47.7476 ms. pdf_typical_a4_publish | 25.7812 | 46.1075 | Rust · 1.79× |
Import duplicate content32 MiB attachmentSamples & scopeThree fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 100.2265–105.3693 ms; C# 59.3099–59.5234 ms. attachment_duplicate_content_32m | 100.5147 | 59.5181 | C# · 1.69× |
Attach & save · first reference32 MiB attachmentSamples & scopeC# Save explicitly rehashes referenced attachment bytes on every save; Rust Save validates the document and updates committed metadata without that same blob reread. Different validation work, not pure language/storage overhead. Three fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 1.2823–1.46 ms; C# 12.854–13.6001 ms. attachment_insert_save_1 | 1.3305 | 13.1432 | Rust · 9.88× |
Attach & save · second referenceSame physical blobSamples & scopeC# Save explicitly rehashes referenced attachment bytes on every save; Rust Save validates the document and updates committed metadata without that same blob reread. Different validation work, not pure language/storage overhead. Three fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 1.2477–1.5634 ms; C# 21.6712–26.1348 ms. attachment_insert_save_2 | 1.2958 | 25.3429 | Rust · 19.56× |
Create a noteDurable commitSamples & scopeThree fresh processes per stack. Calls per process: Rust [50, 50, 50]; C# [50, 50, 50]. Process median ranges: Rust 1.166–1.4592 ms; C# 1.5307–1.6497 ms. durable_create_typical | 1.4048 | 1.6075 | Rust · 1.14× |
Search two terms200 resultsSamples & scopeThree fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 30.7045–31.7939 ms; C# 44.3112–50.4912 ms. fts_two_terms_200 | 30.7165 | 47.7278 | Rust · 1.55× |
Inspect the backup10,050 notes + 32 MiBSamples & scopeThree fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 58.4216–59.8786 ms; C# 147.1106–167.8901 ms. inspect_backup_10050_plus_32m | 59.1324 | 156.4875 | Rust · 2.65× |
Create the editor model3,000 paragraphs + tablesSamples & scopeThree fresh processes per stack. Calls per process: Rust [10, 10, 10]; C# [10, 10, 10]. Process median ranges: Rust 0.9914–1.138 ms; C# 23.4505–35.3498 ms. large_model_construct | 1.1307 | 23.4943 | Rust · 20.78× |
Redo3,000 paragraphs + tablesSamples & scopeRetained undo depth can differ; see checks/history limits and sample counts. Per-operation replay only, not equal total history retention. Three fresh processes per stack. Calls per process: Rust [9, 9, 9]; C# [100, 100, 100]. Process median ranges: Rust 5.7963–7.0186 ms; C# 0.0101–0.0138 ms. large_redo | 6.2213 | 0.011 | C# · 565.58× |
Serialize3,000 paragraphs + tablesSamples & scopeThree fresh processes per stack. Calls per process: Rust [30, 30, 30]; C# [30, 30, 30]. Process median ranges: Rust 0.4384–0.5097 ms; C# 1.1589–2.5389 ms. large_serialize | 0.4911 | 1.6973 | Rust · 3.46× |
Undo3,000 paragraphs + tablesSamples & scopeRetained undo depth can differ; see checks/history limits and sample counts. Per-operation replay only, not equal total history retention. Three fresh processes per stack. Calls per process: Rust [9, 9, 9]; C# [100, 100, 100]. Process median ranges: Rust 5.8565–6.2993 ms; C# 0.0105–0.0146 ms. large_undo | 5.8842 | 0.0114 | C# · 516.16× |
Close the libraryStorage onlySamples & scopeThree fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 2.1485–2.3339 ms; C# 2.1114–2.2903 ms. library_close | 2.259 | 2.2515 | C# · 1× |
Open & validate the library10,000 notesSamples & scopeThree fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 76.0188–80.3607 ms; C# 139.4235–153.3686 ms. library_open_validate_10000 | 78.6959 | 150.4489 | Rust · 1.91× |
Reopen & validate10,050 notesSamples & scopeThree fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 25.7837–27.4781 ms; C# 57.2193–59.4961 ms. library_reopen_validate_10050 | 27.0296 | 57.9695 | Rust · 2.14× |
Export HTML1,000 paragraphsSamples & scopeRust emits a fragment; C# emits a complete document wrapper. Output bytes retained; not identical HTML bytes. Three fresh processes per stack. Calls per process: Rust [10, 10, 10]; C# [10, 10, 10]. Process median ranges: Rust 0.463–0.5796 ms; C# 4.6211–7.2641 ms. medium_html_export | 0.51 | 4.7167 | Rust · 9.25× |
Export Markdown1,000 paragraphsSamples & scopeThree fresh processes per stack. Calls per process: Rust [10, 10, 10]; C# [10, 10, 10]. Process median ranges: Rust 1.6441–1.9481 ms; C# 10.7104–13.0525 ms. medium_markdown_export | 1.7182 | 11.8484 | Rust · 6.9× |
Create the editor model1,000 paragraphsSamples & scopeThree fresh processes per stack. Calls per process: Rust [10, 10, 10]; C# [10, 10, 10]. Process median ranges: Rust 0.3075–0.6662 ms; C# 8.6697–13.4329 ms. medium_model_construct | 0.3457 | 10.2051 | Rust · 29.52× |
Parse & validate1,000 paragraphsSamples & scopeThree fresh processes per stack. Calls per process: Rust [30, 30, 30]; C# [30, 30, 30]. Process median ranges: Rust 0.759–0.9861 ms; C# 10.1978–10.5346 ms. medium_parse_validate | 0.8271 | 10.4309 | Rust · 12.61× |
Redo1,000 paragraphsSamples & scopeRetained undo depth can differ; see checks/history limits and sample counts. Per-operation replay only, not equal total history retention. Three fresh processes per stack. Calls per process: Rust [29, 29, 29]; C# [100, 100, 100]. Process median ranges: Rust 1.1093–1.3945 ms; C# 0.0095–0.0121 ms. medium_redo | 1.3033 | 0.012 | C# · 108.16× |
Select a leaf & insert text1,000 paragraphsSamples & scopeModel operation only: input, layout, paint and save callbacks are excluded. The Rust and C# history implementations differ. Three fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 0.8473–1.1075 ms; C# 0.0181–0.0234 ms. medium_select_leaf_and_insert | 0.8886 | 0.02 | C# · 44.32× |
Serialize1,000 paragraphsSamples & scopeThree fresh processes per stack. Calls per process: Rust [30, 30, 30]; C# [30, 30, 30]. Process median ranges: Rust 0.1244–0.1542 ms; C# 1.2274–2.0747 ms. medium_serialize | 0.1343 | 1.3888 | Rust · 10.34× |
Undo1,000 paragraphsSamples & scopeRetained undo depth can differ; see checks/history limits and sample counts. Per-operation replay only, not equal total history retention. Three fresh processes per stack. Calls per process: Rust [29, 29, 29]; C# [100, 100, 100]. Process median ranges: Rust 1.0327–1.3692 ms; C# 0.0109–0.0132 ms. medium_undo | 1.1189 | 0.0126 | C# · 89.15× |
Read a metadata page200 rowsSamples & scopeThree fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 6.986–7.0492 ms; C# 7.5507–9.3038 ms. metadata_page_200 | 7.0385 | 7.5542 | Rust · 1.07× |
Read every document10,000 notesSamples & scopeRust Store.load also reads folder metadata; C# ListNotes(limit:10000) reads notes. Both validate/decode10000 documents. Three fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 23.1565–25.5607 ms; C# 168.2097–174.172 ms. read_all_10000_documents | 25.2791 | 170.176 | Rust · 6.73× |
Restore the backup10,050 notes + 32 MiBSamples & scopeThree fresh processes per stack. Calls per process: Rust [1, 1, 1]; C# [1, 1, 1]. Process median ranges: Rust 162.3006–168.7348 ms; C# 322.8382–410.8078 ms. restore_backup_10050_plus_32m | 164.0122 | 336.8042 | Rust · 2.05× |
Export HTML15 paragraphsSamples & scopeRust emits a fragment; C# emits a complete document wrapper. Output bytes retained; not identical HTML bytes. Three fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 0.0062–0.0082 ms; C# 0.0894–0.1028 ms. typical_html_export | 0.0072 | 0.0965 | Rust · 13.47× |
Export Markdown15 paragraphsSamples & scopeThree fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 0.0237–0.0287 ms; C# 0.1528–0.1866 ms. typical_markdown_export | 0.0251 | 0.1764 | Rust · 7.03× |
Create the editor model15 paragraphsSamples & scopeThree fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 0.0049–0.0058 ms; C# 0.1279–0.1526 ms. typical_model_construct | 0.0056 | 0.1336 | Rust · 24.01× |
Parse & validate15 paragraphsSamples & scopeThree fresh processes per stack. Calls per process: Rust [1000, 1000, 1000]; C# [1000, 1000, 1000]. Process median ranges: Rust 0.0169–0.0195 ms; C# 0.1284–0.1591 ms. typical_parse_validate | 0.017 | 0.1505 | Rust · 8.85× |
Redo15 paragraphsSamples & scopeRetained undo depth can differ; see checks/history limits and sample counts. Per-operation replay only, not equal total history retention. Three fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 0.0093–0.0119 ms; C# 0.0148–0.0166 ms. typical_redo | 0.0103 | 0.015 | Rust · 1.45× |
Serialize15 paragraphsSamples & scopeThree fresh processes per stack. Calls per process: Rust [1000, 1000, 1000]; C# [1000, 1000, 1000]. Process median ranges: Rust 0.0026–0.003 ms; C# 0.0232–0.0315 ms. typical_serialize | 0.0027 | 0.0286 | Rust · 10.66× |
Undo15 paragraphsSamples & scopeRetained undo depth can differ; see checks/history limits and sample counts. Per-operation replay only, not equal total history retention. Three fresh processes per stack. Calls per process: Rust [100, 100, 100]; C# [100, 100, 100]. Process median ranges: Rust 0.0093–0.012 ms; C# 0.0143–0.0169 ms. typical_undo | 0.0106 | 0.0154 | Rust · 1.46× |
No measurements match this search.
Times are medians of three process medians. The final column describes their ratio, not statistical confidence or an overall language score. SQLite versions differ: Rust 3.46.0; C# 3.54.1. Some rows perform different validation work—open “Samples & scope” for the details.
Two differences the timings exposed.
Attachment saves
C# rehashes the bytes of every referenced attachment on save. Rust’s save path does different validation. Its shorter time in those rows includes less work.
PDF publication
Rust explicitly syncs its temporary file and directory. C# closes and renames without an explicit sync in that path. Export workflows align; their crash-durability guarantees differ.
Software-rendered frame diagnostics
The current Avalonia CPU-framebuffer run measured ordinary editing p95 13.654 ms, large-note first viewport 103.957 ms, large editing p95 35.289 ms against a 33 ms target, scrolling p95 18.032 ms against an 8 ms target, and note switching p95 16.543 ms. Five editors remained retained.
The large-edit and scroll targets are unmet in that run. GPUI’s headless test stops at scene construction; Avalonia’s includes a real CPU framebuffer. Their frame times cannot be used as a Rust/C# speed ratio.
Read the full frame resultThe Rust executable is about 41 MiB after stripping. C# is about 28 MiB when it shares an installed .NET runtime, or 107 MiB with the runtime included.
| Linux x64 payload | Without separate debug files · MiB | Files |
|---|---|---|
| Rust · stripped executable | 41.03 | 1 |
| C# · shared runtime | 28.2 | 42 |
| C# · runtime included | 106.95 | 229 |
The shared .NET 10.0.15 runtime occupies another 78.481 MiB, plus 0.312 MiB for hostfxr and a small launcher. These are file bytes, not installer sizes or complete system-library dependencies. No NativeAOT, ReadyToRun, trimming or single-file mode was used.
Development outputs and packaging scope
The unstripped Rust Release executable is 271.548 MiB; a debug-stripped copy is 52.559 MiB. The fully stripped copy is 41.031 MiB. Each copy passed its CLI check; the original hash stayed unchanged.
The C# development directory includes native libraries and debug files for other platforms. Its roughly 600 MiB size is not the installed Linux payload. Actual Linux-x64 publishes were measured here. .NET deployment models.
The clean and optimized-build advantage is clear. A total development-time advantage has not been established.
A warm Debug build loop is close enough that build speed alone would not make me switch a working application. Rust’s quick checks and focused tests matter; so do C#’s cheaper full builds and its large-note implementation.
Where Rust saves work
- Fast check-only feedback and the measured focused edit/test loop.
- Quicker ordinary-note startup and short-lived commands.
- Lower process PSS in the smaller native workloads.
- Faster parsing and many storage/export operations in this implementation.
Where C# saves work
- Much shorter clean builds with this framework distribution.
- Quicker UI and shared-core Release rebuilds.
- A faster runnable Debug UI build with the compiler warm.
- A much cheaper large-note model edit path and deeper retained history.
The part this study could not time.
Reasoning, feature implementation, debugging, review, token use and human intervention were not tracked as matched tasks. The C# port also inherited the completed Rust behavior, schema and fixtures. Git history cannot untangle that head start.
Both versions needed custom editor, persistence and platform-integration work. Line counts and test counts describe their shape; they do not measure accepted features per hour.
Source counts, port history & agent-study limits
| Counted surface | Size | What it includes |
|---|---|---|
| Rust first-party source | 45,106 physical lines | Includes inline tests and diagnostics |
| C# application source | 6,928 physical lines | Separate tests and different formatting |
| C# vendored bridge / generator | 17,331 physical lines | Copied upstream code, with a local maintenance cost |
Rust was itself a port of an earlier Qt application. Both histories start after substantial code had already been written. Different formatting, framework reuse and test placement make a line-count ratio unsuitable as a productivity score.
A matched agent study would need several maintenance tasks, the same model and tool budget, comparable starting points, varied language order, logged active time/tokens/retries, and independent acceptance. That experiment was not part of these measurements.
Read the source and effort notesThe study used isolated copies and synthetic libraries. Both application implementations and the live profiles stayed untouched. Every result is tied to a source snapshot and binary hash.
- Machine
- Intel Core Ultra X7 358H · 16 logical CPUs · 62.3 GiB reported RAM
- System
- Linux 7.3.6-1-omarchy · x86-64 · glibc 2.44
- Build schedule
- Four jobs; all 16 CPUs available. Existing power settings retained.
- Rust stack
- Rust/Cargo 1.99.0 · GPUI/WGPU at a pinned Zed revision
- C# stack
- .NET SDK 10.0.404 · runtime 10.0.15 · Avalonia 12.2.1
- Recorded work
- 132 successful commands · 10 expected compile failures · 39 runtime groups
- Native runs
- 22 measured launches · 600 transitions · 28 instances closed, including calibration
- All data · JSONAggregated results with every raw series retained.
- Measurements · CSV519 rows of timings and resource observations.
- Compiler commandsCommands, source snapshots, resources and publish manifests.
- Library trialsAll six processes, output checks and operation samples.
- Build-wait scenariosAssumptions and the arithmetic behind the calculator.
- Source & history notesWhat the repository can establish about agent effort.
Exact sources, caveats & every evidence file
What was built
Rust 1.1.0 at 248c22716dd0cf6fdf0940e8fc0b68b254821aa9; GPUI at a84689073d296dfd39987bc7dd478e43ef76d83a. C# is the completed, uncommitted parity worktree at Git HEAD 88f87b9, identified by a 333-file product snapshot: 8763a319adf255331baeea53745d66ae89b0b30525be9af8a7825414d8d37e4a. HEAD alone does not identify it.
SkiaSharp 3.119.4 and HarfBuzzSharp 8.3.1.1 are pinned. Native publishes, standalone probes and the headless checker each have recorded binary hashes; RID/assembly metadata can change a binary hash without changing its source.
How the limits were handled
The first Rust Release build used a denser memory sampler, costing about 101 CPU seconds outside the command. Later builds used 250 ms RSS / 1 s PSS sampling. All samples remain available. The later-two clean median is 239.724 seconds, compared with 237.065 using all three. Short sampled-memory phases are not peak-memory rankings.
Three independent runtime process pairs use the same JSON and byte-identical seed databases. Bounded parse/model/query warmups are disclosed; they do not prove fully optimized .NET steady state. The 32 MiB media payload, deduplication, 30 PDF checks and 18 source/backup/restored-library checks passed. One probe assertion error and an optional restore setup failure are retained as excluded harness/setup failures.
Native windows use X11/XWayland on an owned nested compositor. Rust receives a private Wayland connection for clipboard transport. This is not coverage of its ordinary native-Wayland startup. A read-only image fence checks note pixels; it cannot measure photons. Cua sends the shared Ctrl+Q shortcut; an exact-window passive observer records notifications and exit.
Outside this experiment
No reboot-cold startup, physical display timestamp, sustained GPU frame-rate, battery/energy study, cross-platform comparison, 1 GiB media stress or long-duration leak test is claimed. CPU seconds are not joules. NativeAOT, ReadyToRun, linker tuning, IDE hot reload and persistent language-server workflows were not tested.
- Complete build matrix
- Build commands, resources, archives, deployment manifests and preservation receipts
- Raw build logs
- Exact build reproduction harness
- All six production-library trial results and correctness checks
- Production-library summaries with semantic qualifications
- Current Avalonia software-framebuffer result, including failed budgets
- Build-wait scenarios and calculator assumptions
- Native small-library raw observations
- Native 10,000-note raw observations
- Native large-note raw observations
- One diagnostic where the Rust raster tail did not reproduce
- Durable one-shot capture and receipt timings
- Inspected Rust PDF example
- Inspected C# PDF example
- Final Rust/source/live-profile preservation receipt
- Owned private-desktop process cleanup
- Runtime, native observer and report reproduction sources
- Exact measured C# product source snapshot
- Excluded native pilots and diagnostic scope
- Native action/close receipts, including rejected pilots
- Review artifact SHA-256 manifest
Fonts & offline reading
Noto Sans is embedded under the SIL Open Font License. The page, charts and calculator work without a network connection. The linked evidence files accompany the report folder.
Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic) This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL ----------------------------------------------------------- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ----------------------------------------------------------- PREAMBLE The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. DEFINITIONS "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. "Reserved Font Name" refers to any names specified as such after the copyright statement(s). "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. PERMISSION & CONDITIONS Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. TERMINATION This license becomes null and void if any of the above conditions are not met. DISCLAIMER THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.