Skip to content

chore(docs): Document layout types#1633

Open
marc2332 wants to merge 1 commit intomainfrom
chore/document-layout-types
Open

chore(docs): Document layout types#1633
marc2332 wants to merge 1 commit intomainfrom
chore/document-layout-types

Conversation

@marc2332
Copy link
Owner

No need for external types.

This way its also easier to document.

@marc2332 marc2332 added this to the 0.4.0 milestone Mar 14, 2026
@marc2332 marc2332 self-assigned this Mar 14, 2026
@marc2332 marc2332 added documentation Improvements or additions to documentation enhancement 🔥 New feature or request labels Mar 14, 2026
@marc2332 marc2332 moved this to Pending for Review in Freya Planning Mar 14, 2026
@github-actions
Copy link

Benchmark for 2ec89fd

Click to view benchmark
Test Base PR %
benchmarks/alignments=true size=21845 depth=8 wide=4 mode=not cached 1455.8±181.59µs 1155.0±56.00µs -20.66%
benchmarks/size=100001 depth=2 wide=100000 mode=not cached 6.9±0.50ms 7.1±0.57ms +2.90%
benchmarks/size=10001 depth=2 wide=10000 mode=not cached 336.6±163.58µs 338.3±206.26µs +0.51%
benchmarks/size=1001 depth=2 wide=1000 mode=not cached 29.1±29.51µs 29.1±26.95µs 0.00%
benchmarks/size=131071 depth=17 wide=2 mode=not cached 12.6±0.48ms 12.3±0.73ms -2.38%
benchmarks/size=16383 depth=14 wide=2 mode=not cached 1029.9±118.28µs 1080.4±113.17µs +4.90%
benchmarks/size=19531 depth=7 wide=5 mode=cached 915.2±42.61µs 1027.4±109.22µs +12.26%
benchmarks/size=19531 depth=7 wide=5 mode=not cached 983.6±138.27µs 965.3±92.77µs -1.86%
benchmarks/size=4095 depth=12 wide=2 mode=not cached 204.0±139.62µs 202.1±150.38µs -0.93%
benchmarks/size=54241 depth=5 wide=15 mode=cached 772.5±65.25µs 725.0±28.63µs -6.15%
benchmarks/size=54241 depth=5 wide=15 mode=not cached 727.5±95.43µs 727.4±122.12µs -0.01%

@github-actions
Copy link

Performance Comparison mainchore/document-layout-types

Total Elapsed Time: 88.85ms → 88.80ms (-0.0%)
Profiling Mode: alloc - Cumulative allocations during each function call (including nested calls).

+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| Function                                      | Calls                    | Avg                          | P33                            | P66                          | P95                          | P99                          | Total                          | % Total                            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| freya_core::runner::run_scope                 | 32025 → 32025 (+0.0%)    | 6.7 MB → 6.7 MB (+0.0%)      | 88 B → 88 B (+0.0%)            | 11.7 MB → 11.7 MB (+0.0%)    | 23.4 MB → 23.4 MB (+0.0%)    | 23.4 MB → 23.4 MB (+0.0%)    | 209.4 GB → 209.4 GB (+0.0%)    | 350997.77% → 350997.77% (+0.0%)    |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| dev_perf::main                                | 1 → 1 (+0.0%)            | 61.1 MB → 61.1 MB (+0.0%)    | 61.1 MB → 61.1 MB (+0.0%)      | 61.1 MB → 61.1 MB (+0.0%)    | 61.1 MB → 61.1 MB (+0.0%)    | 61.1 MB → 61.1 MB (+0.0%)    | 61.1 MB → 61.1 MB (+0.0%)      | 100.00% → 100.00% (+0.0%)          |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| freya_core::runner::sync_and_update           | 3 → 3 (+0.0%)            | 12.5 MB → 12.5 MB (+0.0%)    | 6.0 MB → 6.0 MB (+0.0%)        | 8.1 MB → 8.1 MB (+0.0%)      | 23.5 MB → 23.5 MB (+0.0%)    | 23.5 MB → 23.5 MB (+0.0%)    | 37.5 MB → 37.5 MB (+0.0%)      | 61.44% → 61.44% (+0.0%)            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| freya_core::tree::apply_mutations             | 3 → 3 (+0.0%)            | 7.8 MB → 7.8 MB (+0.0%)      | 875.0 KB → 875.0 KB (+0.0%)    | 1.6 MB → 1.6 MB (+0.0%)      | 21.1 MB → 21.1 MB (+0.0%)    | 21.1 MB → 21.1 MB (+0.0%)    | 23.5 MB → 23.5 MB (+0.0%)      | 38.50% → 38.50% (+0.0%)            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| Scope Rendering                               | 2 → 2 (+0.0%)            | 6.8 MB → 6.8 MB (+0.0%)      | 6.8 MB → 6.8 MB (+0.0%)        | 6.8 MB → 6.8 MB (+0.0%)      | 6.8 MB → 6.8 MB (+0.0%)      | 6.8 MB → 6.8 MB (+0.0%)      | 13.6 MB → 13.6 MB (+0.0%)      | 22.31% → 22.31% (+0.0%)            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| freya_core::path_element::diff                | 32025 → 32025 (+0.0%)    | 398 B → 398 B (+0.0%)        | 12 B → 12 B (+0.0%)            | 12 B → 12 B (+0.0%)          | 12 B → 12 B (+0.0%)          | 12 B → 12 B (+0.0%)          | 12.2 MB → 12.2 MB (+0.0%)      | 19.90% → 19.90% (+0.0%)            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| text style cascade                            | 3 → 3 (+0.0%)            | 3.9 MB → 3.9 MB (+0.0%)      | 84 B → 84 B (+0.0%)            | 7.8 MB → 7.8 MB (+0.0%)      | 7.8 MB → 7.8 MB (+0.0%)      | 7.8 MB → 7.8 MB (+0.0%)      | 11.7 MB → 11.7 MB (+0.0%)      | 19.11% → 19.11% (+0.0%)            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| freya_core::runner::apply_diff                | 6 → 6 (+0.0%)            | 1.5 MB → 1.5 MB (+0.0%)      | 596 B → 596 B (+0.0%)          | 1.4 MB → 1.4 MB (+0.0%)      | 3.3 MB → 3.3 MB (+0.0%)      | 3.3 MB → 3.3 MB (+0.0%)      | 9.2 MB → 9.2 MB (+0.0%)        | 15.10% → 15.10% (+0.0%)            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| mutations run                                 | 3 → 3 (+0.0%)            | 2.5 MB → 2.5 MB (+0.0%)      | 64 B → 64 B (+0.0%)            | 1.6 MB → 1.6 MB (+0.0%)      | 6.0 MB → 6.0 MB (+0.0%)      | 6.0 MB → 6.0 MB (+0.0%)      | 7.6 MB → 7.6 MB (+0.0%)        | 12.38% → 12.38% (+0.0%)            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| freya_core::path_element::from_element        | 32025 → 32025 (+0.0%)    | 227 B → 227 B (+0.0%)        | 12 B → 12 B (+0.0%)            | 12 B → 12 B (+0.0%)          | 12 B → 12 B (+0.0%)          | 12 B → 12 B (+0.0%)          | 7.0 MB → 7.0 MB (+0.0%)        | 11.39% → 11.39% (+0.0%)            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| dirty run                                     | 3 → 3 (+0.0%)            | 2.1 MB → 2.1 MB (+0.0%)      | 64 B → 64 B (+0.0%)            | 4.2 MB → 4.2 MB (+0.0%)      | 4.2 MB → 4.2 MB (+0.0%)      | 4.2 MB → 4.2 MB (+0.0%)      | 6.3 MB → 6.3 MB (+0.0%)        | 10.28% → 10.28% (+0.0%)            |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| layer cascade                                 | 3 → 3 (+0.0%)            | 1.9 MB → 1.9 MB (+0.0%)      | 874.5 KB → 874.5 KB (+0.0%)    | 2.8 MB → 2.8 MB (+0.0%)      | 2.8 MB → 2.8 MB (+0.0%)      | 2.8 MB → 2.8 MB (+0.0%)      | 5.6 MB → 5.6 MB (+0.0%)        | 9.09% → 9.09% (+0.0%)              |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| effect cascade                                | 3 → 3 (+0.0%)            | 0 B → 0 B (+0.0%)            | 0 B → 0 B (+0.0%)              | 0 B → 0 B (+0.0%)            | 0 B → 0 B (+0.0%)            | 0 B → 0 B (+0.0%)            | 0 B → 0 B (+0.0%)              | 0.00% → 0.00% (+0.0%)              |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+
| freya_core::runner::handle_events_immediately | 3 → 3 (+0.0%)            | 0 B → 0 B (+0.0%)            | 0 B → 0 B (+0.0%)              | 0 B → 0 B (+0.0%)            | 0 B → 0 B (+0.0%)            | 0 B → 0 B (+0.0%)            | 0 B → 0 B (+0.0%)              | 0.00% → 0.00% (+0.0%)              |
+-----------------------------------------------+--------------------------+------------------------------+--------------------------------+------------------------------+------------------------------+------------------------------+--------------------------------+------------------------------------+

