Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/truncateddinosour/bruhst
[Migrated to self-hosted ari-web Forgejo: https://git.ari.lt/ari/bruhst] rust, c and c++ benchmark
https://github.com/truncateddinosour/bruhst
benchmark c c89 cargo cpp cpp98 linux python3 rust rustlang statistics
Last synced: about 1 month ago
JSON representation
[Migrated to self-hosted ari-web Forgejo: https://git.ari.lt/ari/bruhst] rust, c and c++ benchmark
- Host: GitHub
- URL: https://github.com/truncateddinosour/bruhst
- Owner: TruncatedDinoSour
- License: wtfpl
- Archived: true
- Created: 2023-06-02T22:41:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-20T13:16:48.000Z (5 months ago)
- Last Synced: 2024-09-25T20:55:11.727Z (about 2 months ago)
- Topics: benchmark, c, c89, cargo, cpp, cpp98, linux, python3, rust, rustlang, statistics
- Language: C
- Homepage: https://git.ari.lt/ari/bruhst
- Size: 24.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# This repository has been migrated to the self-hosted ari-web Forgejo instance:
# bruhst```
benching c
timing ./build.sh
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./mainbenching cc
timing ./build.sh
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./mainbenching rs
timing ./build.sh
getting number from ./deps.sh
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main
timing ./main>>> leaderboard <<<
1. c ( 0.2478773593902588 s to compile, 0 dependencies, 1.002959704399109 runtime on average, syntax noise 0.17436770428015563 and bin file size of 11328 bytes )
2. cc ( 0.44028162956237793 s to compile, 0 dependencies, 0.8922557950019836 runtime on average, syntax noise 0.17442143727162 and bin file size of 12616 bytes )
3. rs ( 10.378186225891113 s to compile, 2 dependencies, 0.925703251361847 runtime on average, syntax noise 0.18710388536786993 and bin file size of 5334400 bytes )
```- c for life overall ( weirdly enough c++ is faster than c in runtime )
- c++ > rust in compile time, dependencies, runtime, syntax noise and size
- rust loses like,,, fully## runs
- 2023/06/04 ( older hw, 2 cores 4 threads, intel i3 8 th gen, 4 gig ram )
- 2023/09/02 ( new hw, 6 cores 12 threads, amd ryzen 5 7530u, 8 gig ram )# running bruhst urself
```sh
python3 bench.py
```# what does it test
- threading iteration ( threading, iteration, math, cast )
- file io ( buffering )
- fib ( recursion and conditions )
- sort ( iteration, conditions, memory )
- n-body simulation ( math, structures, iteration )# requirements
- cargo
- python3
- clang ( both clang and clang++ )
- lld