https://github.com/joom/certicoq-sha
A separate repo with one example to test the performance of CertiCoq
https://github.com/joom/certicoq-sha
Last synced: 6 days ago
JSON representation
A separate repo with one example to test the performance of CertiCoq
- Host: GitHub
- URL: https://github.com/joom/certicoq-sha
- Owner: joom
- Created: 2023-12-01T16:21:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T00:22:12.000Z (over 2 years ago)
- Last Synced: 2025-02-28T16:17:16.633Z (over 1 year ago)
- Language: C
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# certicoq-sha
This is a separate repo to measure the performance of a SHA256 implementation in Coq, compiled to C by [CertiCoq](https://certicoq.org/).
On my machine (2018 MacBook Pro with 2.7 GHz Intel Core i7, compiled with Clang) this is what I get for one call to SHA256 to hash the string "hello" (including program starting time):
```
./prog
Time taken 0.005690 seconds = 5.690000 milliseconds
./prog_o1
Time taken 0.002170 seconds = 2.170000 milliseconds
./prog_o2
Time taken 0.004024 seconds = 4.024000 milliseconds
./prog_o3
Time taken 0.001914 seconds = 1.914000 milliseconds
./prog_ofast
Time taken 0.002803 seconds = 2.803000 milliseconds
```
You can run on your own machine by cloning the repo and running `make c run`, though you must have the CertiCoq runtime and change the `Makefile` to point to it.