Generated with hotpath-rs

📊 View Raw JSON Metrics

PR Metrics

{
  "hotpath_profiling_mode": "alloc",
  "time_elapsed": "88.80 ms",
  "total_elapsed_ns": 88802437,
  "total_elapsed_raw": 88802437,
  "total_allocated": "84.7 MB",
  "total_allocated_raw": 88802437,
  "description": "Cumulative allocations during each function call (including nested calls).",
  "caller_name": "dev_perf::main",
  "percentiles": [
    33,
    66,
    95,
    99
  ],
  "data": [
    {
      "name": "freya_core::runner::run_scope",
      "calls": 32025,
      "avg": "6.7 MB",
      "avg_raw": 7019413,
      "p66": "11.7 MB",
      "p99": "23.4 MB",
      "p33": "88 B",
      "p95": "23.4 MB",
      "percentiles_raw": {
        "p33": 88,
        "p95": 24575999,
        "p66": 12287999,
        "p99": 24575999
      },
      "total": "209.4 GB",
      "total_raw": 224796724200,
      "percent_total": "350997.77%",
      "percent_total_raw": 35099777
    },
    {
      "name": "dev_perf::main",
      "calls": 1,
      "avg": "61.1 MB",
      "avg_raw": 64045056,
      "p99": "61.1 MB",
      "p66": "61.1 MB",
      "p95": "61.1 MB",
      "p33": "61.1 MB",
      "percentiles_raw": {
        "p99": 64061439,
        "p95": 64061439,
        "p33": 64061439,
        "p66": 64061439
      },
      "total": "61.1 MB",
      "total_raw": 64045056,
      "percent_total": "100.00%",
      "percent_total_raw": 10000
    },
    {
      "name": "freya_core::runner::sync_and_update",
      "calls": 3,
      "avg": "12.5 MB",
      "avg_raw": 13117440,
      "p66": "8.1 MB",
      "p33": "6.0 MB",
      "p99": "23.5 MB",
      "p95": "23.5 MB",
      "percentiles_raw": {
        "p95": 24592383,
        "p33": 6279167,
        "p66": 8495103,
        "p99": 24592383
      },
      "total": "37.5 MB",
      "total_raw": 39352320,
      "percent_total": "61.44%",
      "percent_total_raw": 6144
    },
    {
      "name": "freya_core::tree::apply_mutations",
      "calls": 3,
      "avg": "7.8 MB",
      "avg_raw": 8221098,
      "p99": "21.1 MB",
      "p95": "21.1 MB",
      "p33": "875.0 KB",
      "p66": "1.6 MB",
      "percentiles_raw": {
        "p99": 22085631,
        "p66": 1690623,
        "p95": 22085631,
        "p33": 895999
      },
      "total": "23.5 MB",
      "total_raw": 24663296,
      "percent_total": "38.50%",
      "percent_total_raw": 3850
    },
    {
      "name": "Scope Rendering",
      "calls": 2,
      "avg": "6.8 MB",
      "avg_raw": 7145472,
      "p66": "6.8 MB",
      "p99": "6.8 MB",
      "p33": "6.8 MB",
      "p95": "6.8 MB",
      "percentiles_raw": {
        "p95": 7147519,
        "p66": 7147519,
        "p33": 7147519,
        "p99": 7147519
      },
      "total": "13.6 MB",
      "total_raw": 14290944,
      "percent_total": "22.31%",
      "percent_total_raw": 2231
    },
    {
      "name": "freya_core::path_element::diff",
      "calls": 32025,
      "avg": "398 B",
      "avg_raw": 398,
      "p66": "12 B",
      "p99": "12 B",
      "p33": "12 B",
      "p95": "12 B",
      "percentiles_raw": {
        "p33": 12,
        "p66": 12,
        "p95": 12,
        "p99": 12
      },
      "total": "12.2 MB",
      "total_raw": 12750262,
      "percent_total": "19.90%",
      "percent_total_raw": 1990
    },
    {
      "name": "text style cascade",
      "calls": 3,
      "avg": "3.9 MB",
      "avg_raw": 4080682,
      "p95": "7.8 MB",
      "p99": "7.8 MB",
      "p33": "84 B",
      "p66": "7.8 MB",
      "percentiles_raw": {
        "p95": 8163327,
        "p99": 8163327,
        "p66": 8163327,
        "p33": 84
      },
      "total": "11.7 MB",
      "total_raw": 12242046,
      "percent_total": "19.11%",
      "percent_total_raw": 1911
    },
    {
      "name": "freya_core::runner::apply_diff",
      "calls": 6,
      "avg": "1.5 MB",
      "avg_raw": 1612457,
      "p99": "3.3 MB",
      "p33": "596 B",
      "p66": "1.4 MB",
      "p95": "3.3 MB",
      "percentiles_raw": {
        "p66": 1418239,
        "p99": 3420159,
        "p95": 3420159,
        "p33": 596
      },
      "total": "9.2 MB",
      "total_raw": 9674744,
      "percent_total": "15.10%",
      "percent_total_raw": 1510
    },
    {
      "name": "mutations run",
      "calls": 3,
      "avg": "2.5 MB",
      "avg_raw": 2643477,
      "p99": "6.0 MB",
      "p95": "6.0 MB",
      "p33": "64 B",
      "p66": "1.6 MB",
      "percentiles_raw": {
        "p95": 6242303,
        "p66": 1690623,
        "p99": 6242303,
        "p33": 64
      },
      "total": "7.6 MB",
      "total_raw": 7930431,
      "percent_total": "12.38%",
      "percent_total_raw": 1238
    },
    {
      "name": "freya_core::path_element::from_element",
      "calls": 32025,
      "avg": "227 B",
      "avg_raw": 227,
      "p33": "12 B",
      "p66": "12 B",
      "p99": "12 B",
      "p95": "12 B",
      "percentiles_raw": {
        "p95": 12,
        "p66": 12,
        "p33": 12,
        "p99": 12
      },
      "total": "7.0 MB",
      "total_raw": 7296888,
      "percent_total": "11.39%",
      "percent_total_raw": 1139
    },
    {
      "name": "dirty run",
      "calls": 3,
      "avg": "2.1 MB",
      "avg_raw": 2196512,
      "p95": "4.2 MB",
      "p99": "4.2 MB",
      "p66": "4.2 MB",
      "p33": "64 B",
      "percentiles_raw": {
        "p33": 64,
        "p95": 4395007,
        "p99": 4395007,
        "p66": 4395007
      },
      "total": "6.3 MB",
      "total_raw": 6589536,
      "percent_total": "10.28%",
      "percent_total_raw": 1028
    },
    {
      "name": "layer cascade",
      "calls": 3,
      "avg": "1.9 MB",
      "avg_raw": 1941120,
      "p66": "2.8 MB",
      "p95": "2.8 MB",
      "p99": "2.8 MB",
      "p33": "874.5 KB",
      "percentiles_raw": {
        "p66": 2988031,
        "p33": 895487,
        "p95": 2988031,
        "p99": 2988031
      },
      "total": "5.6 MB",
      "total_raw": 5823360,
      "percent_total": "9.09%",
      "percent_total_raw": 909
    },
    {
      "name": "effect cascade",
      "calls": 3,
      "avg": "0 B",
      "avg_raw": 0,
      "p95": "0 B",
      "p99": "0 B",
      "p66": "0 B",
      "p33": "0 B",
      "percentiles_raw": {
        "p99": 0,
        "p66": 0,
        "p33": 0,
        "p95": 0
      },
      "total": "0 B",
      "total_raw": 0,
      "percent_total": "0.00%",
      "percent_total_raw": 0
    },
    {
      "name": "freya_core::runner::handle_events_immediately",
      "calls": 3,
      "avg": "0 B",
      "avg_raw": 0,
      "p99": "0 B",
      "p33": "0 B",
      "p66": "0 B",
      "p95": "0 B",
      "percentiles_raw": {
        "p33": 0,
        "p95": 0,
        "p66": 0,
        "p99": 0
      },
      "total": "0 B",
      "total_raw": 0,
      "percent_total": "0.00%",
      "percent_total_raw": 0
    }
  ]
}

