Skip to content

Commit

Permalink
Build BoringSSL in Release mode and add a benchmark table for Kyber768.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzcf committed Sep 12, 2023
1 parent 54adf2a commit 04da49c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benches/boringssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ project(BENCHMARKS CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_BUILD_TYPE Release)

FetchContent_Declare(
boringssl
GIT_REPOSITORY https://boringssl.googlesource.com/boringssl
Expand Down
8 changes: 8 additions & 0 deletions src/kem/kyber768/PERFORMANCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
N.B.: All measurements were taken on an M1 MacBook Air with 16 GB of memory.

| | Key Generation (µs) | Encapsulation (µs) | Decapsulation (µs) |
|:----------|----------------------:|---------------------:|---------------------:|
| libcrux | 30.671 | 36.31 | 36.3 |
| BoringSSL | 33.8152 | 28.7323 | 35.2664 |
| CIRCL | 39.785 | 44.517 | 49.626 |
| PQClean | 30.671 | 38.511 | 43.458 |

0 comments on commit 04da49c

Please sign in to comment.