Add tokenization benchmarks comparing Links Notation with JSON, YAML, XML #210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements UTF-8 character count benchmarks comparing Links Notation (lino) against JSON, YAML, and XML formats. The benchmarks are implemented in all six supported languages and include a GitHub Actions workflow for automatic report generation.
Key Changes
New benchmark implementations in all 6 supported languages:
BENCHMARK_RESULTS.md)5 benchmark test cases covering different data structures:
employees- Employee records with nested structuresimple_doublets- Simple doublet links (2-tuples)triplets- Triplet relations (3-tuples)nested_structure- Deeply nested company structureconfig- Application configurationGitHub Actions workflow (
benchmarks.yml) that:BENCHMARK_RESULTS.mdif results changeBenchmark Results
Average savings with Lino:
Files Changed
.github/workflows/benchmarks.yml- New CI workflow for benchmark automationbenchmarks/- New benchmark directory with:BENCHMARK_RESULTS.md- Generated results (auto-updated by CI)README.md- Documentation for running benchmarksdata/- Test data files in all formatsrust/links-notation-benchmark/- Rust benchmark craterust/Cargo.toml- Updated workspace membersTest Plan
cargo test -p links-notation-benchmark)Issue Reference
Closes #209
🤖 Generated with Claude Code