{"id":15519251,"url":"https://github.com/alnitak/compute_test","last_synced_at":"2025-06-21T04:39:46.317Z","repository":{"id":158861590,"uuid":"469329174","full_name":"alnitak/compute_test","owner":"alnitak","description":"test with Future.wait()","archived":false,"fork":false,"pushed_at":"2022-03-13T09:51:09.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T20:12:50.930Z","etag":null,"topics":["flutter","flutter-test","isolate"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/alnitak.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":"2022-03-13T09:48:53.000Z","updated_at":"2025-01-11T21:06:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"8be3410b-6504-4a26-8959-5b893f71eeb5","html_url":"https://github.com/alnitak/compute_test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alnitak/compute_test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnitak%2Fcompute_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnitak%2Fcompute_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnitak%2Fcompute_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnitak%2Fcompute_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alnitak","download_url":"https://codeload.github.com/alnitak/compute_test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnitak%2Fcompute_test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261064609,"owners_count":23104728,"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":["flutter","flutter-test","isolate"],"created_at":"2024-10-02T10:20:45.732Z","updated_at":"2025-06-21T04:39:41.303Z","avatar_url":"https://github.com/alnitak.png","language":"CMake","readme":"##Test Future.wait\n\nThis is a Future.wait test which just loop counter and output the time spent for this.\nI am running it on a linux PC with an AMD 5950x. The timing is confusing me:\u003cbr/\u003e\n\nDebug mode (some times crashes)\u003cbr/\u003e\n1 thread(s) ms: 4205\u003cbr/\u003e\n2 thread(s) ms: 6219\u003cbr/\u003e\n3 thread(s) ms: 2394\u003cbr/\u003e\n4 thread(s) ms: 2431\u003cbr/\u003e\n5 thread(s) ms: 2450\u003cbr/\u003e\n6 thread(s) ms: 2487\u003cbr/\u003e\n7 thread(s) ms: 2655\u003cbr/\u003e\n8 thread(s) ms: 2679\u003cbr/\u003e\n9 thread(s) ms: 4692\u003cbr/\u003e\n10 thread(s) ms: 4780\u003cbr/\u003e\n...\u003cbr/\u003e\n\u003cbr/\u003e\nRelease mode\u003cbr/\u003e\n1 thread(s) ms: 1337\u003cbr/\u003e\n2 thread(s) ms: 1360\u003cbr/\u003e\n3 thread(s) ms: 1366\u003cbr/\u003e\n4 thread(s) ms: 2183\u003cbr/\u003e\n5 thread(s) ms: 1389\u003cbr/\u003e\n6 thread(s) ms: 1427\u003cbr/\u003e\n7 thread(s) ms: 1403\u003cbr/\u003e\n8 thread(s) ms: 1406\u003cbr/\u003e\n9 thread(s) ms: 3494\u003cbr/\u003e\n10 thread(s) ms: 3489\u003cbr/\u003e\n\n\nWhat i see is a noticeable discrepancy in timing. What I'm missing here?\nAlso by running the test for 1 thread many times, I got this:\u003cbr/\u003e\n1 thread(s) ms: 4187\u003cbr/\u003e\n1 thread(s) ms: 6057\u003cbr/\u003e\n1 thread(s) ms: 2281\u003cbr/\u003e\n1 thread(s) ms: 2279\u003cbr/\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falnitak%2Fcompute_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falnitak%2Fcompute_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falnitak%2Fcompute_test/lists"}