Main Branch Metrics

{
  "hotpath_profiling_mode": "alloc",
  "time_elapsed": "88.85 ms",
  "total_elapsed_ns": 88846128,
  "total_elapsed_raw": 88846128,
  "total_allocated": "84.7 MB",
  "total_allocated_raw": 88846128,
  "description": "Cumulative allocations during each function call (including nested calls).",
  "caller_name": "dev_perf::main",
  "percentiles": [
    33,
    66,
    95,
    99
  ],
  "data": [
    {
      "name": "freya_core::runner::run_scope",
      "calls": 32025,
      "avg": "6.7 MB",
      "avg_raw": 7019413,
      "p99": "23.4 MB",
      "p95": "23.4 MB",
      "p66": "11.7 MB",
      "p33": "88 B",
      "percentiles_raw": {
        "p66": 12287999,
        "p99": 24575999,
        "p95": 24575999,
        "p33": 88
      },
      "total": "209.4 GB",
      "total_raw": 224796724200,
      "percent_total": "350997.77%",
      "percent_total_raw": 35099777
    },
    {
      "name": "dev_perf::main",
      "calls": 1,
      "avg": "61.1 MB",
      "avg_raw": 64045056,
      "p66": "61.1 MB",
      "p33": "61.1 MB",
      "p99": "61.1 MB",
      "p95": "61.1 MB",
      "percentiles_raw": {
        "p99": 64061439,
        "p33": 64061439,
        "p66": 64061439,
        "p95": 64061439
      },
      "total": "61.1 MB",
      "total_raw": 64045056,
      "percent_total": "100.00%",
      "percent_total_raw": 10000
    },
    {
      "name": "freya_core::runner::sync_and_update",
      "calls": 3,
      "avg": "12.5 MB",
      "avg_raw": 13117440,
      "p95": "23.5 MB",
      "p99": "23.5 MB",
      "p33": "6.0 MB",
      "p66": "8.1 MB",
      "percentiles_raw": {
        "p99": 24592383,
        "p33": 6279167,
        "p95": 24592383,
        "p66": 8495103
      },
      "total": "37.5 MB",
      "total_raw": 39352320,
      "percent_total": "61.44%",
      "percent_total_raw": 6144
    },
    {
      "name": "freya_core::tree::apply_mutations",
      "calls": 3,
      "avg": "7.8 MB",
      "avg_raw": 8221098,
      "p95": "21.1 MB",
      "p66": "1.6 MB",
      "p33": "875.0 KB",
      "p99": "21.1 MB",
      "percentiles_raw": {
        "p95": 22085631,
        "p33": 895999,
        "p99": 22085631,
        "p66": 1690623
      },
      "total": "23.5 MB",
      "total_raw": 24663296,
      "percent_total": "38.50%",
      "percent_total_raw": 3850
    },
    {
      "name": "Scope Rendering",
      "calls": 2,
      "avg": "6.8 MB",
      "avg_raw": 7145472,
      "p66": "6.8 MB",
      "p95": "6.8 MB",
      "p33": "6.8 MB",
      "p99": "6.8 MB",
      "percentiles_raw": {
        "p99": 7147519,
        "p66": 7147519,
        "p95": 7147519,
        "p33": 7147519
      },
      "total": "13.6 MB",
      "total_raw": 14290944,
      "percent_total": "22.31%",
      "percent_total_raw": 2231
    },
    {
      "name": "freya_core::path_element::diff",
      "calls": 32025,
      "avg": "398 B",
      "avg_raw": 398,
      "p95": "12 B",
      "p33": "12 B",
      "p66": "12 B",
      "p99": "12 B",
      "percentiles_raw": {
        "p95": 12,
        "p33": 12,
        "p99": 12,
        "p66": 12
      },
      "total": "12.2 MB",
      "total_raw": 12750262,
      "percent_total": "19.90%",
      "percent_total_raw": 1990
    },
    {
      "name": "text style cascade",
      "calls": 3,
      "avg": "3.9 MB",
      "avg_raw": 4080682,
      "p99": "7.8 MB",
      "p95": "7.8 MB",
      "p66": "7.8 MB",
      "p33": "84 B",
      "percentiles_raw": {
        "p95": 8163327,
        "p33": 84,
        "p99": 8163327,
        "p66": 8163327
      },
      "total": "11.7 MB",
      "total_raw": 12242046,
      "percent_total": "19.11%",
      "percent_total_raw": 1911
    },
    {
      "name": "freya_core::runner::apply_diff",
      "calls": 6,
      "avg": "1.5 MB",
      "avg_raw": 1612457,
      "p33": "596 B",
      "p95": "3.3 MB",
      "p66": "1.4 MB",
      "p99": "3.3 MB",
      "percentiles_raw": {
        "p95": 3420159,
        "p66": 1418239,
        "p33": 596,
        "p99": 3420159
      },
      "total": "9.2 MB",
      "total_raw": 9674744,
      "percent_total": "15.10%",
      "percent_total_raw": 1510
    },
    {
      "name": "mutations run",
      "calls": 3,
      "avg": "2.5 MB",
      "avg_raw": 2643477,
      "p95": "6.0 MB",
      "p99": "6.0 MB",
      "p33": "64 B",
      "p66": "1.6 MB",
      "percentiles_raw": {
        "p95": 6242303,
        "p33": 64,
        "p66": 1690623,
        "p99": 6242303
      },
      "total": "7.6 MB",
      "total_raw": 7930431,
      "percent_total": "12.38%",
      "percent_total_raw": 1238
    },
    {
      "name": "freya_core::path_element::from_element",
      "calls": 32025,
      "avg": "227 B",
      "avg_raw": 227,
      "p95": "12 B",
      "p66": "12 B",
      "p99": "12 B",
      "p33": "12 B",
      "percentiles_raw": {
        "p66": 12,
        "p99": 12,
        "p33": 12,
        "p95": 12
      },
      "total": "7.0 MB",
      "total_raw": 7296888,
      "percent_total": "11.39%",
      "percent_total_raw": 1139
    },
    {
      "name": "dirty run",
      "calls": 3,
      "avg": "2.1 MB",
      "avg_raw": 2196512,
      "p99": "4.2 MB",
      "p33": "64 B",
      "p66": "4.2 MB",
      "p95": "4.2 MB",
      "percentiles_raw": {
        "p66": 4395007,
        "p99": 4395007,
        "p95": 4395007,
        "p33": 64
      },
      "total": "6.3 MB",
      "total_raw": 6589536,
      "percent_total": "10.28%",
      "percent_total_raw": 1028
    },
    {
      "name": "layer cascade",
      "calls": 3,
      "avg": "1.9 MB",
      "avg_raw": 1941120,
      "p33": "874.5 KB",
      "p95": "2.8 MB",
      "p66": "2.8 MB",
      "p99": "2.8 MB",
      "percentiles_raw": {
        "p99": 2988031,
        "p66": 2988031,
        "p33": 895487,
        "p95": 2988031
      },
      "total": "5.6 MB",
      "total_raw": 5823360,
      "percent_total": "9.09%",
      "percent_total_raw": 909
    },
    {
      "name": "effect cascade",
      "calls": 3,
      "avg": "0 B",
      "avg_raw": 0,
      "p66": "0 B",
      "p95": "0 B",
      "p33": "0 B",
      "p99": "0 B",
      "percentiles_raw": {
        "p99": 0,
        "p33": 0,
        "p66": 0,
        "p95": 0
      },
      "total": "0 B",
      "total_raw": 0,
      "percent_total": "0.00%",
      "percent_total_raw": 0
    },
    {
      "name": "freya_core::runner::handle_events_immediately",
      "calls": 3,
      "avg": "0 B",
      "avg_raw": 0,
      "p66": "0 B",
      "p99": "0 B",
      "p95": "0 B",
      "p33": "0 B",
      "percentiles_raw": {
        "p33": 0,
        "p66": 0,
        "p95": 0,
        "p99": 0
      },
      "total": "0 B",
      "total_raw": 0,
      "percent_total": "0.00%",
      "percent_total_raw": 0
    }
  ]
}

