{"id":28551938,"url":"https://github.com/ncrashed/n-body-benchmark","last_synced_at":"2026-02-09T19:01:54.382Z","repository":{"id":148135628,"uuid":"20604008","full_name":"NCrashed/n-body-benchmark","owner":"NCrashed","description":"N-body benchmark for 'The Computer Language Benchmarks Game'","archived":false,"fork":false,"pushed_at":"2014-06-07T22:35:35.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T04:07:40.599Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NCrashed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-07T22:15:42.000Z","updated_at":"2014-09-01T08:55:10.000Z","dependencies_parsed_at":"2023-03-27T15:24:10.736Z","dependency_job_id":null,"html_url":"https://github.com/NCrashed/n-body-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NCrashed/n-body-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fn-body-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fn-body-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fn-body-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fn-body-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NCrashed","download_url":"https://codeload.github.com/NCrashed/n-body-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fn-body-benchmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263369395,"owners_count":23456294,"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":"2025-06-10T04:07:40.600Z","updated_at":"2026-02-09T19:01:54.286Z","avatar_url":"https://github.com/NCrashed.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"n-body-benchmark\n================\n\nN-body benchmark for ['The Computer Language Benchmarks Game'](http://benchmarksgame.alioth.debian.org/).\n\nBuilding\n========\nThere are three raw scripts for dmd, gdc and ldc2 compilers.\n\nAlso you can build via dub (ldc2 building seems to be broken):\n```\ndub build --compiler=dmd --build=release\ndub build --compiler=gdc --build=release\n```\n\nRough measurement\n=================\n`bench.sh` script uses `time` utility:\n```\n$ ./bench.sh\n-0.169075164\n-0.169059907\n        Command being timed: \"./nbody 50000000\"\n        User time (seconds): 11.23\n        System time (seconds): 0.00\n        Percent of CPU this job got: 98%\n        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:11.44\n        Average shared text size (kbytes): 0\n        Average unshared data size (kbytes): 0\n        Average stack size (kbytes): 0\n        Average total size (kbytes): 0\n        Maximum resident set size (kbytes): 1644\n        Average resident set size (kbytes): 0\n        Major (requiring I/O) page faults: 2\n        Minor (reclaiming a frame) page faults: 458\n        Voluntary context switches: 3\n        Involuntary context switches: 1760\n        Swaps: 0\n        File system inputs: 232\n        File system outputs: 0\n        Socket messages sent: 0\n        Socket messages received: 0\n        Signals delivered: 0\n        Page size (bytes): 4096\n        Exit status: 0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrashed%2Fn-body-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncrashed%2Fn-body-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrashed%2Fn-body-benchmark/lists"}