Pinned release v1.0.0 · 2026-12-01 · 3 rounds

Benchmarks & Performance

Every chart, ratio, exclusion table, and metric on this page is derived deterministically at build time from versioned, SHA-256-verified JSONL artifacts (747 speed rows across 26 timed fixtures including 1 MiB scaling ladders, and 695 memory rows across all 26 fixtures plus YAML emission).

2.12x-4.98x
Ahead of established Rust DOMs
ayaml value leads yaml-rust2 (2.12x), noyalib, saphyr (2.44x), fast-yaml-core, yaml-serde (3.08x), and serde-saphyr (4.98x, targeting serde_json::Value) , matches astral-yaml Value CPU (0.99x) at 3.85x lower peak heap (Tape: 1.42x faster, 5.89x lower peak) , and uses less peak heap than any measured external DOM.
1.72x / 1.87x
Ahead of C libyaml & C++ fkYAML
Public pull-based ayaml::parse_events beats C libyaml events (1.72x overall, 1.56x excluding large-scalar-1mb) and C libfyaml (2.78x); ayaml value beats C++ fkYAML (1.87x).
242.0 MiB/s
Deterministic YAML emission
133 to 242 MiB/s across 7 fixtures: 3.2x to 6.0x faster than yaml-serde and 1.2x to 2.4x faster than C++ fkYAML.
2456.2 MiB/s
1 MiB plain scalar streaming
On the single-line large-scalar-1mb plain scalar: 1.56x vs C libfyaml events (1575 MiB/s), 8.46x vs C++ rapidyaml, and 20.4x vs libyaml.
Tier 2 · Full Semantic / Typed DOM · Log scale vs ayaml (1.00x)

Generic Value & Serde DOM comparison

Geometric mean across shared fixtures relative to ayaml value (1.00x). Bars extending right mean ayaml is faster (or uses less peak heap / fewer allocations); bars extending left mean the peer is lower on that metric.

Parse time