@github-actions
Copy link

Performance Comparison mainchore/document-layout-types

Total Elapsed Time: 68.47ms → 69.57ms (+1.6%)
Profiling Mode: timing - Execution duration of functions.

+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| Function                                      | Calls                    | Avg                             | P33                              | P66                             | P95                             | P99                             | Total                           | % Total                      |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| dev_perf::main                                | 1 → 1 (+0.0%)            | 67.73ms → 68.83ms (+1.6%)       | 67.76ms → 68.88ms (+1.6%)        | 67.76ms → 68.88ms (+1.6%)       | 67.76ms → 68.88ms (+1.6%)       | 67.76ms → 68.88ms (+1.6%)       | 67.73ms → 68.83ms (+1.6%)       | 100.00% → 100.00% (+0.0%)    |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| freya_core::runner::run_scope                 | 32025 → 32025 (+0.0%)    | 1.69µs → 1.69µs (-0.3%)         | 10.00ns → 10.00ns (+0.0%)        | 10.00ns → 10.00ns (+0.0%)       | 20.00ns → 20.00ns (+0.0%)       | 20.00ns → 21.00ns (+5.0%)       | 54.21ms → 54.05ms (-0.3%)       | 80.04% → 78.52% (-1.9%)      |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| freya_core::runner::sync_and_update           | 3 → 3 (+0.0%)            | 13.46ms → 13.49ms (+0.2%)       | 8.28ms → 8.25ms (-0.4%)          | 8.69ms → 8.89ms (+2.3%)         | 23.43ms → 23.35ms (-0.3%)       | 23.43ms → 23.35ms (-0.3%)       | 40.38ms → 40.47ms (+0.2%)       | 59.62% → 58.79% (-1.4%)      |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| freya_core::tree::apply_mutations             | 3 → 3 (+0.0%)            | 8.76ms → 9.06ms (+3.4%)         | 1.70ms → 1.61ms (-5.5%)          | 8.02ms → 8.28ms (+3.3%)         | 16.58ms → 17.30ms (+4.3%)       | 16.58ms → 17.30ms (+4.3%)       | 26.29ms → 27.18ms (+3.4%)       | 38.81% → 39.48% (+1.7%)      |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| freya_core::path_element::diff                | 32025 → 32025 (+0.0%)    | 493.00ns → 512.00ns (+3.9%)     | 30.00ns → 30.00ns (+0.0%)        | 50.00ns → 50.00ns (+0.0%)       | 150.00ns → 150.00ns (+0.0%)     | 752.00ns → 1.17µs (+55.9%) ⚠️   | 15.80ms → 16.41ms (+3.8%)       | 23.32% → 23.83% (+2.2%)      |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| freya_core::path_element::from_element        | 32025 → 32025 (+0.0%)    | 473.00ns → 478.00ns (+1.1%)     | 20.00ns → 20.00ns (+0.0%)        | 30.00ns → 30.00ns (+0.0%)       | 40.00ns → 40.00ns (+0.0%)       | 50.00ns → 50.00ns (+0.0%)       | 15.17ms → 15.32ms (+1.0%)       | 22.39% → 22.26% (-0.6%)      |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| mutations run                                 | 3 → 3 (+0.0%)            | 3.72ms → 3.84ms (+3.4%)         | 2.94µs → 2.57µs (-12.6%)         | 3.15ms → 3.25ms (+3.4%)         | 8.01ms → 8.28ms (+3.4%)         | 8.01ms → 8.28ms (+3.4%)         | 11.16ms → 11.53ms (+3.4%)       | 16.47% → 16.75% (+1.7%)      |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| Scope Rendering                               | 2 → 2 (+0.0%)            | 4.76ms → 4.71ms (-1.1%)         | 4.74ms → 4.62ms (-2.7%)          | 4.79ms → 4.81ms (+0.5%)         | 4.79ms → 4.81ms (+0.5%)         | 4.79ms → 4.81ms (+0.5%)         | 9.53ms → 9.42ms (-1.1%)         | 14.06% → 13.68% (-2.7%)      |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| freya_core::runner::apply_diff                | 6 → 6 (+0.0%)            | 1.28ms → 1.24ms (-2.9%)         | 5.08µs → 5.67µs (+11.7%)         | 1.61ms → 1.57ms (-2.0%)         | 2.38ms → 2.32ms (-2.6%)         | 2.38ms → 2.32ms (-2.6%)         | 7.65ms → 7.43ms (-2.9%)         | 11.30% → 10.79% (-4.5%)      |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| dirty run                                     | 3 → 3 (+0.0%)            | 1.89ms → 1.89ms (+0.1%)         | 250.00ns → 170.00ns (-32.0%) 🚀  | 1.34µs → 1.14µs (-14.9%)        | 5.67ms → 5.68ms (+0.1%)         | 5.67ms → 5.68ms (+0.1%)         | 5.67ms → 5.68ms (+0.1%)         | 8.37% → 8.24% (-1.6%)        |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| text style cascade                            | 3 → 3 (+0.0%)            | 1.66ms → 1.87ms (+12.5%)        | 60.00ns → 40.00ns (-33.3%) 🚀    | 761.00ns → 862.00ns (+13.3%)    | 4.99ms → 5.62ms (+12.5%)        | 4.99ms → 5.62ms (+12.5%)        | 4.99ms → 5.62ms (+12.5%)        | 7.37% → 8.15% (+10.6%)       |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| layer cascade                                 | 3 → 3 (+0.0%)            | 1.45ms → 1.41ms (-2.6%)         | 40.00ns → 40.00ns (+0.0%)        | 1.70ms → 1.60ms (-5.5%)         | 2.64ms → 2.62ms (-0.7%)         | 2.64ms → 2.62ms (-0.7%)         | 4.34ms → 4.23ms (-2.6%)         | 6.40% → 6.13% (-4.2%)        |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| freya_core::runner::handle_events_immediately | 3 → 3 (+0.0%)            | 250.00ns → 217.00ns (-13.2%)    | 220.00ns → 191.00ns (-13.2%)     | 240.00ns → 220.00ns (-8.3%)     | 290.00ns → 241.00ns (-16.9%)    | 290.00ns → 241.00ns (-16.9%)    | 750.00ns → 652.00ns (-13.1%)    | 0.00% → 0.00% (+0.0%)        |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+
| effect cascade                                | 3 → 3 (+0.0%)            | 83.00ns → 90.00ns (+8.4%)       | 40.00ns → 51.00ns (+27.5%) ⚠️    | 50.00ns → 60.00ns (+20.0%)      | 160.00ns → 160.00ns (+0.0%)     | 160.00ns → 160.00ns (+0.0%)     | 250.00ns → 271.00ns (+8.4%)     | 0.00% → 0.00% (+0.0%)        |
+-----------------------------------------------+--------------------------+---------------------------------+----------------------------------+---------------------------------+---------------------------------+---------------------------------+---------------------------------+------------------------------+

