This repository contains a collection of benchmarks for C programs. The benchmarks are designed to test a set of custom risc-v core designs with algorithms and data structures implemented in the C programming language.
- [Introduction] (#introduction)
- [Benchmarks] (#benchmarks)
- [Installation] (#installation)
- Usage
- Contributing
- License
The purpose of this repository is to provide a set of benchmarks that can
The benchmarks included in this repository cover a range of topics, including:
- Sorting algorithms (to be implemented)
- Search algorithms (to be implemented)
- Data structures (to be implemented)
- Mathematical computations (partial implementation)
To use the benchmarks, clone the repository to your local machine:
git clone https://github.com/your-username/c-benchmarks.git
cd c-benchmarks
- gcc 11.4.0 or higher
- meson 1.7.0 or higher
- cpp-check 2.7
- clang-format 14.0
- c23
To build and run the benchmarks using the Meson build system, follow these steps:
- Install Meson and Ninja if you haven't already:
pip install meson
pip install ninja
- Configure the build directory:
meson setup builddir
- Build the benchmarks:
meson compile -C builddir
- Run the benchmarks:
A set of working examples thats compiled can be found in the builddir directory, you can find the source code for this binary executables in the folder of the same name in this repository.
gcc -o benchmark benchmark.c
./benchmark
- Diego Avila [email protected]
- Luis G. Leon Vega [email protected]
This repository is licensed under the GPL v2.1 License. See the LICENSE file for more information.