Tier 2 parse time comparison vs ayaml value Log-scale geometric-mean parse time across shared fixtures relative to ayaml (Value DOM) = 1.00x. Terracotta = ayaml, blue = unsafe C++ arena, gray = slower peer. Baseline: ayaml (1.00x) ← Faster than ayaml Slower than ayaml → 0.5x 1x 2x 4x 8x rapidyaml (C++ arena) 0.64x ayaml (Tape + ParserBuf) 0.69x ayaml (Tape DOM) 0.70x astral-yaml (serde Value) 0.99x ayaml (Value DOM) 1.00x ayaml (serde Value) 1.27x ayaml (compat serde) 1.33x fkYAML 1.87x yaml-rust2 2.12x noyalib 2.32x saphyr 2.44x fast-yaml-core 2.48x yaml-serde 3.08x serde-saphyr (JSON Value) 4.98x
Log-scale geometric-mean parse time across shared fixtures relative to ayaml (Value DOM) = 1.00x. Terracotta = ayaml, blue = unsafe C++ arena, gray = slower peer.
Implementation Operation Language / Safety Shared (speed / mem) Time vs ayaml Peak heap vs ayaml Allocs vs ayaml
rapidyaml resolve-typed Unsafe C++ flat arena (no Rust DOM) 26 / 26 0.64x 2.49x <0.01x
ayaml tape-reuse Safe Rust reused flat-array DOM 26 / 0 0.69x n/a n/a
ayaml tape Safe Rust zero-copy flat-array DOM 26 / 26 0.70x 0.66x <0.01x
astral-yaml value Safe Rust arena + Serde (astral-yaml-serde) 25 / 25 0.99x 3.85x 1.10x
ayaml value Safe Rust (#![forbid(unsafe_code)]) 26 / 26 1.00x 1.00x 1.00x
ayaml serde-value Safe Rust Serde 25 / 25 1.27x 1.09x 1.01x
ayaml compat-serde Safe Rust (libyaml-compat) 25 / 25 1.33x 1.02x 1.01x
fkyaml parse C++ DOM parser 25 / 25 1.87x 1.21x 1.54x
yaml-rust2 parse Safe Rust DOM 26 / 26 2.12x 1.64x 4.12x
noyalib value Rust YAML DOM 24 / 24 2.32x 1.80x 1.78x
saphyr parse Safe Rust DOM 26 / 26 2.44x 2.15x 1.66x
fast-yaml-core parse Rust DOM 26 / 26 2.48x 2.24x 2.19x
yaml-serde value Unsafe C-transpiled libyaml-rs 25 / 25 3.08x 4.57x 5.12x
serde-saphyr serde-json Safe Rust Serde (serde_json::Value) 25 / 25 4.98x 1.64x 1.17x

Target & semantics note: ayaml tape measures cold parse_tape / parse_tape_documents (safe flat-array DOM borrowing unmodified strings zero-copy from input), while ayaml tape-reuse pairs ParserBuf with Tape::recycle_into (timing-only, symmetric with rapidyaml parse-reuse so cold memory ratios stay apples-to-apples). serde-saphyr targets serde_json::Value because it does not expose a native YAML Value DOM. astral-yaml (astral_yaml_serde::Value) parses a full spanned arena before deserializing into a linear Vec-backed mapping and defaults to a 64-level nesting cap. fkYAML is benchmarked on DOM construction and drop with O(1) root inspection (no post-parse tree walk). See Environment & Methodology for auto-rendered peer exclusions and duplicate-key / map-ordering differences.

Tier 1 · Zero-Copy & Structural Parsing · Log scale vs ayaml events (1.00x)

Pull event stream & spanned arenas vs Rust, C & C++ structural parsers

Geometric mean relative to public pull-based ayaml::parse_events (1.00x). ayaml beats C libyaml events on all three axes (1.72x faster overall, 1.56x excluding large-scalar-1mb, with 1.97x lower peak heap and 669x fewer allocations) and beats C libfyaml events by 2.78x. astral-yaml (spanned arena) parses directly into a memchr-accelerated arena (faster on CPU than ayaml spanned at 2.68x higher peak heap, and 27.9x higher peak heap than streaming ayaml::parse_events).

Parse time

Tier 1 parse time comparison vs ayaml events Log-scale geometric-mean structural parse time relative to public pull-based ayaml::parse_events = 1.00x. Terracotta = ayaml, blue = unsafe C++ arena, gray = slower C peer. Baseline: ayaml (1.00x) ← Faster than ayaml Slower than ayaml → 0.25x 0.5x 1x 2x 4x 8x 16x ayaml (scanner only) 0.46x astral-yaml (spanned arena) 0.71x rapidyaml (parse-reuse) 0.86x rapidyaml (parse-in-place) 0.90x rapidyaml (parse-arena) 0.91x ayaml (pull events) 1.00x ayaml (Tape + ParserBuf) 1.14x ayaml (Tape DOM) 1.16x ayaml (SpannedTree) 1.63x libyaml (events) 1.72x libfyaml (events) 2.78x libyaml (load) 2.83x libfyaml (doc) 8.52x
Log-scale geometric-mean structural parse time relative to public pull-based ayaml::parse_events = 1.00x. Terracotta = ayaml, blue = unsafe C++ arena, gray = slower C peer.
Implementation Operation Language / Safety Shared (speed / mem) Time vs ayaml events Peak heap vs ayaml events Allocs vs ayaml events
ayaml scan Safe Rust tokenizer (bench-internals) 26 / 12 0.46x <0.01x 0.46x
astral-yaml spanned Safe Rust spanned + commented arena (memchr) 25 / 25 0.71x 27.9x 7.90x
rapidyaml parse-reuse Unsafe C++ reused arena 26 / 0 0.86x n/a n/a
rapidyaml parse-in-place Unsafe C++ mutable in-place arena 26 / 26 0.90x 13.4x 0.57x
rapidyaml parse-arena Unsafe C++ flat arena 26 / 26 0.91x 17.9x 0.66x
ayaml events Safe Rust YAML 1.2.2 (parse_events) 26 / 26 1.00x 1.00x 1.00x
ayaml tape-reuse Safe Rust reused flat-array DOM 26 / 0 1.14x n/a n/a
ayaml tape Safe Rust zero-copy flat-array DOM 26 / 26 1.16x 5.17x 1.56x
ayaml spanned Safe Rust spanned tree 26 / 26 1.63x 9.36x 14.0x
libyaml events Unsafe C parser 26 / 26 1.72x 1.97x 669x
libfyaml events Unsafe C parser (portable) 26 / 26 2.78x 0.17x 3.92x
libyaml load Unsafe C document 26 / 26 2.83x 26.7x 910x
libfyaml doc Unsafe C document (portable) 19 / 19 8.52x 18.6x 344x

Memory methodology note: All three Tier 1 event loops (ayaml::parse_events, C libyaml events, and C libfyaml events) pull and discard each event immediately (live_bytes = 0), so peak heap reflects each parser's streaming working set. libyaml load retains all documents on multi-document streams (all 49 documents in cluster-manifests). ayaml scan shows 26 / 12 shared memory rows because the streaming scanner performs zero heap allocations (peak_bytes = 0) on 14 of the 26 fixtures, which are omitted from positive log-ratio geometric means.

Typed Rust Serde Decode · 10 measured modes · Speed & Peak Heap

Owned & zero-copy borrowed struct deserialization

Direct struct decoding across 3 representative workloads. ayaml streams typed reads directly from events at every input size (D107), eliminating the old 4 KiB tree-fallback cliff (31.3 KiB below 4 KiB and 32.9 KiB above 4 KiB) and saving up to 31.0x peak heap vs yaml-serde. Includes cold flat-array Tape typed and borrowed deserialization alongside streaming Serde. All tabs share fixed 0 to 70 MiB/s and 0 to 150 KiB axes for direct cross-size comparison.

Tiny frontmatter (323 B)

Typed Serde throughput and peak heap for Tiny frontmatter Side-by-side throughput (MiB/s) and peak heap (KiB) with allocation counts for Tiny frontmatter (323 B). Throughput (MiB/s, higher = faster) Peak heap (KiB, lower = better) · allocs 0 14 28 42 56 70 0 50 100 150 astral-yaml (borrowed) 65.5 7.8 KiB · 14 astral-yaml (owned) 64.2 7.8 KiB · 23 ayaml (from_str_borrowed) 40.0 2.5 KiB · 9 ayaml (Tape borrowed) 39.6 1.7 KiB · 7 ayaml (from_str owned) 38.8 2.7 KiB · 18 ayaml (Tape owned) 38.5 1.7 KiB · 16 yaml-serde (owned) 19.8 76.5 KiB · 159 noyalib (borrowed) 17.2 8.6 KiB · 71 noyalib (owned) 16.9 8.8 KiB · 80 serde-saphyr (owned) 8.7 15.4 KiB · 19
Typed Serde throughput and peak heap for Tiny frontmatter
Implementation Throughput Median latency Peak heap Live heap Allocations
astral-yaml (borrowed) 65.5 MiB/s 4.7 µs 7.8 KiB 96 B 14
astral-yaml (owned) 64.2 MiB/s 4.8 µs 7.8 KiB 293 B 23
ayaml (from_str_borrowed) 40.0 MiB/s 7.7 µs 2.5 KiB 96 B 9
ayaml (Tape borrowed) 39.6 MiB/s 7.8 µs 1.7 KiB 96 B 7
ayaml (from_str owned) 38.8 MiB/s 7.9 µs 2.7 KiB 293 B 18
ayaml (Tape owned) 38.5 MiB/s 8.0 µs 1.7 KiB 293 B 16
yaml-serde (owned) 19.8 MiB/s 15.6 µs 76.5 KiB 437 B 159
noyalib (borrowed) 17.2 MiB/s 17.9 µs 8.6 KiB 192 B 71
noyalib (owned) 16.9 MiB/s 18.2 µs 8.8 KiB 437 B 80
serde-saphyr (owned) 8.7 MiB/s 35.4 µs 15.4 KiB 437 B 19
Scenario: frontmatter-tiny (323 B), covering all 10 measured typed/borrowed decode operations. Shared axes across all tabs (0 to 70 MiB/s and 0 to 150 KiB) make cross-size memory consistency visible.
Serialization & Emission · 12 libraries · 7 fixtures

Deterministic YAML emission throughput & memory

ayaml emits canonical YAML 1.2.2 with YAML 1.1-safe leading-zero numeral quoting at 133 to 242 MiB/s: 1.2x to 2.4x faster than C++ fkYAML, 1.7x to 3.3x faster than noyalib, and 3.2x to 6.0x faster than yaml-serde. Switch between log-scale geometric-mean ratios (time, peak heap, allocations) and per-scenario throughput bars below.

Emission time (geomean)

YAML emission time (geomean) comparison vs ayaml emit Log-scale geometric-mean YAML emission time across shared emission fixtures (up to 7) relative to ayaml (safe Rust) = 1.00x. Scales cleanly across all 12 measured emitters without small-vs-large fixture distortion. Baseline: ayaml (1.00x) ← Faster than ayaml Slower than ayaml → 0.25x 0.5x 1x 2x 4x 8x astral-yaml (flow-only) 0.47x rapidyaml (C++ arena) 0.72x ayaml (safe Rust) 1.00x saphyr (Rust) 1.51x yaml-rust2 (Rust) 1.81x fkYAML (C++) 2.01x serde-saphyr (JSON Value) 2.23x fast-yaml-core (Rust) 2.47x noyalib (Rust) 2.73x libfyaml (C) 3.10x libyaml (C) 3.14x yaml-serde (libyaml) 4.96x
YAML emission time (geomean) comparison vs ayaml emit
Implementation Ratio vs baseline
astral-yaml (flow-only) 0.47x
rapidyaml (C++ arena) 0.72x
ayaml (safe Rust) 1.00x
saphyr (Rust) 1.51x
yaml-rust2 (Rust) 1.81x
fkYAML (C++) 2.01x
serde-saphyr (JSON Value) 2.23x
fast-yaml-core (Rust) 2.47x
noyalib (Rust) 2.73x
libfyaml (C) 3.10x
libyaml (C) 3.14x
yaml-serde (libyaml) 4.96x
Log-scale geometric-mean YAML emission time across shared emission fixtures (up to 7) relative to ayaml (safe Rust) = 1.00x. Scales cleanly across all 12 measured emitters without small-vs-large fixture distortion.
Scenario Implementation Throughput Median latency Peak heap Retained output Allocations
frontmatter-tiny astral-yaml (flow-only) 354.3 MiB/s 0.9 µs 1.8 KiB 1.0 KiB 2
frontmatter-tiny rapidyaml (C++ arena) 206.4 MiB/s 1.5 µs 324 B 324 B 1
frontmatter-tiny ayaml (safe Rust) 137.8 MiB/s 2.2 µs 792 B 528 B 9
frontmatter-tiny saphyr (Rust) 109.8 MiB/s 2.8 µs 840 B 560 B 7
frontmatter-tiny yaml-rust2 (Rust) 88.9 MiB/s 3.5 µs 840 B 560 B 7
frontmatter-tiny noyalib (Rust) 70.1 MiB/s 4.4 µs 3.1 KiB 438 B 35
frontmatter-tiny fkYAML (C++) 66.4 MiB/s 4.6 µs 1.3 KiB 481 B 11
frontmatter-tiny serde-saphyr (JSON Value) 64.3 MiB/s 4.8 µs 480 B 320 B 17
frontmatter-tiny fast-yaml-core (Rust) 49.4 MiB/s 6.2 µs 968 B 512 B 8
frontmatter-tiny libfyaml (C) 46.6 MiB/s 6.6 µs 6.4 KiB 308 B 5
frontmatter-tiny libyaml (C) 45.8 MiB/s 6.7 µs 50.5 KiB 512 B 65
frontmatter-tiny yaml-serde (libyaml) 27.8 MiB/s 11.1 µs 50.8 KiB 307 B 38
ci-workflow astral-yaml (flow-only) 465.5 MiB/s 44.5 µs 49.5 KiB 32.0 KiB 8
ci-workflow rapidyaml (C++ arena) 258.3 MiB/s 80.3 µs 20.9 KiB 20.9 KiB 1
ci-workflow ayaml (safe Rust) 239.8 MiB/s 86.4 µs 43.5 KiB 29.0 KiB 36
ci-workflow saphyr (Rust) 139.2 MiB/s 148.9 µs 49.5 KiB 33.0 KiB 13
ci-workflow yaml-rust2 (Rust) 115.6 MiB/s 179.3 µs 49.5 KiB 33.0 KiB 13
ci-workflow fkYAML (C++) 98.5 MiB/s 210.5 µs 45.6 KiB 30.0 KiB 303
ci-workflow serde-saphyr (JSON Value) 92.0 MiB/s 225.3 µs 34.5 KiB 23.0 KiB 602
ci-workflow fast-yaml-core (Rust) 80.5 MiB/s 257.6 µs 48.4 KiB 32.0 KiB 38
ci-workflow noyalib (Rust) 73.9 MiB/s 280.5 µs 173.3 KiB 41.6 KiB 1,442
ci-workflow libyaml (C) 64.8 MiB/s 319.9 µs 98.0 KiB 32.0 KiB 2,249
ci-workflow libfyaml (C) 54.3 MiB/s 381.8 µs 47.9 KiB 21.8 KiB 10
ci-workflow yaml-serde (libyaml) 40.1 MiB/s 516.6 µs 98.4 KiB 32.0 KiB 996
openapi-spec astral-yaml (flow-only) 347.0 MiB/s 476.4 µs 387.0 KiB 256.0 KiB 13
openapi-spec rapidyaml (C++ arena) 228.4 MiB/s 723.8 µs 167.6 KiB 167.6 KiB 1
openapi-spec ayaml (safe Rust) 172.1 MiB/s 960.7 µs 384.0 KiB 256.0 KiB 1,456
openapi-spec fkYAML (C++) 83.8 MiB/s 1.97 ms 360.6 KiB 240.0 KiB 745
openapi-spec saphyr (Rust) 83.8 MiB/s 1.97 ms 384.0 KiB 256.0 KiB 16
openapi-spec yaml-rust2 (Rust) 69.5 MiB/s 2.38 ms 384.0 KiB 256.0 KiB 16
openapi-spec serde-saphyr (JSON Value) 64.4 MiB/s 2.57 ms 480.0 KiB 320.0 KiB 8,079
openapi-spec fast-yaml-core (Rust) 60.5 MiB/s 2.73 ms 384.7 KiB 256.0 KiB 1,459
openapi-spec libfyaml (C) 54.5 MiB/s 3.04 ms 409.7 KiB 203.6 KiB 55
openapi-spec noyalib (Rust) 52.5 MiB/s 3.15 ms 2.19 MiB 369.2 KiB 20,119
openapi-spec libyaml (C) 48.8 MiB/s 3.39 ms 434.1 KiB 256.0 KiB 31,181
openapi-spec yaml-serde (libyaml) 31.1 MiB/s 5.32 ms 434.3 KiB 255.9 KiB 13,854
lockfile-wide astral-yaml (flow-only) 383.2 MiB/s 139.3 µs 102.0 KiB 64.0 KiB 11
lockfile-wide rapidyaml (C++ arena) 258.3 MiB/s 206.7 µs 54.7 KiB 54.7 KiB 1
lockfile-wide ayaml (safe Rust) 179.5 MiB/s 297.4 µs 90.0 KiB 60.0 KiB 13
lockfile-wide saphyr (Rust) 165.2 MiB/s 323.2 µs 114.0 KiB 76.0 KiB 14
lockfile-wide yaml-rust2 (Rust) 145.1 MiB/s 368.0 µs 114.0 KiB 76.0 KiB 14
lockfile-wide fast-yaml-core (Rust) 85.0 MiB/s 627.9 µs 96.4 KiB 64.0 KiB 15
lockfile-wide serde-saphyr (JSON Value) 85.0 MiB/s 628.5 µs 108.0 KiB 72.0 KiB 2,925
lockfile-wide libfyaml (C) 81.2 MiB/s 657.3 µs 128.3 KiB 62.2 KiB 20
lockfile-wide fkYAML (C++) 77.2 MiB/s 691.2 µs 90.6 KiB 60.0 KiB 896
lockfile-wide noyalib (Rust) 57.8 MiB/s 923.9 µs 575.5 KiB 60.3 KiB 4,542
lockfile-wide libyaml (C) 56.2 MiB/s 949.4 µs 146.1 KiB 64.0 KiB 5,975
lockfile-wide yaml-serde (libyaml) 36.3 MiB/s 1.47 ms 146.4 KiB 64.0 KiB 2,433
escape-routes astral-yaml (flow-only) 404.8 MiB/s 97.0 µs 96.8 KiB 64.0 KiB 8
escape-routes ayaml (safe Rust) 242.0 MiB/s 162.3 µs 96.0 KiB 64.0 KiB 13
escape-routes saphyr (Rust) 123.8 MiB/s 317.3 µs 60.0 KiB 40.0 KiB 13
escape-routes fkYAML (C++) 113.0 MiB/s 347.6 µs 90.6 KiB 60.0 KiB 593
escape-routes yaml-rust2 (Rust) 106.4 MiB/s 369.1 µs 60.0 KiB 40.0 KiB 13
escape-routes serde-saphyr (JSON Value) 97.4 MiB/s 403.3 µs 96.0 KiB 64.0 KiB 1,138
escape-routes fast-yaml-core (Rust) 92.1 MiB/s 426.6 µs 96.7 KiB 64.0 KiB 17
escape-routes noyalib (Rust) 77.3 MiB/s 508.4 µs 307.5 KiB 65.5 KiB 2,821
escape-routes libyaml (C) 71.1 MiB/s 552.7 µs 146.0 KiB 64.0 KiB 4,032
escape-routes libfyaml (C) 57.9 MiB/s 678.9 µs 72.5 KiB 34.4 KiB 333
escape-routes yaml-serde (libyaml) 46.2 MiB/s 850.7 µs 146.4 KiB 64.0 KiB 1,703
unicode-multibyte astral-yaml (flow-only) 374.2 MiB/s 89.1 µs 96.8 KiB 64.0 KiB 8
unicode-multibyte rapidyaml (C++ arena) 226.0 MiB/s 147.6 µs 33.8 KiB 33.8 KiB 1
unicode-multibyte saphyr (Rust) 143.6 MiB/s 232.3 µs 54.0 KiB 36.0 KiB 13
unicode-multibyte ayaml (safe Rust) 132.9 MiB/s 251.0 µs 84.0 KiB 56.0 KiB 13
unicode-multibyte yaml-rust2 (Rust) 116.7 MiB/s 285.8 µs 54.0 KiB 36.0 KiB 13
unicode-multibyte fkYAML (C++) 107.2 MiB/s 311.1 µs 90.6 KiB 60.0 KiB 494
unicode-multibyte serde-saphyr (JSON Value) 102.5 MiB/s 325.4 µs 84.0 KiB 56.0 KiB 736
unicode-multibyte fast-yaml-core (Rust) 87.3 MiB/s 382.0 µs 96.4 KiB 64.0 KiB 15
unicode-multibyte noyalib (Rust) 77.2 MiB/s 431.9 µs 268.4 KiB 70.2 KiB 2,171
unicode-multibyte libyaml (C) 65.6 MiB/s 508.2 µs 146.0 KiB 64.0 KiB 3,384
unicode-multibyte libfyaml (C) 56.6 MiB/s 589.5 µs 78.4 KiB 36.3 KiB 14
unicode-multibyte yaml-serde (libyaml) 41.8 MiB/s 798.7 µs 146.4 KiB 64.0 KiB 1,580
scale-openapi-100kb astral-yaml (flow-only) 345.7 MiB/s 418.6 µs 387.0 KiB 256.0 KiB 12
scale-openapi-100kb rapidyaml (C++ arena) 228.4 MiB/s 633.6 µs 146.7 KiB 146.7 KiB 1
scale-openapi-100kb ayaml (safe Rust) 171.4 MiB/s 844.0 µs 384.0 KiB 256.0 KiB 1,276
scale-openapi-100kb saphyr (Rust) 83.8 MiB/s 1.73 ms 384.0 KiB 256.0 KiB 16
scale-openapi-100kb fkYAML (C++) 83.8 MiB/s 1.73 ms 360.6 KiB 240.0 KiB 653
scale-openapi-100kb yaml-rust2 (Rust) 69.5 MiB/s 2.08 ms 384.0 KiB 256.0 KiB 16
scale-openapi-100kb serde-saphyr (JSON Value) 64.3 MiB/s 2.25 ms 480.0 KiB 320.0 KiB 7,074
scale-openapi-100kb fast-yaml-core (Rust) 60.5 MiB/s 2.39 ms 384.7 KiB 256.0 KiB 1,279
scale-openapi-100kb libfyaml (C) 55.3 MiB/s 2.62 ms 360.3 KiB 178.2 KiB 49
scale-openapi-100kb noyalib (Rust) 52.6 MiB/s 2.75 ms 1.91 MiB 323.2 KiB 17,612
scale-openapi-100kb libyaml (C) 48.7 MiB/s 2.97 ms 434.0 KiB 256.0 KiB 27,296
scale-openapi-100kb yaml-serde (libyaml) 31.2 MiB/s 4.64 ms 434.3 KiB 255.9 KiB 12,129

Target notes: serde-saphyr serializes from serde_json::Value because it does not expose a native YAML Value DOM. astral-yaml (astral_yaml_serde::to_string) emits flow-style YAML with quoted strings rather than block-style YAML. Every emitting peer is verified by a pre-timing semantic round-trip oracle.

Full dataset · All 26 timed & memory scenarios · 25 parse operations

Per-scenario throughput, latency, peak heap, and allocations

Inspect log-scale visual maps for Tier 2 DOM speed (all 11 peers including ayaml Tape DOM, noyalib, and fast-yaml-core), Tier 1 structural speed, and peak heap across all 26 scenarios, or switch to the complete stacked Tier 1 and Tier 2 numeric tables covering every measured parse operation with zero omissions.

Visual map: Tier 2 DOM CPU speed (26 scenarios)

Tier 2 per-scenario relative parse time across 26 timed workloads Dot strip plotting Tier 2 DOM and Tape parse time relative to ayaml value = 1.0x on a log2 scale across 26 pinned scenarios. ayaml value (1.0x) ayaml (Tape + ParserBuf) ayaml (Tape DOM) rapidyaml (C++) fkYAML (C++) astral-yaml (serde Value) yaml-rust2 noyalib saphyr fast-yaml-core yaml-serde serde-saphyr ← Faster than ayaml value Slower than ayaml value → 0.25x 1x 4x 16x 64x frontmatter-tiny frontmatter-tiny: rapidyaml (C++) = 0.60x time vs ayaml value frontmatter-tiny: astral-yaml (serde Value) = 0.79x time vs ayaml value frontmatter-tiny: ayaml (Tape DOM) = 0.88x time vs ayaml value frontmatter-tiny: ayaml (Tape + ParserBuf) = 0.90x time vs ayaml value frontmatter-tiny: fkYAML (C++) = 1.22x time vs ayaml value frontmatter-tiny: yaml-rust2 = 1.72x time vs ayaml value frontmatter-tiny: saphyr = 1.98x time vs ayaml value frontmatter-tiny: noyalib = 2.08x time vs ayaml value frontmatter-tiny: fast-yaml-core = 2.31x time vs ayaml value frontmatter-tiny: yaml-serde = 2.49x time vs ayaml value frontmatter-tiny: serde-saphyr = 4.81x time vs ayaml value ci-workflow ci-workflow: rapidyaml (C++) = 0.52x time vs ayaml value ci-workflow: ayaml (Tape + ParserBuf) = 0.72x time vs ayaml value ci-workflow: ayaml (Tape DOM) = 0.73x time vs ayaml value ci-workflow: astral-yaml (serde Value) = 0.90x time vs ayaml value ci-workflow: fkYAML (C++) = 1.52x time vs ayaml value ci-workflow: yaml-rust2 = 1.85x time vs ayaml value ci-workflow: saphyr = 2.10x time vs ayaml value ci-workflow: fast-yaml-core = 2.22x time vs ayaml value ci-workflow: noyalib = 2.22x time vs ayaml value ci-workflow: yaml-serde = 2.80x time vs ayaml value ci-workflow: serde-saphyr = 4.46x time vs ayaml value container-compose container-compose: rapidyaml (C++) = 0.48x time vs ayaml value container-compose: ayaml (Tape + ParserBuf) = 0.53x time vs ayaml value container-compose: ayaml (Tape DOM) = 0.54x time vs ayaml value container-compose: astral-yaml (serde Value) = 1.03x time vs ayaml value container-compose: fkYAML (C++) = 1.09x time vs ayaml value container-compose: yaml-rust2 = 1.89x time vs ayaml value container-compose: saphyr = 2.07x time vs ayaml value container-compose: fast-yaml-core = 2.15x time vs ayaml value container-compose: yaml-serde = 2.66x time vs ayaml value container-compose: serde-saphyr = 7.33x time vs ayaml value openapi-spec openapi-spec: rapidyaml (C++) = 0.54x time vs ayaml value openapi-spec: ayaml (Tape + ParserBuf) = 0.71x time vs ayaml value openapi-spec: ayaml (Tape DOM) = 0.72x time vs ayaml value openapi-spec: astral-yaml (serde Value) = 1.05x time vs ayaml value openapi-spec: fkYAML (C++) = 1.52x time vs ayaml value openapi-spec: yaml-rust2 = 2.01x time vs ayaml value openapi-spec: noyalib = 2.23x time vs ayaml value openapi-spec: saphyr = 2.25x time vs ayaml value openapi-spec: yaml-serde = 2.61x time vs ayaml value openapi-spec: fast-yaml-core = 2.61x time vs ayaml value openapi-spec: serde-saphyr = 5.58x time vs ayaml value lockfile-wide lockfile-wide: rapidyaml (C++) = 0.52x time vs ayaml value lockfile-wide: ayaml (Tape + ParserBuf) = 0.69x time vs ayaml value lockfile-wide: ayaml (Tape DOM) = 0.69x time vs ayaml value lockfile-wide: astral-yaml (serde Value) = 0.99x time vs ayaml value lockfile-wide: fkYAML (C++) = 1.60x time vs ayaml value lockfile-wide: noyalib = 1.96x time vs ayaml value lockfile-wide: yaml-rust2 = 2.08x time vs ayaml value lockfile-wide: saphyr = 2.40x time vs ayaml value lockfile-wide: fast-yaml-core = 2.42x time vs ayaml value lockfile-wide: yaml-serde = 2.62x time vs ayaml value lockfile-wide: serde-saphyr = 4.85x time vs ayaml value escape-routes escape-routes: rapidyaml (C++) = 0.53x time vs ayaml value escape-routes: ayaml (Tape + ParserBuf) = 0.73x time vs ayaml value escape-routes: ayaml (Tape DOM) = 0.73x time vs ayaml value escape-routes: astral-yaml (serde Value) = 0.97x time vs ayaml value escape-routes: fkYAML (C++) = 1.49x time vs ayaml value escape-routes: yaml-rust2 = 1.84x time vs ayaml value escape-routes: noyalib = 1.87x time vs ayaml value escape-routes: saphyr = 2.12x time vs ayaml value escape-routes: fast-yaml-core = 2.13x time vs ayaml value escape-routes: yaml-serde = 2.37x time vs ayaml value escape-routes: serde-saphyr = 4.36x time vs ayaml value json-in-yaml json-in-yaml: rapidyaml (C++) = 0.60x time vs ayaml value json-in-yaml: ayaml (Tape + ParserBuf) = 0.86x time vs ayaml value json-in-yaml: ayaml (Tape DOM) = 0.86x time vs ayaml value json-in-yaml: astral-yaml (serde Value) = 0.95x time vs ayaml value json-in-yaml: fkYAML (C++) = 1.73x time vs ayaml value json-in-yaml: noyalib = 2.04x time vs ayaml value json-in-yaml: yaml-rust2 = 2.04x time vs ayaml value json-in-yaml: fast-yaml-core = 2.46x time vs ayaml value json-in-yaml: saphyr = 2.52x time vs ayaml value json-in-yaml: yaml-serde = 2.65x time vs ayaml value json-in-yaml: serde-saphyr = 5.41x time vs ayaml value unicode-multibyte unicode-multibyte: rapidyaml (C++) = 0.60x time vs ayaml value unicode-multibyte: ayaml (Tape + ParserBuf) = 0.79x time vs ayaml value unicode-multibyte: ayaml (Tape DOM) = 0.79x time vs ayaml value unicode-multibyte: astral-yaml (serde Value) = 1.10x time vs ayaml value unicode-multibyte: fkYAML (C++) = 1.66x time vs ayaml value unicode-multibyte: yaml-rust2 = 1.91x time vs ayaml value unicode-multibyte: noyalib = 2.18x time vs ayaml value unicode-multibyte: saphyr = 2.21x time vs ayaml value unicode-multibyte: fast-yaml-core = 2.46x time vs ayaml value unicode-multibyte: yaml-serde = 2.69x time vs ayaml value unicode-multibyte: serde-saphyr = 4.67x time vs ayaml value cluster-manifests cluster-manifests: rapidyaml (C++) = 0.47x time vs ayaml value cluster-manifests: ayaml (Tape + ParserBuf) = 0.69x time vs ayaml value cluster-manifests: ayaml (Tape DOM) = 0.69x time vs ayaml value cluster-manifests: astral-yaml (serde Value) = 0.88x time vs ayaml value cluster-manifests: yaml-rust2 = 1.84x time vs ayaml value cluster-manifests: saphyr = 2.08x time vs ayaml value cluster-manifests: fast-yaml-core = 2.17x time vs ayaml value cluster-manifests: noyalib = 2.27x time vs ayaml value cluster-manifests: serde-saphyr = 4.69x time vs ayaml value boundary-4kb-below boundary-4kb-below: rapidyaml (C++) = 0.49x time vs ayaml value boundary-4kb-below: ayaml (Tape + ParserBuf) = 0.71x time vs ayaml value boundary-4kb-below: ayaml (Tape DOM) = 0.75x time vs ayaml value boundary-4kb-below: astral-yaml (serde Value) = 1.03x time vs ayaml value boundary-4kb-below: yaml-rust2 = 2.06x time vs ayaml value boundary-4kb-below: noyalib = 2.15x time vs ayaml value boundary-4kb-below: fkYAML (C++) = 2.26x time vs ayaml value boundary-4kb-below: fast-yaml-core = 2.33x time vs ayaml value boundary-4kb-below: saphyr = 2.34x time vs ayaml value boundary-4kb-below: yaml-serde = 2.92x time vs ayaml value boundary-4kb-below: serde-saphyr = 5.06x time vs ayaml value boundary-4kb-above boundary-4kb-above: rapidyaml (C++) = 0.48x time vs ayaml value boundary-4kb-above: ayaml (Tape + ParserBuf) = 0.71x time vs ayaml value boundary-4kb-above: ayaml (Tape DOM) = 0.75x time vs ayaml value boundary-4kb-above: astral-yaml (serde Value) = 1.03x time vs ayaml value boundary-4kb-above: yaml-rust2 = 2.07x time vs ayaml value boundary-4kb-above: noyalib = 2.17x time vs ayaml value boundary-4kb-above: fkYAML (C++) = 2.28x time vs ayaml value boundary-4kb-above: fast-yaml-core = 2.34x time vs ayaml value boundary-4kb-above: saphyr = 2.35x time vs ayaml value boundary-4kb-above: yaml-serde = 2.95x time vs ayaml value boundary-4kb-above: serde-saphyr = 5.08x time vs ayaml value scale-map-10kb scale-map-10kb: rapidyaml (C++) = 0.56x time vs ayaml value scale-map-10kb: ayaml (Tape + ParserBuf) = 0.65x time vs ayaml value scale-map-10kb: ayaml (Tape DOM) = 0.68x time vs ayaml value scale-map-10kb: astral-yaml (serde Value) = 0.96x time vs ayaml value scale-map-10kb: yaml-rust2 = 2.17x time vs ayaml value scale-map-10kb: saphyr = 2.39x time vs ayaml value scale-map-10kb: fkYAML (C++) = 2.42x time vs ayaml value scale-map-10kb: fast-yaml-core = 2.44x time vs ayaml value scale-map-10kb: noyalib = 2.51x time vs ayaml value scale-map-10kb: yaml-serde = 3.32x time vs ayaml value scale-map-10kb: serde-saphyr = 5.40x time vs ayaml value scale-map-100kb scale-map-100kb: rapidyaml (C++) = 0.59x time vs ayaml value scale-map-100kb: ayaml (Tape + ParserBuf) = 0.68x time vs ayaml value scale-map-100kb: ayaml (Tape DOM) = 0.68x time vs ayaml value scale-map-100kb: astral-yaml (serde Value) = 1.03x time vs ayaml value scale-map-100kb: yaml-rust2 = 2.19x time vs ayaml value scale-map-100kb: saphyr = 2.40x time vs ayaml value scale-map-100kb: fast-yaml-core = 2.40x time vs ayaml value scale-map-100kb: noyalib = 2.48x time vs ayaml value scale-map-100kb: fkYAML (C++) = 2.74x time vs ayaml value scale-map-100kb: yaml-serde = 3.10x time vs ayaml value scale-map-100kb: serde-saphyr = 5.59x time vs ayaml value scale-map-1mb scale-map-1mb: rapidyaml (C++) = 0.61x time vs ayaml value scale-map-1mb: ayaml (Tape + ParserBuf) = 0.68x time vs ayaml value scale-map-1mb: ayaml (Tape DOM) = 0.68x time vs ayaml value scale-map-1mb: astral-yaml (serde Value) = 1.13x time vs ayaml value scale-map-1mb: yaml-rust2 = 2.17x time vs ayaml value scale-map-1mb: fast-yaml-core = 2.39x time vs ayaml value scale-map-1mb: saphyr = 2.40x time vs ayaml value scale-map-1mb: noyalib = 2.45x time vs ayaml value scale-map-1mb: yaml-serde = 3.02x time vs ayaml value scale-map-1mb: fkYAML (C++) = 3.03x time vs ayaml value scale-map-1mb: serde-saphyr = 5.57x time vs ayaml value scale-seq-10kb scale-seq-10kb: ayaml (Tape + ParserBuf) = 0.70x time vs ayaml value scale-seq-10kb: ayaml (Tape DOM) = 0.70x time vs ayaml value scale-seq-10kb: rapidyaml (C++) = 0.87x time vs ayaml value scale-seq-10kb: astral-yaml (serde Value) = 0.93x time vs ayaml value scale-seq-10kb: fkYAML (C++) = 2.32x time vs ayaml value scale-seq-10kb: yaml-rust2 = 2.35x time vs ayaml value scale-seq-10kb: fast-yaml-core = 2.65x time vs ayaml value scale-seq-10kb: noyalib = 2.70x time vs ayaml value scale-seq-10kb: saphyr = 2.71x time vs ayaml value scale-seq-10kb: yaml-serde = 4.28x time vs ayaml value scale-seq-10kb: serde-saphyr = 4.85x time vs ayaml value scale-seq-100kb scale-seq-100kb: ayaml (Tape DOM) = 0.70x time vs ayaml value scale-seq-100kb: ayaml (Tape + ParserBuf) = 0.70x time vs ayaml value scale-seq-100kb: rapidyaml (C++) = 0.93x time vs ayaml value scale-seq-100kb: astral-yaml (serde Value) = 0.97x time vs ayaml value scale-seq-100kb: fkYAML (C++) = 2.33x time vs ayaml value scale-seq-100kb: yaml-rust2 = 2.34x time vs ayaml value scale-seq-100kb: noyalib = 2.59x time vs ayaml value scale-seq-100kb: fast-yaml-core = 2.62x time vs ayaml value scale-seq-100kb: saphyr = 2.71x time vs ayaml value scale-seq-100kb: yaml-serde = 3.99x time vs ayaml value scale-seq-100kb: serde-saphyr = 4.83x time vs ayaml value scale-seq-1mb scale-seq-1mb: ayaml (Tape + ParserBuf) = 0.70x time vs ayaml value scale-seq-1mb: ayaml (Tape DOM) = 0.70x time vs ayaml value scale-seq-1mb: rapidyaml (C++) = 1.00x time vs ayaml value scale-seq-1mb: astral-yaml (serde Value) = 1.06x time vs ayaml value scale-seq-1mb: fkYAML (C++) = 2.32x time vs ayaml value scale-seq-1mb: yaml-rust2 = 2.35x time vs ayaml value scale-seq-1mb: noyalib = 2.55x time vs ayaml value scale-seq-1mb: fast-yaml-core = 2.63x time vs ayaml value scale-seq-1mb: saphyr = 2.73x time vs ayaml value scale-seq-1mb: yaml-serde = 3.91x time vs ayaml value scale-seq-1mb: serde-saphyr = 4.82x time vs ayaml value scale-openapi-10kb scale-openapi-10kb: rapidyaml (C++) = 0.51x time vs ayaml value scale-openapi-10kb: ayaml (Tape + ParserBuf) = 0.70x time vs ayaml value scale-openapi-10kb: ayaml (Tape DOM) = 0.70x time vs ayaml value scale-openapi-10kb: astral-yaml (serde Value) = 0.96x time vs ayaml value scale-openapi-10kb: fkYAML (C++) = 1.55x time vs ayaml value scale-openapi-10kb: yaml-rust2 = 2.04x time vs ayaml value scale-openapi-10kb: noyalib = 2.25x time vs ayaml value scale-openapi-10kb: saphyr = 2.31x time vs ayaml value scale-openapi-10kb: fast-yaml-core = 2.49x time vs ayaml value scale-openapi-10kb: yaml-serde = 2.75x time vs ayaml value scale-openapi-10kb: serde-saphyr = 5.47x time vs ayaml value scale-openapi-100kb scale-openapi-100kb: rapidyaml (C++) = 0.51x time vs ayaml value scale-openapi-100kb: ayaml (Tape + ParserBuf) = 0.71x time vs ayaml value scale-openapi-100kb: ayaml (Tape DOM) = 0.72x time vs ayaml value scale-openapi-100kb: astral-yaml (serde Value) = 0.96x time vs ayaml value scale-openapi-100kb: fkYAML (C++) = 1.52x time vs ayaml value scale-openapi-100kb: yaml-rust2 = 2.01x time vs ayaml value scale-openapi-100kb: noyalib = 2.22x time vs ayaml value scale-openapi-100kb: saphyr = 2.26x time vs ayaml value scale-openapi-100kb: fast-yaml-core = 2.61x time vs ayaml value scale-openapi-100kb: yaml-serde = 2.62x time vs ayaml value scale-openapi-100kb: serde-saphyr = 5.56x time vs ayaml value scale-openapi-1mb scale-openapi-1mb: rapidyaml (C++) = 0.59x time vs ayaml value scale-openapi-1mb: ayaml (Tape DOM) = 0.72x time vs ayaml value scale-openapi-1mb: ayaml (Tape + ParserBuf) = 0.72x time vs ayaml value scale-openapi-1mb: astral-yaml (serde Value) = 1.12x time vs ayaml value scale-openapi-1mb: fkYAML (C++) = 1.55x time vs ayaml value scale-openapi-1mb: yaml-rust2 = 2.09x time vs ayaml value scale-openapi-1mb: noyalib = 2.22x time vs ayaml value scale-openapi-1mb: saphyr = 2.34x time vs ayaml value scale-openapi-1mb: yaml-serde = 2.53x time vs ayaml value scale-openapi-1mb: fast-yaml-core = 2.64x time vs ayaml value scale-openapi-1mb: serde-saphyr = 5.60x time vs ayaml value short-seq-20000 short-seq-20000: ayaml (Tape + ParserBuf) = 0.67x time vs ayaml value short-seq-20000: ayaml (Tape DOM) = 0.67x time vs ayaml value short-seq-20000: rapidyaml (C++) = 0.84x time vs ayaml value short-seq-20000: astral-yaml (serde Value) = 1.17x time vs ayaml value short-seq-20000: fkYAML (C++) = 1.49x time vs ayaml value short-seq-20000: yaml-rust2 = 1.88x time vs ayaml value short-seq-20000: saphyr = 2.16x time vs ayaml value short-seq-20000: noyalib = 2.35x time vs ayaml value short-seq-20000: fast-yaml-core = 2.36x time vs ayaml value short-seq-20000: yaml-serde = 2.44x time vs ayaml value short-seq-20000: serde-saphyr = 4.88x time vs ayaml value short-map-20000 short-map-20000: rapidyaml (C++) = 0.53x time vs ayaml value short-map-20000: ayaml (Tape + ParserBuf) = 0.66x time vs ayaml value short-map-20000: ayaml (Tape DOM) = 0.66x time vs ayaml value short-map-20000: astral-yaml (serde Value) = 1.20x time vs ayaml value short-map-20000: yaml-rust2 = 2.13x time vs ayaml value short-map-20000: saphyr = 2.32x time vs ayaml value short-map-20000: fast-yaml-core = 2.41x time vs ayaml value short-map-20000: noyalib = 2.49x time vs ayaml value short-map-20000: yaml-serde = 2.84x time vs ayaml value short-map-20000: fkYAML (C++) = 2.97x time vs ayaml value short-map-20000: serde-saphyr = 5.88x time vs ayaml value short-explicit-20000 short-explicit-20000: rapidyaml (C++) = 0.59x time vs ayaml value short-explicit-20000: ayaml (Tape DOM) = 0.71x time vs ayaml value short-explicit-20000: ayaml (Tape + ParserBuf) = 0.71x time vs ayaml value short-explicit-20000: astral-yaml (serde Value) = 1.09x time vs ayaml value short-explicit-20000: yaml-rust2 = 1.86x time vs ayaml value short-explicit-20000: saphyr = 2.09x time vs ayaml value short-explicit-20000: fast-yaml-core = 2.11x time vs ayaml value short-explicit-20000: noyalib = 2.43x time vs ayaml value short-explicit-20000: yaml-serde = 2.44x time vs ayaml value short-explicit-20000: fkYAML (C++) = 2.72x time vs ayaml value short-explicit-20000: serde-saphyr = 5.13x time vs ayaml value aliases-1000 aliases-1000: ayaml (Tape + ParserBuf) = 0.30x time vs ayaml value aliases-1000: ayaml (Tape DOM) = 0.31x time vs ayaml value aliases-1000: rapidyaml (C++) = 0.61x time vs ayaml value aliases-1000: fkYAML (C++) = 0.66x time vs ayaml value aliases-1000: astral-yaml (serde Value) = 1.40x time vs ayaml value aliases-1000: fast-yaml-core = 1.59x time vs ayaml value aliases-1000: yaml-rust2 = 1.87x time vs ayaml value aliases-1000: saphyr = 2.06x time vs ayaml value aliases-1000: yaml-serde = 2.41x time vs ayaml value depth-64 depth-64: rapidyaml (C++) = 0.36x time vs ayaml value depth-64: fkYAML (C++) = 0.55x time vs ayaml value depth-64: ayaml (Tape + ParserBuf) = 0.67x time vs ayaml value depth-64: ayaml (Tape DOM) = 0.79x time vs ayaml value depth-64: yaml-rust2 = 0.95x time vs ayaml value depth-64: noyalib = 1.02x time vs ayaml value depth-64: saphyr = 1.25x time vs ayaml value depth-64: fast-yaml-core = 1.41x time vs ayaml value depth-64: yaml-serde = 1.46x time vs ayaml value depth-64: serde-saphyr = 3.03x time vs ayaml value large-scalar-1mb large-scalar-1mb: astral-yaml (serde Value) = 0.43x time vs ayaml value large-scalar-1mb: ayaml (Tape + ParserBuf) = 0.90x time vs ayaml value large-scalar-1mb: ayaml (Tape DOM) = 0.90x time vs ayaml value large-scalar-1mb: serde-saphyr = 3.36x time vs ayaml value large-scalar-1mb: noyalib = 7.47x time vs ayaml value large-scalar-1mb: rapidyaml (C++) = 7.60x time vs ayaml value large-scalar-1mb: fast-yaml-core = 14.4x time vs ayaml value large-scalar-1mb: fkYAML (C++) = 14.4x time vs ayaml value large-scalar-1mb: yaml-rust2 = 14.5x time vs ayaml value large-scalar-1mb: saphyr = 20.9x time vs ayaml value large-scalar-1mb: yaml-serde = 39.2x time vs ayaml value
Tier 2 per-scenario relative parse time across 26 timed workloads
Scenario ayaml (Tape + ParserBuf)ayaml (Tape DOM)rapidyaml (C++)fkYAML (C++)astral-yaml (serde Value)yaml-rust2noyalibsaphyrfast-yaml-coreyaml-serdeserde-saphyr
frontmatter-tiny 0.90x0.88x0.60x1.22x0.79x1.72x2.08x1.98x2.31x2.49x4.81x
ci-workflow 0.72x0.73x0.52x1.52x0.90x1.85x2.22x2.10x2.22x2.80x4.46x
container-compose 0.53x0.54x0.48x1.09x1.03x1.89xn/a2.07x2.15x2.66x7.33x
openapi-spec 0.71x0.72x0.54x1.52x1.05x2.01x2.23x2.25x2.61x2.61x5.58x
lockfile-wide 0.69x0.69x0.52x1.60x0.99x2.08x1.96x2.40x2.42x2.62x4.85x
escape-routes 0.73x0.73x0.53x1.49x0.97x1.84x1.87x2.12x2.13x2.37x4.36x
json-in-yaml 0.86x0.86x0.60x1.73x0.95x2.04x2.04x2.52x2.46x2.65x5.41x
unicode-multibyte 0.79x0.79x0.60x1.66x1.10x1.91x2.18x2.21x2.46x2.69x4.67x
cluster-manifests 0.69x0.69x0.47xn/a0.88x1.84x2.27x2.08x2.17xn/a4.69x
boundary-4kb-below 0.71x0.75x0.49x2.26x1.03x2.06x2.15x2.34x2.33x2.92x5.06x
boundary-4kb-above 0.71x0.75x0.48x2.28x1.03x2.07x2.17x2.35x2.34x2.95x5.08x
scale-map-10kb 0.65x0.68x0.56x2.42x0.96x2.17x2.51x2.39x2.44x3.32x5.40x
scale-map-100kb 0.68x0.68x0.59x2.74x1.03x2.19x2.48x2.40x2.40x3.10x5.59x
scale-map-1mb 0.68x0.68x0.61x3.03x1.13x2.17x2.45x2.40x2.39x3.02x5.57x
scale-seq-10kb 0.70x0.70x0.87x2.32x0.93x2.35x2.70x2.71x2.65x4.28x4.85x
scale-seq-100kb 0.70x0.70x0.93x2.33x0.97x2.34x2.59x2.71x2.62x3.99x4.83x
scale-seq-1mb 0.70x0.70x1.00x2.32x1.06x2.35x2.55x2.73x2.63x3.91x4.82x
scale-openapi-10kb 0.70x0.70x0.51x1.55x0.96x2.04x2.25x2.31x2.49x2.75x5.47x
scale-openapi-100kb 0.71x0.72x0.51x1.52x0.96x2.01x2.22x2.26x2.61x2.62x5.56x
scale-openapi-1mb 0.72x0.72x0.59x1.55x1.12x2.09x2.22x2.34x2.64x2.53x5.60x
short-seq-20000 0.67x0.67x0.84x1.49x1.17x1.88x2.35x2.16x2.36x2.44x4.88x
short-map-20000 0.66x0.66x0.53x2.97x1.20x2.13x2.49x2.32x2.41x2.84x5.88x
short-explicit-20000 0.71x0.71x0.59x2.72x1.09x1.86x2.43x2.09x2.11x2.44x5.13x
aliases-1000 0.30x0.31x0.61x0.66x1.40x1.87xn/a2.06x1.59x2.41xn/a
depth-64 0.67x0.79x0.36x0.55xn/a0.95x1.02x1.25x1.41x1.46x3.03x
large-scalar-1mb 0.90x0.90x7.60x14.4x0.43x14.5x7.47x20.9x14.4x39.2x3.36x
Each row plots peer median parse time divided by ayaml value median parse time (log2 axis). Covers all 11 Tier 2 peers (ayaml (Tape + ParserBuf), ayaml (Tape DOM), rapidyaml (C++), fkYAML (C++), astral-yaml (serde Value), yaml-rust2, noyalib, saphyr, fast-yaml-core, yaml-serde, serde-saphyr). Hover any marker for exact ratio.
Complexity verification · 3 scaling families

10x linear scaling ladder (10 KiB → 100 KiB → 1 MiB)

Normalized growth when input size increases by 10x (1.00x = ideal O(n) scaling; 0.10x = constant O(1) memory). Compare ayaml's four parsing modes (including flat O(1) 42.0 KiB streaming Pull Events and low-footprint Tape DOM), individual ayaml value families, and external peer scaling curves up to 57.14 MiB. Verified automatically by cargo xtask scale.

ayaml modes (O(1) Pull Events, Tape DOM, Value DOM, SpannedTree)

10x scaling across ayaml parsing modes (Pull Events O(1), Tape DOM, Value DOM, SpannedTree) Two-panel plot showing log-log peak heap across 10 KiB to 1 MiB for ayaml Pull Events, Tape DOM, Value DOM, and SpannedTree on the left, and unclamped normalized 10x step ratios on the right. Peak heap by ayaml mode (geomean, log-log) Normalized 10x step ratio (0.10x = O(1), 1.00x = O(n)) 50 KiB 100 KiB 250 KiB 1 MiB 4 MiB 10 MiB 10 KiB 100 KiB 1 MiB O(n) slope guide · flat = O(1) Pull Events (O(1)) (10kb): 42.0 KiB peak heap, 0.13 ms Pull Events (O(1)) (100kb): 42.0 KiB peak heap, 1.33 ms Pull Events (O(1)) (1mb): 42.0 KiB peak heap, 13.32 ms Tape DOM (10kb): 53.7 KiB peak heap, 0.15 ms Tape DOM (100kb): 357.1 KiB peak heap, 1.47 ms Tape DOM (1mb): 3.29 MiB peak heap, 14.86 ms Value DOM (10kb): 64.2 KiB peak heap, 0.21 ms Value DOM (100kb): 656.2 KiB peak heap, 2.11 ms Value DOM (1mb): 5.85 MiB peak heap, 21.27 ms SpannedTree (10kb): 106.2 KiB peak heap, 0.21 ms SpannedTree (100kb): 1.06 MiB peak heap, 2.17 ms SpannedTree (1mb): 9.26 MiB peak heap, 21.87 ms 0.0x 0.5x 1.5x 1.0x Pull Events (O(1)) 0.10x 0.99x 1.00x 0.10x Tape DOM 0.66x 0.99x 1.01x 0.95x Value DOM 1.02x 0.99x 1.01x 0.91x SpannedTree 1.02x 1.01x 1.01x 0.87x Pull Events (O(1)) Tape DOM Value DOM SpannedTree 10k → 100k peak 10k → 100k time 100k → 1m time 100k → 1m peak
10x scaling across ayaml parsing modes (Pull Events O(1), Tape DOM, Value DOM, SpannedTree)
Series 10 KiB to 100 KiB time 100 KiB to 1 MiB time 10 KiB to 100 KiB peak 100 KiB to 1 MiB peak
Pull Events (O(1)) 0.99x 1.00x 0.10x 0.10x
Tape DOM 0.99x 1.01x 0.66x 0.95x
Value DOM 0.99x 1.01x 1.02x 0.91x
SpannedTree 1.01x 1.01x 1.02x 0.87x
Geometric mean across all 3 scaling families. ayaml Pull Events stays flat at ~42.0 KiB from 10 KiB to 1 MiB (0.10x peak step = true O(1) memory), while Tape DOM, Value DOM, and SpannedTree track the O(n) slope cleanly.
ayaml mode Workload family 10k → 100k time 100k → 1m time 10k → 100k peak 100k → 1m peak 1 MiB peak heap
ayaml (Pull Events, O(1)) Block mapping 0.98x 1.00x 0.10x 0.10x 41.9 KiB
ayaml (Pull Events, O(1)) Block sequence 0.98x 1.00x 0.10x 0.10x 41.9 KiB
ayaml (Pull Events, O(1)) Nested OpenAPI 0.99x 1.00x 0.10x 0.10x 42.3 KiB
ayaml (Tape DOM) Block mapping 0.99x 1.02x 0.85x 0.89x 5.24 MiB
ayaml (Tape DOM) Block sequence 0.98x 1.00x 0.50x 1.00x 1.42 MiB
ayaml (Tape DOM) Nested OpenAPI 1.00x 1.01x 0.68x 0.96x 4.79 MiB
ayaml (Value DOM) Block mapping 0.99x 1.02x 1.29x 0.88x 8.20 MiB
ayaml (Value DOM) Block sequence 0.99x 1.00x 1.07x 0.90x 4.33 MiB
ayaml (Value DOM) Nested OpenAPI 0.98x 1.00x 0.77x 0.97x 5.63 MiB
ayaml (SpannedTree) Block mapping 1.05x 1.02x 1.32x 0.79x 13.84 MiB
ayaml (SpannedTree) Block sequence 0.99x 1.00x 0.98x 0.85x 6.18 MiB
ayaml (SpannedTree) Nested OpenAPI 0.98x 1.00x 0.82x 0.98x 9.27 MiB
Versioned Release Trajectory · 1 archived release · 1 epoch

Release History

Every historical point is computed deterministically from archived site/src/data/benchmarks/releases/<version>/ snapshots indexed by manifest.json. Releases are grouped strictly by (hardware_epoch, fixture_manifest_sha256) so trend lines and release-over-release deltas never cross incompatible CPU generations or mutated fixture catalogs.

Initial epoch baseline: v1.0.0

Epoch 1 · 1 archived release

v1.0.0 anchors the active measurement epoch (linux-x86_64-intel-skylake-ad5aadfb, fixture manifest 2f523fd5ca6b). When subsequent releases are ingested via node site/scripts/import-benchmarks.mjs --version <ver> --from <dir> --sync-docs, this section automatically activates 4-tab multi-release trend charts (Parse speed, Peak heap, Allocations, and Emission throughput) with automatic epoch-boundary guards.

ayaml value (geomean)
43.3 MiB/s
Peak heap geomean: 304.7 KiB
ayaml tape (geomean)
62.0 MiB/s
Peak heap geomean: 202.3 KiB
ayaml events (geomean)
71.6 MiB/s
Pull-based streaming baseline (1.00x)
ayaml emit (geomean)
177.8 MiB/s
Across 7 shared emission fixtures

Archived release summary

Deltas compare against the immediately preceding release in the same epoch
Release Commit Captured Hardware epoch Value speed ΔTape speed ΔValue peak ΔValue allocs ΔEmit speed Δ
v1.0.0 latest d9393995bafe 2026-12-01 linux-x86_64-intel-skylake-ad5aadfb baselinebaselinebaselinebaselinebaseline

Positive speed deltas indicate faster throughput vs the immediately preceding release in the same epoch; negative peak-heap and allocation deltas indicate lower memory overhead.

Architecture trade-offs

Why C++ arena parsers (rapidyaml) differ on structured workloads

Safety, conformance, and ownership vs. raw mutable byte arenas

On geometric mean across the 26-fixture suite, ayaml is faster than every measured Rust YAML library, C libyaml, C libfyaml, and C++ fkYAML. On dense multi-node documents, C++ rapidyaml stays about 1.10x ahead of pull events and 1.56x ahead of ayaml value on geometric mean because its output model does much less per-node work. It parses raw bytes into a flat, unsafe C++ index arena (optionally mutating the input buffer in place) with a handful of arena allocations (1 to 17 across fixtures), skipping Rust UTF-8 ownership checks, duplicate-key hashing, YAML 1.2.2 Core schema resolution on the arena path, and owned per-node Value / Mapping structures.

ayaml enforces #![forbid(unsafe_code)], YAML 1.2.2 Core schema semantics, duplicate mapping-key rejection, byte-accurate spans, bounded alias-expansion budgets, and full Serde integration. For read-only DOM inspection and bulk loops, ayaml's flat-array Tape (D108) runs 1.43x faster than ayaml value cold (1.46x with warm ParserBuf reuse) and sits within 1.09x cold (1.07x warm) of cold unsafe C++ rapidyaml resolve-typed, while cold ayaml tape uses 3.75x less peak heap than rapidyaml and 140x fewer allocations than ayaml value. On bulk plain text (large-scalar-1mb, a 1,000,000-byte single-line plain scalar), ayaml::parse_events runs at 2456.2 MiB/s, compared to 1575.3 MiB/s for C libfyaml events and 8.46x faster than rapidyaml. For a visual breakdown of parse-in-place, parse-arena, Tape DOM, and Value DOM memory layouts, see Parsing modes explained.

Environment, peer versions & methodology

Hardware, compiler flags, peer versions, and disclosed exclusions

Pure-Rust ayaml benchmarks and the deterministic ayaml-fixtures catalog live in zeropier/ayaml (run via cargo xtask). Full 12-parser Rust/C/C++ comparisons run from the standalone public harness zeropier/ayaml-benchmarks so the core ayaml repository stays 100% pure Rust with zero C/C++ build dependencies.

CPU & microarchitecture x86_64 Intel Skylake-class quad-core (8 threads) @ 2.60 GHz
Microarchitecture: Intel Skylake (x86_64, 6th-gen Core class)
OS & kernel linux/x86_64 (Linux 7.1.3-arch1-2), 8 logical cores
Isolation Pinned CPU core 2 , performance frequency governor
Rust compilerrustc 1.97.0 (2d8144b78 2026-07-07)
C / C++ compilers cc (GCC) 16.1.1 20260625 / c++ (GCC) 16.1.1 20260625
Build & LTO flags Rust: release / bench (opt-level=3, lto=false, codegen-units=16, default target-cpu)
C: libyaml: C -O3 via cc; libfyaml: C (-std=gnu11 -O3, HAVE_PORTABLE_TARGET=1 without host-specific SIMD flags, matching default Rust target-cpu)
C++: rapidyaml: C++11 -O3 via cc; fkyaml: C++17 -O3 via cc
Criterion settings warm_up=500ms, measurement=1200ms, sample_size=30, rounds=3 (median of round medians)
Cross-round variance (CV) Median 0.316%, 95th percentile 2.763%, max 14.879% across 3 rounds
Comparative harness zeropier/ayaml-benchmarks@b3b3a2254a69
Published release snapshotv1.0.0 (epoch linux-x86_64-intel-skylake-ad5aadfb, schema v2)
Measured ayaml commitd9393995bafeb217f6f04f0e30e82804e816f827
Fixture manifest SHA-2562f523fd5ca6b3c0125b488a051ead2b2b2caae3ab5b43b6d84a546be994df71e
Detailed methodology Benchmark methodology guide
Library / crate Pinned version
astral-yaml 0.0.8
astral-yaml-serde 0.0.8
ayaml 1.0.0
fast-yaml-core 0.7.0
fkyaml v0.5.0
libfyaml v1.0.0-rc2
libyaml 0.2.6
noyalib 0.0.63
rapidyaml v0.16.0
saphyr 0.3.3
serde-saphyr 2.2.0
yaml-rust2 0.13.0
yaml-serde 0.10.7
Harness dependency Pinned version
criterion 0.7.0
serde 1.0.229
serde_json 1.0.154
Reproduce locally
# 1. Pure-Rust ayaml benchmarks & fixture catalog (inside zeropier/ayaml)
cargo xtask fixtures --verify
cargo xtask speed --out-dir target/xtask
cargo xtask memory --suite full --out-dir target/xtask
cargo xtask scale --out-dir target/xtask
cargo xtask det --suite pr --base HEAD~1

# 2. Full 12-parser Rust/C/C++ comparative harness (standalone repository)
git clone https://github.com/zeropier/ayaml-benchmarks.git
cd ayaml-benchmarks
git checkout b3b3a2254a694bf0043e02903a93e27d10366792
cargo test --workspace --all-features --locked
./scripts/run_benchmarks.sh --rounds 3 --cpu 2

Disclosed per-peer scenario exclusions

Auto-rendered directly from schema-v2 fingerprint.json exclusions[]
Implementation Operation Excluded scenarios Recorded reason
astral-yaml spanned depth-64 nesting limit exceeded at bytes 64..65 (line 1, column 65)
astral-yaml value depth-64 nesting limit exceeded at bytes 64..65 (line 1, column 65)
ayaml compat-serde cluster-manifests multi-document stream excluded from single-document ayaml::compat::from_str
ayaml serde-value cluster-manifests multi-document stream excluded from single-document ayaml::from_str
fkyaml parse cluster-manifests multi-document stream excluded from single-doc deserialize
libfyaml doc scale-map-100kb , scale-map-1mb , scale-openapi-1mb , short-map-20000 , short-explicit-20000 excluded from fy_document_build_from_string due to quadratic or multi-hundred-ms document construction
libfyaml doc depth-64 hits libfyaml recursive document loader depth limit (64)
libfyaml doc cluster-manifests multi-document stream excluded from single-document fy_document_build_from_string
noyalib value aliases-1000 alias_anchor_ratio heuristic tripped: 11 aliases / 1 anchors > 10
noyalib value container-compose alias_anchor_ratio heuristic tripped: 41 aliases / 4 anchors > 10
rapidyaml emit escape-routes emitted YAML failed re-parse: non-printable character U+001B is not allowed in YAML at line 11 column 51
serde-saphyr serde-json aliases-1000 error: line 1003 column 1: budget breached: AliasAnchorRatio { aliases: 1000, anchors: 1 } --> <input>:1002:11 | 1001 | - *base 1002 | - *base | ^ budget breached: AliasAnchorRatio { aliases: 1000, anchors: 1 }
yaml-serde value cluster-manifests single-doc yaml_serde::from_str

Warm buffer-reuse operations (timing-only by design): rapidyaml parse-reuse , ayaml tape-reuse reuse pre-warmed scratch buffers across Criterion iterations and intentionally omit cold heap rows so peak-heap and allocation ratios stay apples-to-apples.

Disclosed methodology caveats & semantic differences

  • serde-saphyr DOM target: serde-saphyr does not expose a YAML-native Value DOM, so Tier 2 deserializes into serde_json::Value (string-only object keys, BTreeMap-backed ordered keys, no YAML tags).
  • astral-yaml (0.0.8) arena, Value, and flow-only emission: astral-yaml spanned parses into a single-pass memchr-accelerated arena retaining spans and comments (no pull-event streaming iterator). astral-yaml value deserializes from that arena into astral_yaml_serde::Value, whose mappings are stored as Vec<(Value, Value)> rather than a hash-indexed map; its default 64-level nesting limit excludes depth-64. astral-yaml emit (astral_yaml_serde::to_string) emits flow-style YAML with quoted strings rather than block-style YAML.
  • Duplicate-key & insertion-order semantics: ayaml enforces duplicate mapping-key rejection and preserves insertion order via indexmap. rapidyaml and libyaml skip duplicate hashing during parsing; fkYAML stores mappings in sorted std::map; serde_json::Value uses BTreeMap; yaml-rust2 and saphyr use LinkedHashMap / Hash with differing duplicate policies.
  • ayaml tape & ayaml tape-reuse: ayaml tape benchmarks cold parse_tape / parse_tape_documents on both timing and exact cold memory (16-byte safe-Rust flat-array nodes borrowing unmodified scalars zero-copy from input, verified equal to ayaml::Value via to_value() in the pre-timing oracle). ayaml tape-reuse pairs ParserBuf with Tape::recycle_into for timing only, matching rapidyaml parse-reuse symmetrically so cold peak-heap and allocation ratios are never mixed with pre-warmed buffer deltas.
  • libfyaml portable build & ayaml scan: libfyaml is compiled with HAVE_PORTABLE_TARGET=1 (portable C without host-specific SIMD flags, matching default Rust target-cpu). libfyaml events uses raw non-resolving FYPCF_QUIET events matching ayaml::parse_events and libyaml events. ayaml scan uses the bench-internals feature to isolate the tokenizer; ayaml events uses the public pull-based ayaml::parse_events iterator.
  • Synthetic deterministic fixtures: The ayaml-fixtures catalog uses deterministic seeded generators representing common YAML shapes (CI workflows, OpenAPI specs, multi-doc manifests, lockfiles, scaling ladders, and stress cases) rather than raw third-party repositories. Treat published numbers as reproducible baselines and always benchmark on your own production documents.