Generated with hotpath-rs

📊 View Raw JSON Metrics

PR Metrics

{
  "hotpath_profiling_mode": "timing",
  "time_elapsed": "69.57 ms",
  "total_elapsed_ns": 69574657,
  "total_elapsed_raw": 69574657,
  "description": "Execution duration of functions.",
  "caller_name": "dev_perf::main",
  "percentiles": [
    33,
    66,
    95,
    99
  ],
  "data": [
    {
      "name": "dev_perf::main",
      "calls": 1,
      "avg": "68.83 ms",
      "avg_raw": 68831597,
      "p95": "68.88 ms",
      "p33": "68.88 ms",
      "p99": "68.88 ms",
      "p66": "68.88 ms",
      "percentiles_raw": {
        "p66": 68878335,
        "p99": 68878335,
        "p33": 68878335,
        "p95": 68878335
      },
      "total": "68.83 ms",
      "total_raw": 68831597,
      "percent_total": "100.00%",
      "percent_total_raw": 10000
    },
    {
      "name": "freya_core::runner::run_scope",
      "calls": 32025,
      "avg": "1.69 µs",
      "avg_raw": 1687,
      "p66": "10 ns",
      "p99": "21 ns",
      "p33": "10 ns",
      "p95": "20 ns",
      "percentiles_raw": {
        "p95": 20,
        "p66": 10,
        "p33": 10,
        "p99": 21
      },
      "total": "54.05 ms",
      "total_raw": 54048081,
      "percent_total": "78.52%",
      "percent_total_raw": 7852
    },
    {
      "name": "freya_core::runner::sync_and_update",
      "calls": 3,
      "avg": "13.49 ms",
      "avg_raw": 13489923,
      "p99": "23.35 ms",
      "p66": "8.89 ms",
      "p33": "8.25 ms",
      "p95": "23.35 ms",
      "percentiles_raw": {
        "p95": 23347199,
        "p33": 8245247,
        "p99": 23347199,
        "p66": 8888319
      },
      "total": "40.47 ms",
      "total_raw": 40469770,
      "percent_total": "58.79%",
      "percent_total_raw": 5879
    },
    {
      "name": "freya_core::tree::apply_mutations",
      "calls": 3,
      "avg": "9.06 ms",
      "avg_raw": 9059555,
      "p33": "1.61 ms",
      "p99": "17.30 ms",
      "p95": "17.30 ms",
      "p66": "8.28 ms",
      "percentiles_raw": {
        "p99": 17301503,
        "p95": 17301503,
        "p33": 1609727,
        "p66": 8282111
      },
      "total": "27.18 ms",
      "total_raw": 27178667,
      "percent_total": "39.48%",
      "percent_total_raw": 3948
    },
    {
      "name": "freya_core::path_element::diff",
      "calls": 32025,
      "avg": "512 ns",
      "avg_raw": 512,
      "p66": "50 ns",
      "p99": "1.17 µs",
      "p33": "30 ns",
      "p95": "150 ns",
      "percentiles_raw": {
        "p33": 30,
        "p66": 50,
        "p99": 1172,
        "p95": 150
      },
      "total": "16.41 ms",
      "total_raw": 16406698,
      "percent_total": "23.83%",
      "percent_total_raw": 2383
    },
    {
      "name": "freya_core::path_element::from_element",
      "calls": 32025,
      "avg": "478 ns",
      "avg_raw": 478,
      "p99": "50 ns",
      "p95": "40 ns",
      "p33": "20 ns",
      "p66": "30 ns",
      "percentiles_raw": {
        "p99": 50,
        "p33": 20,
        "p66": 30,
        "p95": 40
      },
      "total": "15.32 ms",
      "total_raw": 15323238,
      "percent_total": "22.26%",
      "percent_total_raw": 2226
    },
    {
      "name": "mutations run",
      "calls": 3,
      "avg": "3.84 ms",
      "avg_raw": 3843977,
      "p99": "8.28 ms",
      "p66": "3.25 ms",
      "p33": "2.56 µs",
      "p95": "8.28 ms",
      "percentiles_raw": {
        "p66": 3252223,
        "p95": 8282111,
        "p99": 8282111,
        "p33": 2565
      },
      "total": "11.53 ms",
      "total_raw": 11531932,
      "percent_total": "16.75%",
      "percent_total_raw": 1675
    },
    {
      "name": "Scope Rendering",
      "calls": 2,
      "avg": "4.71 ms",
      "avg_raw": 4710669,
      "p33": "4.62 ms",
      "p95": "4.81 ms",
      "p99": "4.81 ms",
      "p66": "4.81 ms",
      "percentiles_raw": {
        "p99": 4812799,
        "p33": 4616191,
        "p95": 4812799,
        "p66": 4812799
      },
      "total": "9.42 ms",
      "total_raw": 9421338,
      "percent_total": "13.68%",
      "percent_total_raw": 1368
    },
    {
      "name": "freya_core::runner::apply_diff",
      "calls": 6,
      "avg": "1.24 ms",
      "avg_raw": 1238930,
      "p66": "1.57 ms",
      "p99": "2.32 ms",
      "p95": "2.32 ms",
      "p33": "5.67 µs",
      "percentiles_raw": {
        "p95": 2322431,
        "p66": 1574911,
        "p33": 5671,
        "p99": 2322431
      },
      "total": "7.43 ms",
      "total_raw": 7433582,
      "percent_total": "10.79%",
      "percent_total_raw": 1079
    },
    {
      "name": "dirty run",
      "calls": 3,
      "avg": "1.89 ms",
      "avg_raw": 1891724,
      "p33": "170 ns",
      "p95": "5.68 ms",
      "p99": "5.68 ms",
      "p66": "1.14 µs",
      "percentiles_raw": {
        "p66": 1143,
        "p95": 5677055,
        "p33": 170,
        "p99": 5677055
      },
      "total": "5.68 ms",
      "total_raw": 5675173,
      "percent_total": "8.24%",
      "percent_total_raw": 824
    },
    {
      "name": "text style cascade",
      "calls": 3,
      "avg": "1.87 ms",
      "avg_raw": 1871693,
      "p99": "5.62 ms",
      "p33": "40 ns",
      "p66": "862 ns",
      "p95": "5.62 ms",
      "percentiles_raw": {
        "p95": 5615615,
        "p99": 5615615,
        "p66": 862,
        "p33": 40
      },
      "total": "5.62 ms",
      "total_raw": 5615081,
      "percent_total": "8.15%",
      "percent_total_raw": 815
    },
    {
      "name": "layer cascade",
      "calls": 3,
      "avg": "1.41 ms",
      "avg_raw": 1408445,
      "p95": "2.62 ms",
      "p99": "2.62 ms",
      "p66": "1.60 ms",
      "p33": "40 ns",
      "percentiles_raw": {
        "p95": 2623487,
        "p66": 1603583,
        "p33": 40,
        "p99": 2623487
      },
      "total": "4.23 ms",
      "total_raw": 4225336,
      "percent_total": "6.13%",
      "percent_total_raw": 613
    },
    {
      "name": "freya_core::runner::handle_events_immediately",
      "calls": 3,
      "avg": "217 ns",
      "avg_raw": 217,
      "p33": "191 ns",
      "p99": "241 ns",
      "p95": "241 ns",
      "p66": "220 ns",
      "percentiles_raw": {
        "p95": 241,
        "p99": 241,
        "p66": 220,
        "p33": 191
      },
      "total": "652 ns",
      "total_raw": 652,
      "percent_total": "0.00%",
      "percent_total_raw": 0
    },
    {
      "name": "effect cascade",
      "calls": 3,
      "avg": "90 ns",
      "avg_raw": 90,
      "p95": "160 ns",
      "p33": "51 ns",
      "p66": "60 ns",
      "p99": "160 ns",
      "percentiles_raw": {
        "p66": 60,
        "p95": 160,
        "p99": 160,
        "p33": 51
      },
      "total": "271 ns",
      "total_raw": 271,
      "percent_total": "0.00%",
      "percent_total_raw": 0
    }
  ]
}

