{"id":18908866,"url":"https://github.com/riesinger/primus","last_synced_at":"2025-10-15T21:37:20.128Z","repository":{"id":36357470,"uuid":"40662252","full_name":"riesinger/primus","owner":"riesinger","description":"Small CPU speedometer based on prime calculation","archived":false,"fork":false,"pushed_at":"2016-01-02T20:28:28.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T12:26:53.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/riesinger.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}},"created_at":"2015-08-13T14:10:36.000Z","updated_at":"2015-08-13T16:06:29.000Z","dependencies_parsed_at":"2022-09-06T03:50:43.013Z","dependency_job_id":null,"html_url":"https://github.com/riesinger/primus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riesinger%2Fprimus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riesinger%2Fprimus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riesinger%2Fprimus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riesinger%2Fprimus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riesinger","download_url":"https://codeload.github.com/riesinger/primus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239896163,"owners_count":19714978,"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-08T09:29:10.001Z","updated_at":"2025-10-15T21:37:20.066Z","avatar_url":"https://github.com/riesinger.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# what is primus?\nprimus is a small benchmarking or CPU heating application. It just calculates prime numbers on multiple (or a single) threads. Use it with the `time` command in front to measure the time it took to calculate.\n## Installation\n```bash\ngit clone https://github.com/Arial7/primus\ncd primus\nmake\n```\nI put different optimization levels directly into the Makefile. Just run\n```bash\nmake O2\n```\nfor example.\n\u003cbr\u003e\n\u003cb\u003eATTENTION!\u003c/b\u003e: O3 does wierd things, for me it just removes the whole number calculation. The program instantly finishes, it does nothing at all.\n\n## Usage\nThe default usage is:\n### Benchmarking\n```bash\ntime ./primus \u003cmaximumNumber\u003e \u003cnumberOfThreads\u003e\n```\nwhere `\u003cmaximumNumber\u003e` is the maximum number to calculate to. I typically use 1.000.000 (without the dots please).\n\n`\u003cnumberOfThreads\u003e` is pretty self-explanatory, it is the count of threads to calculate on. On multi-core systems, using more threads is better, as the first threads finish earlier than the last threads. So on my octa-core I typically use 32 threads. To get accurate results. Also, the bigger the number you want to calculate to, the more cores you should use.\n### CPU heating\n```bash\n./primus heat [numberOfThreads]\n```\nPrimus will just calculate primes until you stop it with `^C`.\n\n`[numberOfThreads]` is optional, as primus will try to find out how many cores you have.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friesinger%2Fprimus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friesinger%2Fprimus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friesinger%2Fprimus/lists"}