{"id":15010285,"url":"https://github.com/bryanmikaelian/clj-virtual-threads","last_synced_at":"2026-01-26T04:32:11.490Z","repository":{"id":250945981,"uuid":"835940469","full_name":"bryanmikaelian/clj-virtual-threads","owner":"bryanmikaelian","description":"An experiment with Java21 Virtual Threads and Clojure","archived":false,"fork":false,"pushed_at":"2024-08-19T14:52:01.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T15:42:04.564Z","etag":null,"topics":["clojure","jvm","virtual-threads-java-21"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":false,"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/bryanmikaelian.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":"2024-07-30T20:41:41.000Z","updated_at":"2024-08-19T14:52:05.000Z","dependencies_parsed_at":"2024-08-19T17:12:16.513Z","dependency_job_id":"58f2548e-14c0-4cbe-8915-10729237325c","html_url":"https://github.com/bryanmikaelian/clj-virtual-threads","commit_stats":null,"previous_names":["bryanmikaelian/clj-virtual-threads"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bryanmikaelian/clj-virtual-threads","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanmikaelian%2Fclj-virtual-threads","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanmikaelian%2Fclj-virtual-threads/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanmikaelian%2Fclj-virtual-threads/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanmikaelian%2Fclj-virtual-threads/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryanmikaelian","download_url":"https://codeload.github.com/bryanmikaelian/clj-virtual-threads/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanmikaelian%2Fclj-virtual-threads/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28766886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["clojure","jvm","virtual-threads-java-21"],"created_at":"2024-09-24T19:33:23.228Z","updated_at":"2026-01-26T04:32:11.474Z","avatar_url":"https://github.com/bryanmikaelian.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clj-virtual-threads\nAn experiment with Java21 Virtual Threads and Clojure. Both examples just update an `atom` counter over 100000 threads, comparing the execution time between a virtual thread and a \"real\" thread.\n\n## Disclaimer\n\nThis was a very quick thought experiment but there are some issues. Take these numbers with a grain of salt [See this hacker news thread](https://news.ycombinator.com/item?id=41127344)\n\n## Running\n\nUsing the Clojure [CLI](https://clojure.org/guides/deps_and_cli), you can run this program like so:\n\n```sh\nclj src/main.clj\n```\n\n## Results\n\n### M3 Mac\n![CleanShot 2024-07-31 at 10 49 58](https://github.com/user-attachments/assets/bdcb6af4-fae5-4fbc-97e6-e0da467f7846)\n\n\n```\ncount:  100000\nvirtual start time (ms):  1722446540075\nvirtual end time (ms):  1722446540306\nvirtual elapsed time (ms):  231\ncount:  100000\nreal start time (ms):  1722446540311\nreal end time (ms):  1722446543667\nreal elapsed time (ms):  3356\n```\n\n### Intel Mac\n\u003cimg width=\"351\" alt=\"Screen Shot 2024-07-31 at 2 13 07 PM\" src=\"https://github.com/user-attachments/assets/ec551acc-b7b7-4d47-905e-97346ffb6204\"\u003e\n\n```\ncount:  100000\nvirtual start time (ms):  1722449512852\nvirtual end time (ms):  1722449513318\nvirtual elapsed time (ms):  466\ncount:  100000\nreal start time (ms):  1722449513330\nreal end time (ms):  1722449520618\nreal elapsed time (ms):  7288\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanmikaelian%2Fclj-virtual-threads","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanmikaelian%2Fclj-virtual-threads","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanmikaelian%2Fclj-virtual-threads/lists"}