{"id":18756346,"url":"https://github.com/pimaker/putex","last_synced_at":"2025-07-18T17:36:41.632Z","repository":{"id":93078627,"uuid":"298378681","full_name":"PiMaker/Putex","owner":"PiMaker","description":"Pi's experimental Mutex in Rust","archived":false,"fork":false,"pushed_at":"2020-09-25T00:11:39.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-20T13:56:06.064Z","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/PiMaker.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}},"created_at":"2020-09-24T19:41:03.000Z","updated_at":"2020-09-25T00:11:41.000Z","dependencies_parsed_at":"2023-03-08T13:30:25.755Z","dependency_job_id":null,"html_url":"https://github.com/PiMaker/Putex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PiMaker/Putex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiMaker%2FPutex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiMaker%2FPutex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiMaker%2FPutex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiMaker%2FPutex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiMaker","download_url":"https://codeload.github.com/PiMaker/Putex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiMaker%2FPutex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265802097,"owners_count":23830509,"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","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-11-07T17:36:15.774Z","updated_at":"2025-07-18T17:36:41.588Z","avatar_url":"https://github.com/PiMaker.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Putex - Pi's custom Mutex\n\nExperimenting with how a Mutex and synchronization primitives (atomics) work.\n\nNo real use case, but short and clean Rust code for you to look at :)\n\n### Benchmarking\n\nTwo surprises for me: The spinlock variant is *slower* than the one yielding to\nthe OS scheduler, but, secondly, both Putex variants are faster than a\nstd::sync::Mutex.\n\n```\ntest tests::bench_putex_spin  ... bench:     473,454 ns/iter (+/- 28,847)\ntest tests::bench_putex_yield ... bench:     391,341 ns/iter (+/- 63,764)\ntest tests::bench_std_mutex   ... bench:     997,582 ns/iter (+/- 115,092)\n```\n(tested on an AMD 3960X)\n\n# License\n\nThis repository is available in the public domain according to the CC0 license.\nDo with it whatever you want, I expressively waive all ownership rights related\nto this work. Also, if it makes your computer go kaboom, that's on you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimaker%2Fputex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpimaker%2Fputex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimaker%2Fputex/lists"}