{"id":17099831,"url":"https://github.com/cppcoffee/stack-rs","last_synced_at":"2025-10-06T11:12:53.205Z","repository":{"id":135560344,"uuid":"354780365","full_name":"cppcoffee/stack-rs","owner":"cppcoffee","description":"lock-free linked stack.","archived":false,"fork":false,"pushed_at":"2021-07-04T11:36:40.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T18:34:25.798Z","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/cppcoffee.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":"2021-04-05T09:19:55.000Z","updated_at":"2021-07-04T11:36:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"01e1af4e-bd2c-46a4-b83f-37f5885c8ef9","html_url":"https://github.com/cppcoffee/stack-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cppcoffee/stack-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fstack-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fstack-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fstack-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fstack-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cppcoffee","download_url":"https://codeload.github.com/cppcoffee/stack-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fstack-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278598620,"owners_count":26013291,"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-10-06T02:00:05.630Z","response_time":65,"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-10-14T15:11:32.561Z","updated_at":"2025-10-06T11:12:53.183Z","avatar_url":"https://github.com/cppcoffee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## stack-rs\n\nstack-rs is a free-lock library implemented using rust.\n\n\n### quick start\n\n```rust\nlet s = Stack::new();\ns.push(1);\nassert_eq!(s.pop(), Some(1));\nassert_eq!(s.pop(), None);\n```\n\n\n### benchmark\n\nLock-Free Stack VS std::sync::Mutex\\\u003cstd::collections::LinkedList\\\u003e\n\nmain.rs benchmark output:\n\n|   Benchmark   | Total time spent | Average time spent |\n| ------------- | ----- | ------- |\n| stack_loop_n(100000) | 56.523467ms | 565ns |\n| list_loop_n(100000)  | 67.573497ms | 675ns |\n| stack_thread_n_m(2, 100000) | 115.590207ms | 577ns |\n| list_thread_n_m(2, 100000)  | 161.359683ms | 806ns |\n| stack_thread_n_m(4, 100000) | 440.585874ms | 1.101µs |\n| list_thread_n_m(4, 100000)  | 562.439723ms | 1.406µs |\n| stack_thread_n_m(8, 100000) | 1.886768172s | 2.358µs |\n| list_thread_n_m(8, 100000)  | 2.120945074s | 2.651µs |\n\n\n### reference\n\n[Implementing Lock-Free Queues (1994)](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.53.8674)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppcoffee%2Fstack-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcppcoffee%2Fstack-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppcoffee%2Fstack-rs/lists"}