Added benchmark program

This commit is contained in:
2025-11-25 16:46:20 +01:00
parent 5aa15f2276
commit 65358fc766
5 changed files with 135 additions and 5 deletions

View File

@@ -133,7 +133,7 @@ and a sample usage for every available method. To run it, first issue the follow
$ make clean all
```
This will compile the library as well as the `usage.c` file and the unit tests. After that, you can run it by typing `./usage`.
This will compile the library as well as the `usage.c` file, the unit tests and the benchmark. After that, you can run it by typing `./usage`.
## Documentation
For additional details about this library (internal design, memory
@@ -149,6 +149,15 @@ $ ./test_map
$ ./test_bigint
```
## Benchmark
Under the [`benchmark/`](/benchmark/) folder, you can find a simple benchmark program that stress the `Vector` and the `Map` data structures. You can run it by issuing the following command:
```sh
$ ./benchmark_datum
Computing Vector average time...average time: 18 ms
Computing Map average time...average time: 31 ms
```
## License
This library is released under the GPLv3 license. You can find a copy of the license with this repository or by visiting
[the following link](https://choosealicense.com/licenses/gpl-3.0/).