An open API service indexing awesome lists of open source software.

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

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.