https://github.com/ncrashed/n-body-benchmark
N-body benchmark for 'The Computer Language Benchmarks Game'
https://github.com/ncrashed/n-body-benchmark
Last synced: 4 months ago
JSON representation
N-body benchmark for 'The Computer Language Benchmarks Game'
- Host: GitHub
- URL: https://github.com/ncrashed/n-body-benchmark
- Owner: NCrashed
- License: bsl-1.0
- Created: 2014-06-07T22:15:42.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-07T22:35:35.000Z (about 12 years ago)
- Last Synced: 2025-06-10T04:07:40.599Z (12 months ago)
- Language: D
- Size: 137 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
n-body-benchmark
================
N-body benchmark for ['The Computer Language Benchmarks Game'](http://benchmarksgame.alioth.debian.org/).
Building
========
There are three raw scripts for dmd, gdc and ldc2 compilers.
Also you can build via dub (ldc2 building seems to be broken):
```
dub build --compiler=dmd --build=release
dub build --compiler=gdc --build=release
```
Rough measurement
=================
`bench.sh` script uses `time` utility:
```
$ ./bench.sh
-0.169075164
-0.169059907
Command being timed: "./nbody 50000000"
User time (seconds): 11.23
System time (seconds): 0.00
Percent of CPU this job got: 98%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:11.44
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 1644
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 2
Minor (reclaiming a frame) page faults: 458
Voluntary context switches: 3
Involuntary context switches: 1760
Swaps: 0
File system inputs: 232
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
```