{"id":51851213,"url":"https://github.com/lu-zero/portage-bench","last_synced_at":"2026-07-23T19:30:36.163Z","repository":{"id":357648904,"uuid":"1237378105","full_name":"lu-zero/portage-bench","owner":"lu-zero","description":"Benchmarks for portage-atom and pkgcraft dependency parsing","archived":false,"fork":false,"pushed_at":"2026-05-22T20:29:10.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-22T22:55:47.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lu-zero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-13T06:05:48.000Z","updated_at":"2026-05-22T20:29:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lu-zero/portage-bench","commit_stats":null,"previous_names":["lu-zero/portage-bench"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lu-zero/portage-bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fportage-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fportage-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fportage-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fportage-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lu-zero","download_url":"https://codeload.github.com/lu-zero/portage-bench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fportage-bench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35814999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-23T02:00:06.683Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-23T19:30:35.564Z","updated_at":"2026-07-23T19:30:36.151Z","avatar_url":"https://github.com/lu-zero.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# portage-bench\n\nBenchmarks for the Gentoo Portage Rust ecosystem.\n\n## What's Benchmarked\n\n### Criterion (microbenchmarks)\n\n| Bench file | What it measures |\n|------------|-----------------|\n| `dep_parsing` | Atom/dependency parsing (portage-atom vs pkgcraft) |\n| `realworld_dep_parsing` | Real ebuild RDEPEND strings (portage-atom vs pkgcraft) |\n| `resolve` | PubGrub dependency resolution on full repo |\n| `dedup` | Deduplication of parsed dep/license/required-use trees |\n\n### Wall-clock (CLI)\n\n| Tool | What it measures |\n|------|-----------------|\n| `em regen` | Full metadata-cache regeneration |\n| `em search` | Package search by name/description |\n| `pk repo metadata regen` | pkgcraft baseline (regen) |\n| `emerge -s` / `qsearch` | Portage/portage-utils baselines (Gentoo only) |\n\n## Variables\n\n| Dimension | Values |\n|-----------|--------|\n| Interner backend | papaya (default), lasso, symbol-table |\n| Allocator | system (default), mimalloc |\n\n## Setup\n\n```sh\ngit clone https://github.com/lu-zero/portage-bench\ncd portage-bench\n\n# Clone sibling crates\n../portage-bench/scripts/maint.sh setup\n\n# Shallow Gentoo tree for regen/search benchmarks (~200 MB)\ngit clone --depth 1 https://github.com/gentoo/gentoo.git gentoo\n\n# pkgcraft baseline (optional, for comparison)\ngit clone https://github.com/pkgcraft/pkgcraft ../pkgcraft\n```\n\n## Running\n\n```sh\n# Full sweep: 6 configs × (criterion + regen + search)\n./scripts/bench-sweep.sh\n\n# Single config, quick\n./scripts/bench-sweep.sh --configs papaya-mimalloc\n\n# Criterion only\ncargo bench\n\n# Specific bench\ncargo bench --bench resolve\n\n# With alternative interner\ncargo bench --no-default-features --features lasso\n\n# CLI comparison (standalone, needs pre-built em)\n./scripts/compare-regen.sh\n./scripts/compare-search.sh\n```\n\n## Evaluation\n\n```sh\n# Auto-evaluates latest sweep\n./scripts/bench-eval.sh\n\n# Specific run\n./scripts/bench-eval.sh bench-results/20250523-120000/summary.tsv\n\n# Write to file\n./scripts/bench-eval.sh -o report.md\n```\n\n## Libraries Under Test\n\n- [portage-atom](https://crates.io/crates/portage-atom) — PMS atom and dependency parser\n- [portage-metadata](https://crates.io/crates/portage-metadata) — ebuild metadata cache types\n- [portage-repo](https://github.com/lu-zero/portage-repo) — ebuild repository layout reader\n- [portage-atom-pubgrub](https://github.com/lu-zero/portage-atom-pubgrub) — PubGrub solver bridge\n- [pkgcraft](https://github.com/pkgcraft/pkgcraft) — baseline comparison library\n\n## License\n\n[MIT](LICENSE-MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu-zero%2Fportage-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flu-zero%2Fportage-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu-zero%2Fportage-bench/lists"}