{"id":9530612,"url":"https://github.com/lucascompython/zigXrustXc","last_synced_at":"2025-08-23T13:32:01.711Z","repository":{"id":239502956,"uuid":"629186863","full_name":"lucascompython/zigXrustXc","owner":"lucascompython","description":"Performance of Zig vs Rust vs C","archived":false,"fork":false,"pushed_at":"2025-05-08T12:42:01.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T13:42:38.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucascompython.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-04-17T20:02:41.000Z","updated_at":"2025-05-08T12:42:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8619d05-98a3-4cca-be06-686bc0c64ae5","html_url":"https://github.com/lucascompython/zigXrustXc","commit_stats":null,"previous_names":["lucascompython/zigxrustxc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucascompython/zigXrustXc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucascompython%2FzigXrustXc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucascompython%2FzigXrustXc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucascompython%2FzigXrustXc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucascompython%2FzigXrustXc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucascompython","download_url":"https://codeload.github.com/lucascompython/zigXrustXc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucascompython%2FzigXrustXc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749051,"owners_count":24814115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":"2024-05-12T23:21:33.618Z","updated_at":"2025-08-23T13:32:01.697Z","avatar_url":"https://github.com/lucascompython.png","language":"Zig","readme":"# Performance of Zig vs Rust vs C\n\n## Things to know\n\nMy Rust binary is still pretty small compared to normal Rust binaries, check the [Cargo.toml](./rust/Cargo.toml#L11) file for more info.\n\nBut it could be much smaller, see this [repo](https://github.com/johnthagen/min-sized-rust).\n\nAll binaries are statically linked, striped and optimized for **speed**.\n- C -\u003e 716Kb\n- Rust -\u003e 1.2MB\n- Zig -\u003e 16Kb!!!\n\nC and Rust appear to link to `libc` while Zig doesn't, maybe thats why it's so much smaller.\n\nResults on AMD 9950X:\n\n![image](https://github.com/user-attachments/assets/a1df40aa-0914-49bb-8e2f-3acea41e3e57)\n\n\n## How to run\n```bash\n./run.sh\n```\n","funding_links":[],"categories":["Performance Benchmark","Fundamentals"],"sub_categories":["Performance Benchmark"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucascompython%2FzigXrustXc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucascompython%2FzigXrustXc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucascompython%2FzigXrustXc/lists"}