Skip to content

Benchmark overview

This directory contains the comparable benchmark methodology, reproducible commands, fixture catalogue, result schema and raw per-release evidence for adotenv.

The current published evidence is the 1.8.0 result page, recorded from clean 1.8.0 code commit 28ffe7b. It records 20/20 non-empty strict speed wins (with 5/5 empty load losses from intentional 1.7.0 FIFO/permission file-opening checks) and 20/20 non-empty retained-heap wins (10/10 empty ties and 30/30 peak/allocation wins) for CompactValues, plus 10/10 strict speed wins and byte-for-byte identical memory to CompactValues across all 15 values cells for bare-preserving CompactEntries.

The 1.7.3 result page remains historical evidence from tagged release v1.7.3 (c5c199f). The 1.6.0 result page remains historical evidence from release-candidate commit 79860ac (pre-realloc fix and pre-1.7.0 load hardening). The 1.5.0 result page remains historical compact-values evidence (memory from 0a9fc92, post-release speed from 79937cc).

Charts can show all available pinned libraries, isolate compact vs map, or show only the best competitor per cell. Compact is the opt-in CompactValues API, CompactEntries is the bare-preserving CompactEntries API, and map is the standard BTreeMap-returning API.

The 1.4.1 result page remains historical evidence for the map-based API and for the speed claim. It records a strict win in all 25 comparable speed cells, all 30 peak-heap cells and all 30 allocation-count cells. Retained heap is a tie in all 30 map-based cells and a loss in none.

  • Methodology – what is measured, how, and what is excluded.
  • Running benchmarks – reproduce a cell locally or on a dedicated reference host.
  • Scenario catalogue – fixtures, exact hashes and modes.
  • Result schema – JSONL and bencher formats.
  • 1.4.1 results – historical speed and map-based evidence.
  • 1.5.0 results – historical compact-values memory and speed evidence.
  • 1.6.0 results – historical 1.6.0 compact-values, compact-entries and map evidence.
  • 1.7.3 results – historical 1.7.3 compact-values, compact-entries and map evidence.
  • 1.8.0 results – current 1.8.0 compact-values, compact-entries and map evidence.

The rendered tables are also available directly:

Terminal window
cargo run --release -p adotenv-xtask -- memory \
--out ~/.tmp/adotenv-bench/one-memory.jsonl \
--sizes 128 --shapes plain --modes values
cargo run --release -p adotenv-xtask -- speed \
--out ~/.tmp/adotenv-bench/one-speed.txt --bench competitors --filter 'plain/128'

Use a private scratch directory such as ~/.tmp/adotenv-bench rather than /tmp. The raw result and fingerprint files are the source of truth. Publication runs use a dedicated quiet Linux reference host through a single-slot serialized queue; do not run a publication benchmark concurrently with another benchmark.

The comparable claim covers Portable value parsing, file loading through each library’s value-loading API, and their peak/retained memory. Lossless documents, edits, formatting, sorting, reference inspection and resolution are internal workloads: competitors do not retain the same state, so comparing them would not be like-for-like.

All fixture inputs are deterministic and content-addressed. See SCENARIOS.md for the exact hashes and the supported matrix.