Main Branch Metrics

{
  "hotpath_profiling_mode": "timing",
  "time_elapsed": "68.47 ms",
  "total_elapsed_ns": 68470716,
  "total_elapsed_raw": 68470716,
  "description": "Execution duration of functions.",
  "caller_name": "dev_perf::main",
  "percentiles": [
    33,
    66,
    95,
    99
  ],
  "data": [
    {
      "name": "dev_perf::main",
      "calls": 1,
      "avg": "67.73 ms",
      "avg_raw": 67729834,
      "p33": "67.76 ms",
      "p95": "67.76 ms",
      "p99": "67.76 ms",
      "p66": "67.76 ms",
      "percentiles_raw": {
        "p33": 67764223,
        "p99": 67764223,
        "p95": 67764223,
        "p66": 67764223
      },
      "total": "67.73 ms",
      "total_raw": 67729834,
      "percent_total": "100.00%",
      "percent_total_raw": 10000
    },
    {
      "name": "freya_core::runner::run_scope",
      "calls": 32025,
      "avg": "1.69 µs",
      "avg_raw": 1692,
      "p33": "10 ns",
      "p66": "10 ns",
      "p99": "20 ns",
      "p95": "20 ns",
      "percentiles_raw": {
        "p99": 20,
        "p95": 20,
        "p33": 10,
        "p66": 10
      },
      "total": "54.21 ms",
      "total_raw": 54212258,
      "percent_total": "80.04%",
      "percent_total_raw": 8004
    },
    {
      "name": "freya_core::runner::sync_and_update",
      "calls": 3,
      "avg": "13.46 ms",
      "avg_raw": 13460723,
      "p95": "23.43 ms",
      "p33": "8.28 ms",
      "p99": "23.43 ms",
      "p66": "8.69 ms",
      "percentiles_raw": {
        "p66": 8691711,
        "p33": 8278015,
        "p99": 23429119,
        "p95": 23429119
      },
      "total": "40.38 ms",
      "total_raw": 40382169,
      "percent_total": "59.62%",
      "percent_total_raw": 5962
    },
    {
      "name": "freya_core::tree::apply_mutations",
      "calls": 3,
      "avg": "8.76 ms",
      "avg_raw": 8763619,
      "p99": "16.58 ms",
      "p66": "8.02 ms",
      "p95": "16.58 ms",
      "p33": "1.70 ms",
      "percentiles_raw": {
        "p33": 1702911,
        "p95": 16580607,
        "p66": 8015871,
        "p99": 16580607
      },
      "total": "26.29 ms",
      "total_raw": 26290857,
      "percent_total": "38.81%",
      "percent_total_raw": 3881
    },
    {
      "name": "freya_core::path_element::diff",
      "calls": 32025,
      "avg": "493 ns",
      "avg_raw": 493,
      "p33": "30 ns",
      "p95": "150 ns",
      "p66": "50 ns",
      "p99": "752 ns",
      "percentiles_raw": {
        "p99": 752,
        "p33": 30,
        "p95": 150,
        "p66": 50
      },
      "total": "15.80 ms",
      "total_raw": 15799583,
      "percent_total": "23.32%",
      "percent_total_raw": 2332
    },
    {
      "name": "freya_core::path_element::from_element",
      "calls": 32025,
      "avg": "473 ns",
      "avg_raw": 473,
      "p33": "20 ns",
      "p66": "30 ns",
      "p99": "50 ns",
      "p95": "40 ns",
      "percentiles_raw": {
        "p33": 20,
        "p66": 30,
        "p95": 40,
        "p99": 50
      },
      "total": "15.17 ms",
      "total_raw": 15165433,
      "percent_total": "22.39%",
      "percent_total_raw": 2239
    },
    {
      "name": "mutations run",
      "calls": 3,
      "avg": "3.72 ms",
      "avg_raw": 3719124,
      "p99": "8.01 ms",
      "p33": "2.94 µs",
      "p66": "3.15 ms",
      "p95": "8.01 ms",
      "percentiles_raw": {
        "p66": 3145727,
        "p99": 8011775,
        "p33": 2935,
        "p95": 8011775
      },
      "total": "11.16 ms",
      "total_raw": 11157374,
      "percent_total": "16.47%",
      "percent_total_raw": 1647
    },
    {
      "name": "Scope Rendering",
      "calls": 2,
      "avg": "4.76 ms",
      "avg_raw": 4763714,
      "p99": "4.79 ms",
      "p33": "4.74 ms",
      "p95": "4.79 ms",
      "p66": "4.79 ms",
      "percentiles_raw": {
        "p33": 4743167,
        "p66": 4788223,
        "p95": 4788223,
        "p99": 4788223
      },
      "total": "9.53 ms",
      "total_raw": 9527428,
      "percent_total": "14.06%",
      "percent_total_raw": 1406
    },
    {
      "name": "freya_core::runner::apply_diff",
      "calls": 6,
      "avg": "1.28 ms",
      "avg_raw": 1275738,
      "p95": "2.38 ms",
      "p33": "5.08 µs",
      "p99": "2.38 ms",
      "p66": "1.61 ms",
      "percentiles_raw": {
        "p95": 2383871,
        "p33": 5079,
        "p66": 1606655,
        "p99": 2383871
      },
      "total": "7.65 ms",
      "total_raw": 7654431,
      "percent_total": "11.30%",
      "percent_total_raw": 1130
    },
    {
      "name": "dirty run",
      "calls": 3,
      "avg": "1.89 ms",
      "avg_raw": 1890111,
      "p95": "5.67 ms",
      "p33": "250 ns",
      "p99": "5.67 ms",
      "p66": "1.34 µs",
      "percentiles_raw": {
        "p66": 1343,
        "p33": 250,
        "p99": 5668863,
        "p95": 5668863
      },
      "total": "5.67 ms",
      "total_raw": 5670333,
      "percent_total": "8.37%",
      "percent_total_raw": 837
    },
    {
      "name": "text style cascade",
      "calls": 3,
      "avg": "1.66 ms",
      "avg_raw": 1664263,
      "p66": "761 ns",
      "p33": "60 ns",
      "p95": "4.99 ms",
      "p99": "4.99 ms",
      "percentiles_raw": {
        "p95": 4993023,
        "p66": 761,
        "p33": 60,
        "p99": 4993023
      },
      "total": "4.99 ms",
      "total_raw": 4992791,
      "percent_total": "7.37%",
      "percent_total_raw": 737
    },
    {
      "name": "layer cascade",
      "calls": 3,
      "avg": "1.45 ms",
      "avg_raw": 1445673,
      "p66": "1.70 ms",
      "p95": "2.64 ms",
      "p33": "40 ns",
      "p99": "2.64 ms",
      "percentiles_raw": {
        "p95": 2641919,
        "p33": 40,
        "p66": 1696767,
        "p99": 2641919
      },
      "total": "4.34 ms",
      "total_raw": 4337019,
      "percent_total": "6.40%",
      "percent_total_raw": 640
    },
    {
      "name": "freya_core::runner::handle_events_immediately",
      "calls": 3,
      "avg": "250 ns",
      "avg_raw": 250,
      "p95": "290 ns",
      "p33": "220 ns",
      "p66": "240 ns",
      "p99": "290 ns",
      "percentiles_raw": {
        "p99": 290,
        "p66": 240,
        "p95": 290,
        "p33": 220
      },
      "total": "750 ns",
      "total_raw": 750,
      "percent_total": "0.00%",
      "percent_total_raw": 0
    },
    {
      "name": "effect cascade",
      "calls": 3,
      "avg": "83 ns",
      "avg_raw": 83,
      "p66": "50 ns",
      "p33": "40 ns",
      "p95": "160 ns",
      "p99": "160 ns",
      "percentiles_raw": {
        "p33": 40,
        "p66": 50,
        "p95": 160,
        "p99": 160
      },
      "total": "250 ns",
      "total_raw": 250,
      "percent_total": "0.00%",
      "percent_total_raw": 0
    }
  ]
}

@codecov
Copy link

codecov bot commented Mar 14, 2026

Codecov Report

❌ Patch coverage is 66.23377% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.90%. Comparing base (55b3a92) to head (c0bc8cb).

Files with missing lines Patch % Lines
crates/torin/src/values/content.rs 35.29% 11 Missing ⚠️
crates/torin/src/values/alignment.rs 50.00% 9 Missing ⚠️
crates/torin/src/values/visible_size.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1633   +/-   ##
=======================================
  Coverage   60.90%   60.90%           
=======================================
  Files         290      290           
  Lines       35837    35837           
=======================================
  Hits        21826    21826           
  Misses      14011    14011           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement 🔥 New feature or request

Projects

Status: Pending for Review

Development

Successfully merging this pull request may close these issues.

1 participant